aboutsummaryrefslogtreecommitdiff
path: root/src/makefile
diff options
context:
space:
mode:
authorPaul Aurich <paul@darkrain42.org>2011-04-27 10:42:20 -0700
committerSam Roberts <vieuxtech@gmail.com>2012-04-11 13:33:34 -0700
commit908ee2cce1740c3d873fe45b752c8aa1b1f3e306 (patch)
tree66168122e4b81645496325a0940d33d3c31ca42a /src/makefile
parentdd83e0a8494cfd28651b54c44d51e296ba16b8c4 (diff)
downloadluasocket-908ee2cce1740c3d873fe45b752c8aa1b1f3e306.tar.gz
luasocket-908ee2cce1740c3d873fe45b752c8aa1b1f3e306.tar.bz2
luasocket-908ee2cce1740c3d873fe45b752c8aa1b1f3e306.zip
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.
Diffstat (limited to 'src/makefile')
-rw-r--r--src/makefile2
1 files changed, 1 insertions, 1 deletions
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
48DEF_linux=-DLUASOCKET_DEBUG \ 48DEF_linux=-DLUASOCKET_DEBUG \
49 -DLUASOCKET_API='__attribute__((visibility("default")))' \ 49 -DLUASOCKET_API='__attribute__((visibility("default")))' \
50 -DMIME_API='__attribute__((visibility("default")))' 50 -DMIME_API='__attribute__((visibility("default")))'
51CFLAGS_linux= -I$(LUAINC) $(DEF) -pedantic -Wall -O2 -fpic \ 51CFLAGS_linux= -I$(LUAINC) $(DEF) -pedantic -Wall -Wshadow -Wextra -Wimplicit -O2 -ggdb3 -fpic \
52 -fvisibility=hidden 52 -fvisibility=hidden
53LDFLAGS_linux=-O -shared -fpic -o 53LDFLAGS_linux=-O -shared -fpic -o
54LD_linux=gcc 54LD_linux=gcc