Skip to content

Commit

Permalink
Suppress -Wunused-parameter when building for coverage analysis
Browse files Browse the repository at this point in the history
  • Loading branch information
hebasto committed Mar 14, 2023
1 parent 427bc3c commit 4429a8c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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
)
Expand Down
1 change: 1 addition & 0 deletions src/ecmult_impl.h
Original file line number Diff line number Diff line change
Expand Up @@ -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));
Expand Down

0 comments on commit 4429a8c

Please sign in to comment.