diff --git a/tests/test_opus_api.c b/tests/test_opus_api.c index 76ae3b1641cc023a54197f9983cb774f6dac5565..395bfb42d5453af3ff4f44295c37e12eff624938 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