From c95d2816bda5e4bff66038b6e0d76961fbcb2960 Mon Sep 17 00:00:00 2001 From: Thom Wiggers Date: Fri, 1 Mar 2019 12:15:51 +0100 Subject: [PATCH] Enable some extra warnings These warnings should help catch some non-obvious bugs. --- test/Makefile | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/test/Makefile b/test/Makefile index e08bb25b..1e16fd2c 100644 --- a/test/Makefile +++ b/test/Makefile @@ -15,7 +15,10 @@ COMMON_HEADERS=$(COMMON_DIR)/fips202.h $(COMMON_DIR)/randombytes.h $(COMMON_DIR) DEST_DIR=../bin # This -Wall was supported by the European Commission through the ERC Starting Grant 805031 (EPOQUE) -CFLAGS=-Wall -Wextra -Wpedantic -Werror -Wundef -std=c99 -I$(COMMON_DIR) $(EXTRAFLAGS) +CFLAGS=-Wall -Wextra -Wpedantic -Werror -std=c99 \ + -Wundef -Wshadow -Wcast-align -Wpointer-arith \ + -fstrict-aliasing -fno-common -pipe \ + -I$(COMMON_DIR) $(EXTRAFLAGS) all: $(DEST_DIR)/functest_$(SCHEME)_$(IMPLEMENTATION) $(DEST_DIR)/testvectors_$(SCHEME)_$(IMPLEMENTATION)