Suppress `-Wunused-parameter` when building for coverage analysis
This commit is contained in:
parent
427bc3cdcf
commit
4429a8c218
|
@ -147,7 +147,7 @@ else()
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
# Define custom "Coverage" build type.
|
# 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."
|
"Flags used by the C compiler during \"Coverage\" builds."
|
||||||
FORCE
|
FORCE
|
||||||
)
|
)
|
||||||
|
|
|
@ -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) \
|
#define SECP256K1_ECMULT_TABLE_VERIFY(n,w) \
|
||||||
|
(void)w; \
|
||||||
VERIFY_CHECK(((n) & 1) == 1); \
|
VERIFY_CHECK(((n) & 1) == 1); \
|
||||||
VERIFY_CHECK((n) >= -((1 << ((w)-1)) - 1)); \
|
VERIFY_CHECK((n) >= -((1 << ((w)-1)) - 1)); \
|
||||||
VERIFY_CHECK((n) <= ((1 << ((w)-1)) - 1));
|
VERIFY_CHECK((n) <= ((1 << ((w)-1)) - 1));
|
||||||
|
|
Loading…
Reference in New Issue