Skip to content

Commit c8db0eb

Browse files
committed
add NO_CONV_WARNINGS and disable the warnings for 8 and 16bit limbs
1 parent 392c52f commit c8db0eb

File tree

2 files changed

+11
-7
lines changed

2 files changed

+11
-7
lines changed

.travis.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -91,14 +91,14 @@ matrix:
9191
# GCC for the x86-64 architecture with restricted limb sizes
9292
# formerly started with the option "--with-low-mp" to testme.sh
9393
# but testing all three in one run took to long and timed out.
94-
- env: BUILDOPTIONS='--with-cc=gcc --cflags=-DMP_8BIT --with-valgrind'
95-
- env: BUILDOPTIONS='--with-cc=gcc --cflags=-DMP_16BIT --with-valgrind'
96-
- env: BUILDOPTIONS='--with-cc=gcc --cflags=-DMP_32BIT --with-valgrind'
94+
- env: NO_CONV_WARNINGS=1 BUILDOPTIONS='--with-cc=gcc --cflags=-DMP_8BIT --with-valgrind'
95+
- env: NO_CONV_WARNINGS=1 BUILDOPTIONS='--with-cc=gcc --cflags=-DMP_16BIT --with-valgrind'
96+
- env: NO_CONV_WARNINGS=1 BUILDOPTIONS='--with-cc=gcc --cflags=-DMP_32BIT --with-valgrind'
9797

9898
# clang for the x86-64 architecture with restricted limb sizes
99-
- env: BUILDOPTIONS='--with-cc=clang --cflags=-DMP_8BIT --with-valgrind'
100-
- env: BUILDOPTIONS='--with-cc=clang --cflags=-DMP_16BIT --with-valgrind'
101-
- env: BUILDOPTIONS='--with-cc=clang --cflags=-DMP_32BIT --with-valgrind'
99+
- env: NO_CONV_WARNINGS=1 BUILDOPTIONS='--with-cc=clang --cflags=-DMP_8BIT --with-valgrind'
100+
- env: NO_CONV_WARNINGS=1 BUILDOPTIONS='--with-cc=clang --cflags=-DMP_16BIT --with-valgrind'
101+
- env: NO_CONV_WARNINGS=1 BUILDOPTIONS='--with-cc=clang --cflags=-DMP_32BIT --with-valgrind'
102102

103103
# GCC for the x86-64 architecture testing against a different Bigint-implementation
104104
# with 333333 different inputs.

makefile_include.mk

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,9 +51,13 @@ CFLAGS += -I./ -Wall -Wsign-compare -Wextra -Wshadow
5151

5252
ifndef NO_ADDTL_WARNINGS
5353
# additional warnings
54-
#CFLAGS += -Wsystem-headers
5554
CFLAGS += -Wdeclaration-after-statement -Wbad-function-cast -Wcast-align
5655
CFLAGS += -Wstrict-prototypes -Wpointer-arith
56+
endif
57+
58+
ifdef NO_CONV_WARNINGS
59+
CFLAGS += -Wsystem-headers
60+
else
5761
CFLAGS += -Wconversion -Wsign-conversion
5862
endif
5963

0 commit comments

Comments
 (0)