Skip to content

Commit f88a996

Browse files
ci: Make compiler warning into errors on CI
This also tidies the list of environment variables in .cirrus.yml.
1 parent b924e1e commit f88a996

File tree

2 files changed

+17
-7
lines changed

2 files changed

+17
-7
lines changed

.cirrus.yml

+14-7
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,28 @@
11
env:
2-
WIDEMUL: auto
2+
### compiler options
3+
HOST:
4+
# Specific warnings can be disabled with -Wno-error=foo.
5+
# -pedantic-errors is not equivalent to -Werror=pedantic and thus not implied by -Werror according to the GCC manual.
6+
WERROR_CFLAGS: -Werror -pedantic-errors
7+
MAKEFLAGS: -j2
8+
BUILD: check
9+
### secp256k1 config
310
STATICPRECOMPUTATION: yes
411
ECMULTGENPRECISION: auto
512
ASM: no
6-
BUILD: check
13+
WIDEMUL: auto
714
WITH_VALGRIND: yes
815
EXTRAFLAGS:
9-
HOST:
16+
### secp256k1 modules
17+
EXPERIMENTAL: no
1018
ECDH: no
1119
RECOVERY: no
1220
SCHNORRSIG: no
13-
EXPERIMENTAL: no
14-
CTIMETEST: yes
15-
BENCH: yes
21+
### test options
1622
TEST_ITERS:
23+
BENCH: yes
1724
BENCH_ITERS: 2
18-
MAKEFLAGS: -j2
25+
CTIMETEST: yes
1926

2027
cat_logs_snippet: &CAT_LOGS
2128
always:

configure.ac

+3
Original file line numberDiff line numberDiff line change
@@ -357,6 +357,9 @@ if test x"$enable_valgrind" = x"yes"; then
357357
SECP_INCLUDES="$SECP_INCLUDES $VALGRIND_CPPFLAGS"
358358
fi
359359

360+
# Add -Werror and similar flags passed from the outside (for testing, e.g., in CI)
361+
SECP_CFLAGS="$SECP_CFLAGS $WERROR_CFLAGS"
362+
360363
# Handle static precomputation (after everything which modifies CFLAGS and friends)
361364
if test x"$use_ecmult_static_precomputation" != x"no"; then
362365
if test x"$cross_compiling" = x"no"; then

0 commit comments

Comments
 (0)