Commit 6da5b57d authored by Diego Biurrun's avatar 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.
parent a8b19271
......@@ -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
......
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