Disable -Werror=stringop-overflow on GCC >= 10
There's a number of upstream bugs that cause false positives; do not make them errors. Change-Id: I4151794d8d37177a47a34aef8d83accf4377d44a Reviewed-by: Volker Hilsheimer <volker.hilsheimer@qt.io> Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io> Reviewed-by: Thiago Macieira <thiago.macieira@intel.com> (cherry picked from commit 648e9696d38f9338019d30f297029ba34efb673c) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
This commit is contained in:
parent
68b107f2b8
commit
874cc1e9f6
@ -32,6 +32,14 @@ function(qt_internal_set_warnings_are_errors_flags target)
|
||||
list(APPEND flags -Wno-error=format-overflow)
|
||||
endif()
|
||||
|
||||
if (CMAKE_CXX_COMPILER_VERSION VERSION_GREATER_EQUAL "10.0.0")
|
||||
# GCC 10 has a number of bugs in -Wstringop-overflow. Do not make them an error.
|
||||
# https://gcc.gnu.org/bugzilla/show_bug.cgi?id=92955
|
||||
# https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94335
|
||||
# https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101134
|
||||
list(APPEND flags -Wno-error=stringop-overflow)
|
||||
endif()
|
||||
|
||||
if (CMAKE_CXX_COMPILER_VERSION VERSION_GREATER_EQUAL "11.0.0")
|
||||
# We do mixed enum arithmetic all over the place:
|
||||
list(APPEND flags -Wno-error=deprecated-enum-enum-conversion -Wno-error=deprecated-enum-float-conversion)
|
||||
|
Loading…
x
Reference in New Issue
Block a user