Steps to reproduce on master (fecf436d5327717801da84beb3066f5a9b80ea8e):
0$ ./configure --host=riscv64-linux-gnu
1$ make clean
2$ $ make
3 CC src/bench.o
4gcc -DHAVE_CONFIG_H -I. -I./src -O2 -std=c89 -pedantic -Wno-long-long -Wnested-externs -Wshadow -Wstrict-prototypes -Wundef -Wno-overlength-strings -Wall -Wno-unused-function -Wextra -Wcast-align -Wcast-align=strict -fvisibility=hidden -g -O2 -c src/gen_context.c -o gen_context.o
5gcc -O2 -std=c89 -pedantic -Wno-long-long -Wnested-externs -Wshadow -Wstrict-prototypes -Wundef -Wno-overlength-strings -Wall -Wno-unused-function -Wextra -Wcast-align -Wcast-align=strict -fvisibility=hidden -g -O2 gen_context.o -o gen_context
6./gen_context
7 CC src/libsecp256k1_la-secp256k1.lo
8src/secp256k1.c: In function ‘secp256k1_declassify’:
9src/secp256k1.c:227:93: warning: unused parameter ‘p’ [-Wunused-parameter]
10 227 | static SECP256K1_INLINE void secp256k1_declassify(const secp256k1_context* ctx, const void *p, size_t len) {
11 | ~~~~~~~~~~~~^
12src/secp256k1.c:227:103: warning: unused parameter ‘len’ [-Wunused-parameter]
13 227 | static SECP256K1_INLINE void secp256k1_declassify(const secp256k1_context* ctx, const void *p, size_t len) {
14 | ~~~~~~~^~~
15 CCLD libsecp256k1.la
16 CCLD bench
17 CC src/bench_internal-bench_internal.o
18 CCLD bench_internal
19 CC src/bench_ecmult-bench_ecmult.o
20 CCLD bench_ecmult
21 CC src/tests-tests.o
22In file included from src/tests.c:17:
23src/secp256k1.c: In function ‘secp256k1_declassify’:
24src/secp256k1.c:227:93: warning: unused parameter ‘p’ [-Wunused-parameter]
25 227 | static SECP256K1_INLINE void secp256k1_declassify(const secp256k1_context* ctx, const void *p, size_t len) {
26 | ~~~~~~~~~~~~^
27src/secp256k1.c:227:103: warning: unused parameter ‘len’ [-Wunused-parameter]
28 227 | static SECP256K1_INLINE void secp256k1_declassify(const secp256k1_context* ctx, const void *p, size_t len) {
29 | ~~~~~~~^~~
30 CCLD tests
31 CC src/valgrind_ctime_test.o
32 CCLD valgrind_ctime_test
33 CC src/exhaustive_tests-tests_exhaustive.o
34 CCLD exhaustive_tests