Changeset View
Changeset View
Standalone View
Standalone View
src/CMakeLists.txt
Show First 20 Lines • Show All 173 Lines • ▼ Show 20 Lines | if(ENABLE_PROFILING MATCHES "gprof") | ||||
add_compiler_flags(-pg) | add_compiler_flags(-pg) | ||||
add_linker_flags(-pg) | add_linker_flags(-pg) | ||||
endif() | endif() | ||||
# 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 | ||||
-Werror=switch | |||||
deadalnix: Please do not make warning errors, because they are different accross compilers. | |||||
-Wextra | -Wextra | ||||
-Wformat | -Wformat | ||||
-Wvla | -Wvla | ||||
-Wformat-security | -Wformat-security | ||||
-Wcast-align | -Wcast-align | ||||
-Wunused-parameter | -Wunused-parameter | ||||
-Wmissing-braces | -Wmissing-braces | ||||
-Wthread-safety-analysis | -Wthread-safety-analysis | ||||
▲ Show 20 Lines • Show All 470 Lines • Show Last 20 Lines |
Please do not make warning errors, because they are different accross compilers.