On Fri, 2 Aug 2013, Diego Biurrun wrote:

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

Tested on one of the failing configs, seems to work.

Any particular reason you change from testing both ignored and warning to just one of them?

// Martin
_______________________________________________
libav-devel mailing list
[email protected]
https://lists.libav.org/mailman/listinfo/libav-devel

Reply via email to