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.
This commit is contained in:
parent
a8b19271c3
commit
6da5b57da1
3
configure
vendored
3
configure
vendored
@ -3395,8 +3395,7 @@ EOF
|
|||||||
done
|
done
|
||||||
|
|
||||||
check_cc <<EOF && enable pragma_deprecated
|
check_cc <<EOF && enable pragma_deprecated
|
||||||
_Pragma("GCC diagnostic ignored \"-Wdeprecated-declarations\"")
|
void foo(void) { _Pragma("GCC diagnostic ignored \"-Wdeprecated-declarations\"") }
|
||||||
_Pragma("GCC diagnostic warning \"-Wdeprecated-declarations\"")
|
|
||||||
EOF
|
EOF
|
||||||
|
|
||||||
check_cc <<EOF && enable attribute_packed
|
check_cc <<EOF && enable attribute_packed
|
||||||
|
Loading…
x
Reference in New Issue
Block a user