aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDiego Biurrun <diego@biurrun.de>2013-08-02 22:03:09 +0200
committerMichael Niedermayer <michaelni@gmx.at>2013-08-03 10:08:04 +0200
commit038c4f65ee6c72f9d1ee4d4e46c74073992fabc8 (patch)
tree82614dc4efbb6857c82a27565f8e37051dfdc5da
parent85fc1a18ca7b875cf138d3a862779f8334fb2a57 (diff)
downloadffmpeg-038c4f65ee6c72f9d1ee4d4e46c74073992fabc8.tar.gz
configure: Check for GCC diagnostic pragma support inside of functions
The actual usage of the pragma is within functions and older versions of gcc only support the pragma outside of functions.
-rwxr-xr-xconfigure3
1 files changed, 1 insertions, 2 deletions
diff --git a/configure b/configure
index 5bfd8e670a..539c5815bb 100755
--- a/configure
+++ b/configure
@@ -3779,8 +3779,7 @@ EOF
done
check_cc <<EOF && enable pragma_deprecated
-_Pragma("GCC diagnostic ignored \"-Wdeprecated-declarations\"")
-_Pragma("GCC diagnostic warning \"-Wdeprecated-declarations\"")
+void foo(void) { _Pragma("GCC diagnostic ignored \"-Wdeprecated-declarations\"") }
EOF
check_cc <<EOF && enable attribute_packed