1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2024-12-23 12:43:46 +02:00

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:
Diego Biurrun 2013-08-02 22:03:09 +02:00 committed by Michael Niedermayer
parent 85fc1a18ca
commit 038c4f65ee

3
configure vendored
View File

@ -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