From 839de4d0823a5affc8a4b8b797f5080d2c3bb385 Mon Sep 17 00:00:00 2001 From: Ralph Giles <giles@thaumas.net> Date: Fri, 28 Oct 2011 11:03:29 -0700 Subject: [PATCH] Remove the define check for __GNUC_PREREQ. Our arch.h makes sure it's always defined. Thanks to derf for the suggestion. --- tests/test_opus_api.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/tests/test_opus_api.c b/tests/test_opus_api.c index 76ae3b164..395bfb42d 100644 --- a/tests/test_opus_api.c +++ b/tests/test_opus_api.c @@ -1168,7 +1168,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 defined(__GNUC_PREREQ) && __GNUC_PREREQ(4,6) +#if __GNUC_PREREQ(4,6) /* Save the current warning settings */ #pragma GCC diagnostic push #endif @@ -1260,8 +1260,7 @@ int test_malloc_fail(void) } #ifdef MALLOC_FAIL -#if defined(__GNUC_PREREQ) && __GNUC_PREREQ(4,6) -/* Restore the previous warning settings */ +#if __GNUC_PREREQ(4,6) #pragma GCC diagnostic pop /* restore -Wdeprecated-declarations */ #endif #endif -- GitLab