Delete -Wextra compilation flag for GHS compiler
- GHS compiler doesn't have -Wextra flag and it leads to huge count of warnings. Change-Id: Id2ba654a49fb163bebc75e3a22ecaa1895ecdbe8 Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io> (cherry picked from commit 05acb9e2b9cc6a830394f55f5dff6c4a18bc17b0) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
This commit is contained in:
parent
7eb6f9a044
commit
ccb68f1d28
@ -9,7 +9,11 @@ if (MSVC)
|
||||
list(APPEND _qt_compiler_warning_flags_on /W3)
|
||||
list(APPEND _qt_compiler_warning_flags_off -W0)
|
||||
else()
|
||||
list(APPEND _qt_compiler_warning_flags_on -Wall -Wextra)
|
||||
if(CMAKE_CXX_COMPILER_ID STREQUAL "GHS") # There is no -Wextra flag for GHS compiler.
|
||||
list(APPEND _qt_compiler_warning_flags_on -Wall)
|
||||
else()
|
||||
list(APPEND _qt_compiler_warning_flags_on -Wall -Wextra)
|
||||
endif()
|
||||
list(APPEND _qt_compiler_warning_flags_off -w)
|
||||
endif()
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user