Commit 038c4f65 authored by Diego Biurrun's avatar Diego Biurrun Committed by 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.
parent 85fc1a18
......@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment