From 908ee2cce1740c3d873fe45b752c8aa1b1f3e306 Mon Sep 17 00:00:00 2001 From: Paul Aurich Date: Wed, 27 Apr 2011 10:42:20 -0700 Subject: Fix two crashes and add -Wshadow so that this can't happen again. The two crashes are the s/const char *// changes in tcp.c. The rest is cleanup so it will build. --- src/makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/makefile') diff --git a/src/makefile b/src/makefile index 701feb3..9768ba1 100644 --- a/src/makefile +++ b/src/makefile @@ -48,7 +48,7 @@ CC_linux=gcc DEF_linux=-DLUASOCKET_DEBUG \ -DLUASOCKET_API='__attribute__((visibility("default")))' \ -DMIME_API='__attribute__((visibility("default")))' -CFLAGS_linux= -I$(LUAINC) $(DEF) -pedantic -Wall -O2 -fpic \ +CFLAGS_linux= -I$(LUAINC) $(DEF) -pedantic -Wall -Wshadow -Wextra -Wimplicit -O2 -ggdb3 -fpic \ -fvisibility=hidden LDFLAGS_linux=-O -shared -fpic -o LD_linux=gcc -- cgit v1.2.3-55-g6feb