Silence GCC 9 warnings
Change-Id: I5654881a3adac6f67a38837321c8e1c3ce1e2d8f Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
This commit is contained in:
parent
9400a120ea
commit
76f11b0eda
@ -89,6 +89,14 @@ clang {
|
|||||||
greaterThan(QT_GCC_MAJOR_VERSION, 5): QMAKE_CXXFLAGS_WARN_ON += -Wshift-overflow=2 -Wduplicated-cond
|
greaterThan(QT_GCC_MAJOR_VERSION, 5): QMAKE_CXXFLAGS_WARN_ON += -Wshift-overflow=2 -Wduplicated-cond
|
||||||
# GCC 7 has a lot of false positives relating to this, so disable completely
|
# GCC 7 has a lot of false positives relating to this, so disable completely
|
||||||
greaterThan(QT_GCC_MAJOR_VERSION, 6): QMAKE_CXXFLAGS_WARN_ON += -Wno-stringop-overflow
|
greaterThan(QT_GCC_MAJOR_VERSION, 6): QMAKE_CXXFLAGS_WARN_ON += -Wno-stringop-overflow
|
||||||
|
# GCC 9 has a lot of false positives relating to this, so disable completely
|
||||||
|
greaterThan(QT_GCC_MAJOR_VERSION, 8): QMAKE_CXXFLAGS_WARN_ON += -Wno-deprecated-copy
|
||||||
|
# GCC 9 introduced this
|
||||||
|
greaterThan(QT_GCC_MAJOR_VERSION, 8): QMAKE_CXXFLAGS_WARN_ON += -Wno-redundant-move
|
||||||
|
# GCC 9 introduced this
|
||||||
|
greaterThan(QT_GCC_MAJOR_VERSION, 8): QMAKE_CXXFLAGS_WARN_ON += -Wno-format-overflow
|
||||||
|
# GCC 9 introduced this
|
||||||
|
greaterThan(QT_GCC_MAJOR_VERSION, 8): QMAKE_CXXFLAGS_WARN_ON += -Wno-init-list-lifetime
|
||||||
}
|
}
|
||||||
|
|
||||||
warnings_are_errors:warning_clean {
|
warnings_are_errors:warning_clean {
|
||||||
@ -127,7 +135,14 @@ warnings_are_errors:warning_clean {
|
|||||||
|
|
||||||
# GCC 7 includes -Wimplicit-fallthrough in -Wextra, but Qt is not yet free of implicit fallthroughs.
|
# GCC 7 includes -Wimplicit-fallthrough in -Wextra, but Qt is not yet free of implicit fallthroughs.
|
||||||
greaterThan(QT_GCC_MAJOR_VERSION, 6): QMAKE_CXXFLAGS_WARN_ON += -Wno-error=implicit-fallthrough
|
greaterThan(QT_GCC_MAJOR_VERSION, 6): QMAKE_CXXFLAGS_WARN_ON += -Wno-error=implicit-fallthrough
|
||||||
|
# GCC 9 has a lot of false positives relating to this, so disable completely
|
||||||
|
greaterThan(QT_GCC_MAJOR_VERSION, 8): QMAKE_CXXFLAGS_WARN_ON += -Wno-deprecated-copy
|
||||||
|
# GCC 9 introduced this
|
||||||
|
greaterThan(QT_GCC_MAJOR_VERSION, 8): QMAKE_CXXFLAGS_WARN_ON += -Wno-redundant-move
|
||||||
|
# GCC 9 introduced this
|
||||||
|
greaterThan(QT_GCC_MAJOR_VERSION, 8): QMAKE_CXXFLAGS_WARN_ON += -Wno-format-overflow
|
||||||
|
# GCC 9 introduced this
|
||||||
|
greaterThan(QT_GCC_MAJOR_VERSION, 8): QMAKE_CXXFLAGS_WARN_ON += -Wno-init-list-lifetime
|
||||||
# Work-around for bug https://code.google.com/p/android/issues/detail?id=58135
|
# Work-around for bug https://code.google.com/p/android/issues/detail?id=58135
|
||||||
android: QMAKE_CXXFLAGS_WARN_ON += -Wno-error=literal-suffix
|
android: QMAKE_CXXFLAGS_WARN_ON += -Wno-error=literal-suffix
|
||||||
}
|
}
|
||||||
|
@ -239,6 +239,14 @@ headersclean:!internal_module {
|
|||||||
gcc_ver = $${QT_GCC_MAJOR_VERSION}.$${QT_GCC_MINOR_VERSION}
|
gcc_ver = $${QT_GCC_MAJOR_VERSION}.$${QT_GCC_MINOR_VERSION}
|
||||||
versionAtLeast(gcc_ver, 4.5): hcleanFLAGS += -Wdouble-promotion
|
versionAtLeast(gcc_ver, 4.5): hcleanFLAGS += -Wdouble-promotion
|
||||||
versionAtLeast(gcc_ver, 4.9): hcleanFLAGS += -Wfloat-conversion
|
versionAtLeast(gcc_ver, 4.9): hcleanFLAGS += -Wfloat-conversion
|
||||||
|
# GCC 9 has a lot of false positives relating to this, so disable completely
|
||||||
|
greaterThan(QT_GCC_MAJOR_VERSION, 8): hcleanFLAGS += -Wno-deprecated-copy
|
||||||
|
# GCC 9 introduced this
|
||||||
|
greaterThan(QT_GCC_MAJOR_VERSION, 8): hcleanFLAGS += -Wno-redundant-move
|
||||||
|
# GCC 9 introduced this
|
||||||
|
greaterThan(QT_GCC_MAJOR_VERSION, 8): hcleanFLAGS += -Wno-format-overflow
|
||||||
|
# GCC 9 introduced this
|
||||||
|
greaterThan(QT_GCC_MAJOR_VERSION, 8): hcleanFLAGS += -Wno-init-list-lifetime
|
||||||
|
|
||||||
c++11 {
|
c++11 {
|
||||||
# only enabled for actual c++11 builds due to
|
# only enabled for actual c++11 builds due to
|
||||||
|
Loading…
x
Reference in New Issue
Block a user