Skip to content

Commit 4429a8c

Browse files
committed
Suppress -Wunused-parameter when building for coverage analysis
1 parent 427bc3c commit 4429a8c

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,7 @@ else()
147147
endif()
148148

149149
# Define custom "Coverage" build type.
150-
set(CMAKE_C_FLAGS_COVERAGE "${CMAKE_C_FLAGS_RELWITHDEBINFO} -O0 -DCOVERAGE=1 --coverage -Wno-unused-parameter" CACHE STRING
150+
set(CMAKE_C_FLAGS_COVERAGE "${CMAKE_C_FLAGS_RELWITHDEBINFO} -O0 -DCOVERAGE=1 --coverage" CACHE STRING
151151
"Flags used by the C compiler during \"Coverage\" builds."
152152
FORCE
153153
)

src/ecmult_impl.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -115,6 +115,7 @@ static void secp256k1_ecmult_odd_multiples_table(int n, secp256k1_ge *pre_a, sec
115115
}
116116

117117
#define SECP256K1_ECMULT_TABLE_VERIFY(n,w) \
118+
(void)w; \
118119
VERIFY_CHECK(((n) & 1) == 1); \
119120
VERIFY_CHECK((n) >= -((1 << ((w)-1)) - 1)); \
120121
VERIFY_CHECK((n) <= ((1 << ((w)-1)) - 1));

0 commit comments

Comments
 (0)