|
|
@@ -39,7 +39,7 @@ endif() |
|
|
|
if(CMAKE_COMPILER_IS_GNUCXX OR CMAKE_CXX_COMPILER_ID MATCHES "Clang") |
|
|
|
set(C_CXX_FLAGS "-Wall -Werror -Wformat=2 -Wsign-compare -Wmissing-field-initializers -Wwrite-strings -ggdb -fvisibility=hidden -fno-common") |
|
|
|
if(CMAKE_CXX_COMPILER_ID MATCHES "Clang") |
|
|
|
set(C_CXX_FLAGS "${C_CXX_FLAGS} -Wnewline-eof") |
|
|
|
set(C_CXX_FLAGS "${C_CXX_FLAGS} -Wnewline-eof -fcolor-diagnostics") |
|
|
|
else() |
|
|
|
# GCC (at least 4.8.4) has a bug where it'll find unreachable free() calls |
|
|
|
# and declare that the code is trying to free a stack pointer. |
|
|
|