shithub: opus

Download patch

ref: 839de4d0823a5affc8a4b8b797f5080d2c3bb385
parent: b4dd4eb7809f5635bcd432beb2f58d18757db3df
author: Ralph Giles <[email protected]>
date: Fri Oct 28 07:03:29 EDT 2011

Remove the define check for __GNUC_PREREQ.

Our arch.h makes sure it's always defined. Thanks to derf
for the suggestion.

--- a/tests/test_opus_api.c
+++ b/tests/test_opus_api.c
@@ -1168,7 +1168,7 @@
  * 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 @@
 }
 
 #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