CMake: missing return statement should be an error

This commit is contained in:
Adriaan de Groot 2019-08-29 14:46:16 +02:00
parent 535bf01475
commit e3f933259b

View File

@ -198,6 +198,7 @@ if( CMAKE_CXX_COMPILER_ID MATCHES "Clang" )
-Wno-missing-prototypes
-Wno-documentation-unknown-command
-Wno-unknown-warning-option
-Werror=return-type
)
string( APPEND CMAKE_CXX_FLAGS " ${CLANG_WARNINGS}" )
endforeach()