[FFmpeg-cvslog] configure: Check for GCC diagnostic pragma support inside of functions
Diego Biurrun
git at videolan.org
Sat Aug 3 11:03:41 CEST 2013
ffmpeg | branch: master | Diego Biurrun <diego at biurrun.de> | Fri Aug 2 22:03:09 2013 +0200| [6da5b57da11bbbece47bec2885100353a6cfa280] | committer: Diego Biurrun
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=6da5b57da11bbbece47bec2885100353a6cfa280
---
configure | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/configure b/configure
index 979cc60..dadc4ba 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
More information about the ffmpeg-cvslog
mailing list