CMake: disable the GCC -Wstringop-overread warning-error everywhere
We were doing it only for MinGW, but it's now showing up everywhere. Pick-to: 6.7 Change-Id: Ic0adfa808d28487a8303fffd17d9deab60f6cd0a Reviewed-by: Mårten Nordheim <marten.nordheim@qt.io> (cherry picked from commit ae71a00c611ce07965d6a4e54e7a5aee3105da5e) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
This commit is contained in:
parent
fce7a45268
commit
9512f44b46
@ -46,13 +46,11 @@ function(qt_internal_set_warnings_are_errors_flags target target_scope)
|
||||
endif()
|
||||
|
||||
if (CMAKE_CXX_COMPILER_VERSION VERSION_GREATER_EQUAL "11.0.0")
|
||||
# Ditto
|
||||
list(APPEND flags -Wno-error=stringop-overread)
|
||||
|
||||
# We do mixed enum arithmetic all over the place:
|
||||
list(APPEND flags -Wno-error=deprecated-enum-enum-conversion -Wno-error=deprecated-enum-float-conversion)
|
||||
|
||||
# GCC has some false positive, and it specifically comes through in MINGW
|
||||
if (MINGW)
|
||||
list(APPEND flags -Wno-error=stringop-overread)
|
||||
endif()
|
||||
endif()
|
||||
|
||||
if (CMAKE_CXX_COMPILER_VERSION VERSION_GREATER_EQUAL "11.0.0" AND CMAKE_CXX_COMPILER_VERSION VERSION_LESS "11.2.0")
|
||||
|
Loading…
x
Reference in New Issue
Block a user