diff --git a/CMakeLists.txt b/CMakeLists.txt index e7670c3..306a7bb 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -18,7 +18,7 @@ if (WINDOWS) endif (WINDOWS) if (CMAKE_CXX_COMPILER_ID STREQUAL "GNU") - add_compile_options(-Wno-error=cast-function-type -Wno-cast-function-type) + add_compile_options(-Wno-error=cast-function-type -Wno-cast-function-type -Werror=type-limits) endif () message(STATUS "Using: