summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorGregory Maxwell <greg@xiph.org>2012-06-01 02:21:53 -0400
committerJean-Marc Valin <jmvalin@jmvalin.ca>2012-06-01 15:58:17 -0400
commitc64f4a4265c66e5bcc7fbd621641aeb3a3280fdc (patch)
tree54068a619a4d2c2bc0d32009aa60f15e1bdbd20e /tests
parentbcbf40b601683be9512c171c069935c1f26c98db (diff)
downloadopus-c64f4a4265c66e5bcc7fbd621641aeb3a3280fdc.tar.gz
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.
Diffstat (limited to 'tests')
-rw-r--r--tests/test_opus_api.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/test_opus_api.c b/tests/test_opus_api.c
index f94009e7..31ca5a5a 100644
--- a/tests/test_opus_api.c
+++ b/tests/test_opus_api.c
@@ -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