[FFmpeg-cvslog] configure: Check for GCC diagnostic pragma support inside of functions
Diego Biurrun
git at videolan.org
Sat Aug 3 10:35:02 CEST 2013
ffmpeg | branch: master | Diego Biurrun <diego at biurrun.de> | Fri Aug 2 22:03:09 2013 +0200| [038c4f65ee6c72f9d1ee4d4e46c74073992fabc8] | committer: Michael Niedermayer
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.
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=038c4f65ee6c72f9d1ee4d4e46c74073992fabc8
---
configure | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/configure b/configure
index 5bfd8e6..539c581 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
More information about the ffmpeg-cvslog
mailing list