From 101b515d590bbfcf34e24794c637fc3fde0f94c0 Mon Sep 17 00:00:00 2001 From: Alex Denes Date: Wed, 30 Dec 2020 20:05:24 +0000 Subject: [PATCH] Ignore unused parameters --- CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 3c78f0f..352c9d0 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -7,7 +7,7 @@ OPTION(CODE_ANALYZER "Analyze the code statically" ON) OPTION(CODE_COVERAGE "Build with coverage tools" OFF) 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 ) add_compile_options(-fanalyzer) endif()