diff options
author | Paul Aurich <paul@darkrain42.org> | 2011-04-27 10:42:20 -0700 |
---|---|---|
committer | Sam Roberts <vieuxtech@gmail.com> | 2012-04-11 13:33:34 -0700 |
commit | 908ee2cce1740c3d873fe45b752c8aa1b1f3e306 (patch) | |
tree | 66168122e4b81645496325a0940d33d3c31ca42a /src/makefile | |
parent | dd83e0a8494cfd28651b54c44d51e296ba16b8c4 (diff) | |
download | luasocket-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/makefile | 2 |
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 | |||
48 | DEF_linux=-DLUASOCKET_DEBUG \ | 48 | DEF_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")))' |
51 | CFLAGS_linux= -I$(LUAINC) $(DEF) -pedantic -Wall -O2 -fpic \ | 51 | CFLAGS_linux= -I$(LUAINC) $(DEF) -pedantic -Wall -Wshadow -Wextra -Wimplicit -O2 -ggdb3 -fpic \ |
52 | -fvisibility=hidden | 52 | -fvisibility=hidden |
53 | LDFLAGS_linux=-O -shared -fpic -o | 53 | LDFLAGS_linux=-O -shared -fpic -o |
54 | LD_linux=gcc | 54 | LD_linux=gcc |