CMake: be compatible with clang 6
- Some of the pragmas in moc-warnings.h, intended to *reduce* warnings from MOC code, generate a warning in their own right.
This commit is contained in:
parent
6b137d6fd2
commit
f937ef6eb9
@ -189,6 +189,7 @@ if( CMAKE_CXX_COMPILER_ID MATCHES "Clang" )
|
|||||||
-Wno-exit-time-destructors
|
-Wno-exit-time-destructors
|
||||||
-Wno-missing-prototypes
|
-Wno-missing-prototypes
|
||||||
-Wno-documentation-unknown-command
|
-Wno-documentation-unknown-command
|
||||||
|
-Wno-unknown-warning-option
|
||||||
)
|
)
|
||||||
string( APPEND CMAKE_CXX_FLAGS " ${CLANG_WARNINGS}" )
|
string( APPEND CMAKE_CXX_FLAGS " ${CLANG_WARNINGS}" )
|
||||||
endforeach()
|
endforeach()
|
||||||
|
Loading…
Reference in New Issue
Block a user