mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2026-10-28 10:04:37 +08:00
configure: drop -Werror from the C++ warning probe
0ce413af9cgave check_disable_warning() a C++ checks at a time when unknown_warning_flags was a single set probed with test_cflags, so it said nothing about what the C++ compiler accepts. The -Werror was added as a glue that reject C only flags from C++ compilation and probe time. However, after005510501emade those flags per language and unknown_warning_cxxflags is now probed with test_cxxflags, so the Werror is no longer relevant. This is not only cosmetic change, because -Werror itself is not valid flag for MSVC, all tests were failing there. Signed-off-by: Kacper Michajłow <kasper93@gmail.com>
This commit is contained in:
1 parent
50e64f97d9
commit
45ec2cae19
1 file changed
+1
-1
@@ -7791,7 +7791,7 @@ check_warning(){
|
||||
warning_flag=$1
|
||||
flag_to_add=${2:-$1}
|
||||
test_cflags $unknown_warning_cflags $warning_flag && add_cflags $flag_to_add
|
||||
test_cxxflags -Werror $unknown_warning_cxxflags $warning_flag && add_cxxflags $flag_to_add
|
||||
test_cxxflags $unknown_warning_cxxflags $warning_flag && add_cxxflags $flag_to_add
|
||||
}
|
||||
|
||||
check_disable_warning(){
|
||||
|
||||
Reference in new issue
Block a user