aboutsummaryrefslogtreecommitdiffstats
path: root/configure
diff options
context:
space:
mode:
authorDiego Biurrun <diego@biurrun.de>2013-08-02 22:03:09 +0200
committerDiego Biurrun <diego@biurrun.de>2013-08-02 22:34:03 +0200
commit6da5b57da11bbbece47bec2885100353a6cfa280 (patch)
tree50f01c2e156e154e33f602453739abbeba9107e1 /configure
parenta8b19271c3b40ac3c3dc769fe248887acf14ba5a (diff)
downloadffmpeg-6da5b57da11bbbece47bec2885100353a6cfa280.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.
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure3
1 files changed, 1 insertions, 2 deletions
diff --git a/configure b/configure
index 979cc600c3..dadc4ba142 100755
--- a/configure
+++ b/configure
@@ -3395,8 +3395,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