Ignore unused parameters
This commit is contained in:
parent
0256378633
commit
101b515d59
|
@ -7,7 +7,7 @@ OPTION(CODE_ANALYZER "Analyze the code statically" ON)
|
||||||
OPTION(CODE_COVERAGE "Build with coverage tools" OFF)
|
OPTION(CODE_COVERAGE "Build with coverage tools" OFF)
|
||||||
|
|
||||||
if (CMAKE_C_COMPILER_ID STREQUAL "GNU")
|
if (CMAKE_C_COMPILER_ID STREQUAL "GNU")
|
||||||
add_compile_options(-Wall -Wextra -Werror -Wformat-overflow=2 -Wformat-security -Winit-self -Wstrict-overflow=2 -Wstringop-overflow=2 -Walloc-zero -Wduplicated-branches -Wduplicated-cond -Wtrampolines -Wfloat-equal -Wshadow -Wunsafe-loop-optimizations -Wparentheses -pedantic -fstack-check)
|
add_compile_options(-Wall -Wextra -Werror -Wformat-overflow=2 -Wformat-security -Winit-self -Wstrict-overflow=2 -Wstringop-overflow=2 -Walloc-zero -Wduplicated-branches -Wduplicated-cond -Wtrampolines -Wfloat-equal -Wshadow -Wunsafe-loop-optimizations -Wparentheses -pedantic -fstack-check -Wno-unused-parameter)
|
||||||
if ( CODE_ANALYZER )
|
if ( CODE_ANALYZER )
|
||||||
add_compile_options(-fanalyzer)
|
add_compile_options(-fanalyzer)
|
||||||
endif()
|
endif()
|
||||||
|
|
Reference in New Issue