The actual usage of the pragma is within functions and older versions
of gcc only support the pragma outside of functions.
---
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
--
1.7.9.5
_______________________________________________
libav-devel mailing list
[email protected]
https://lists.libav.org/mailman/listinfo/libav-devel