Forbid functions to forget the return statement

This commit is contained in:
Jean Pierre Cimalando 2020-09-08 11:32:38 +02:00
parent db194be867
commit 22585e02a1

View file

@ -43,6 +43,7 @@ if (CMAKE_CXX_COMPILER_ID MATCHES "GNU|Clang")
add_compile_options(-Wall) add_compile_options(-Wall)
add_compile_options(-Wextra) add_compile_options(-Wextra)
add_compile_options(-fno-omit-frame-pointer) # For debugging purposes add_compile_options(-fno-omit-frame-pointer) # For debugging purposes
add_compile_options(-Werror=return-type)
if (SFIZZ_SYSTEM_PROCESSOR MATCHES "^(i.86|x86_64)$") if (SFIZZ_SYSTEM_PROCESSOR MATCHES "^(i.86|x86_64)$")
add_compile_options(-msse2) add_compile_options(-msse2)
endif() endif()