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
No known key found for this signature in database
GPG Key ID: 410108112E7EA81F
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
)

View File

@ -115,6 +115,7 @@ static void secp256k1_ecmult_odd_multiples_table(int n, secp256k1_ge *pre_a, sec
}
#define SECP256K1_ECMULT_TABLE_VERIFY(n,w) \
(void)w; \
VERIFY_CHECK(((n) & 1) == 1); \
VERIFY_CHECK((n) >= -((1 << ((w)-1)) - 1)); \
VERIFY_CHECK((n) <= ((1 << ((w)-1)) - 1));