Suppress -Wunused-parameter when building for coverage analysis

This commit is contained in:
Hennadii Stepanov
2023-03-14 20:03:42 +00:00
parent 427bc3cdcf
commit 4429a8c218
2 changed files with 2 additions and 1 deletions

View File

@@ -147,7 +147,7 @@ else()
endif()
# Define custom "Coverage" build type.
set(CMAKE_C_FLAGS_COVERAGE "${CMAKE_C_FLAGS_RELWITHDEBINFO} -O0 -DCOVERAGE=1 --coverage -Wno-unused-parameter" CACHE STRING
set(CMAKE_C_FLAGS_COVERAGE "${CMAKE_C_FLAGS_RELWITHDEBINFO} -O0 -DCOVERAGE=1 --coverage" CACHE STRING
"Flags used by the C compiler during \"Coverage\" builds."
FORCE
)