mirror of
https://github.com/xiph/opus.git
synced 2025-05-15 07:58:29 +00:00
Update headers to cause warnings on unused returns and null args.
In places where an ignored return or a null-arg is a sure indication of a bug add the GCC warning attributes. The null arg annotation is not enable for Opus itself because it will cause the compiler to optimize out some null checks. I don't trust our callers quite that much.
This commit is contained in:
parent
bcbf40b601
commit
c64f4a4265
5 changed files with 80 additions and 57 deletions
|
@ -1382,7 +1382,7 @@ int test_repacketizer_api(void)
|
|||
* handling in our codebase, and the lack of thread saftey isn't an
|
||||
* issue here. We therefore disable the warning for this function.
|
||||
*/
|
||||
#if __GNUC_PREREQ(4,6)
|
||||
#if OPUS_GNUC_PREREQ(4,6)
|
||||
/* Save the current warning settings */
|
||||
#pragma GCC diagnostic push
|
||||
#endif
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue