Changeset View
Changeset View
Standalone View
Standalone View
src/CMakeLists.txt
Show First 20 Lines • Show All 181 Lines • ▼ Show 20 Lines | |||||
# Enable warning | # Enable warning | ||||
add_c_compiler_flags(-Wnested-externs -Wstrict-prototypes) | add_c_compiler_flags(-Wnested-externs -Wstrict-prototypes) | ||||
add_compiler_flags( | add_compiler_flags( | ||||
-Wall | -Wall | ||||
-Wextra | -Wextra | ||||
-Wformat | -Wformat | ||||
-Wvla | -Wvla | ||||
-Wformat-security | |||||
-Wcast-align | -Wcast-align | ||||
-Wunused-parameter | -Wunused-parameter | ||||
-Wmissing-braces | -Wmissing-braces | ||||
-Wthread-safety-analysis | -Wthread-safety-analysis | ||||
-Wshadow | -Wshadow | ||||
-Wrange-loop-analysis | -Wrange-loop-analysis | ||||
-Wredundant-decls | -Wredundant-decls | ||||
) | ) | ||||
add_compiler_flag_group(-Wformat -Wformat-security) | |||||
add_cxx_compiler_flags( | add_cxx_compiler_flags( | ||||
-Wredundant-move | -Wredundant-move | ||||
) | ) | ||||
option(EXTRA_WARNINGS "Enable extra warnings" OFF) | option(EXTRA_WARNINGS "Enable extra warnings" OFF) | ||||
if(EXTRA_WARNINGS) | if(EXTRA_WARNINGS) | ||||
add_cxx_compiler_flags(-Wsuggest-override) | add_cxx_compiler_flags(-Wsuggest-override) | ||||
else() | else() | ||||
▲ Show 20 Lines • Show All 458 Lines • Show Last 20 Lines |