From 92496abe0f4e606a5fd8227d861aedff466b9679 Mon Sep 17 00:00:00 2001 From: Damien George Date: Thu, 22 Jan 2015 14:10:11 +0000 Subject: [PATCH] unix: Enable extra compiler warnings. To address issue #699. --- unix/Makefile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/unix/Makefile b/unix/Makefile index 43b5bf2dda..6da5f6a175 100644 --- a/unix/Makefile +++ b/unix/Makefile @@ -18,7 +18,8 @@ INC += -I.. INC += -I$(BUILD) # compiler settings -CWARN = -Wall -Wpointer-arith -Werror +CWARN = -Wall -Werror +CWARN += -Wdouble-promotion -Wformat -Wmissing-declarations -Wmissing-prototypes -Wold-style-definition -Wpointer-arith -Wredundant-decls -Wshadow -Wsign-compare -Wstrict-prototypes -Wuninitialized -Wunused-parameter CFLAGS = $(INC) $(CWARN) -ansi -std=gnu99 -DUNIX $(CFLAGS_MOD) $(COPT) $(CFLAGS_EXTRA) # Debugging/Optimization