Add -Wcast-qual to g++ flags

This commit is contained in:
Fabian Wolff 2016-03-09 18:16:55 +01:00
parent dc4eb2ad3e
commit e9f7d4f264

View File

@ -12,7 +12,7 @@ project(squirrel C CXX)
include_directories(${CMAKE_SOURCE_DIR}/include)
if(CMAKE_COMPILER_IS_GNUCXX)
set(SQ_FLAGS -fno-exceptions -fno-strict-aliasing -Wall -Wextra -pedantic)
set(SQ_FLAGS -fno-exceptions -fno-strict-aliasing -Wall -Wextra -pedantic -Wcast-qual)
if(CMAKE_BUILD_TYPE STREQUAL "Release")
set(SQ_FLAGS ${SQ_FLAGS} -O3)