diff options
| author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2013-06-20 15:56:51 -0300 |
|---|---|---|
| committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2013-06-20 15:56:51 -0300 |
| commit | 6579bd41909017d1223f5541c4d74f28430b2640 (patch) | |
| tree | b834eba2c11825c863aeff10b06719317f97b110 /makefile | |
| parent | f45177f2d325d76e0622109ddf4f534a05e721e8 (diff) | |
| download | lua-6579bd41909017d1223f5541c4d74f28430b2640.tar.gz lua-6579bd41909017d1223f5541c4d74f28430b2640.tar.bz2 lua-6579bd41909017d1223f5541c4d74f28430b2640.zip | |
reorganization of warnings + update of explicit dependencies (gcc -MM)
Diffstat (limited to 'makefile')
| -rw-r--r-- | makefile | 17 |
1 files changed, 10 insertions, 7 deletions
| @@ -4,11 +4,12 @@ | |||
| 4 | 4 | ||
| 5 | # == CHANGE THE SETTINGS BELOW TO SUIT YOUR ENVIRONMENT ======================= | 5 | # == CHANGE THE SETTINGS BELOW TO SUIT YOUR ENVIRONMENT ======================= |
| 6 | 6 | ||
| 7 | CWARNSC=-pedantic -Wextra \ | 7 | # Warnings valid for both C and C++ |
| 8 | CWARNSCPP=-pedantic -Wno-long-long \ | ||
| 9 | -Wall -Wextra \ | ||
| 8 | -Waggregate-return \ | 10 | -Waggregate-return \ |
| 9 | -Wcast-align \ | 11 | -Wcast-align \ |
| 10 | -Wdisabled-optimization \ | 12 | -Wdisabled-optimization \ |
| 11 | -Wpointer-arith \ | ||
| 12 | -Wshadow \ | 13 | -Wshadow \ |
| 13 | -Wsign-compare \ | 14 | -Wsign-compare \ |
| 14 | -Wundef \ | 15 | -Wundef \ |
| @@ -24,15 +25,17 @@ CWARNSC=-pedantic -Wextra \ | |||
| 24 | # -Wformat=2 \ | 25 | # -Wformat=2 \ |
| 25 | # -Wcast-qual \ | 26 | # -Wcast-qual \ |
| 26 | 27 | ||
| 27 | # The next warnings are not valid for C++ | 28 | # The next warnings are neither valid nor needed for C++ |
| 28 | CWARNS= $(CWARNSC) \ | 29 | CWARNSC= -Wdeclaration-after-statement \ |
| 29 | -Wdeclaration-after-statement \ | ||
| 30 | -Wmissing-prototypes \ | 30 | -Wmissing-prototypes \ |
| 31 | -Wnested-externs \ | 31 | -Wnested-externs \ |
| 32 | -Wstrict-prototypes \ | 32 | -Wstrict-prototypes \ |
| 33 | -Wc++-compat \ | 33 | -Wc++-compat \ |
| 34 | -Wold-style-declaration \ | ||
| 34 | -Wold-style-definition \ | 35 | -Wold-style-definition \ |
| 35 | 36 | ||
| 37 | CWARNS= $(CWARNSCPP) $(CWARNSC) | ||
| 38 | |||
| 36 | 39 | ||
| 37 | # -DEXTERNMEMCHECK -DHARDSTACKTESTS -DHARDMEMTESTS -DTRACEMEM='"tempmem"' | 40 | # -DEXTERNMEMCHECK -DHARDSTACKTESTS -DHARDMEMTESTS -DTRACEMEM='"tempmem"' |
| 38 | # -g -DLUA_USER_H='"ltests.h"' | 41 | # -g -DLUA_USER_H='"ltests.h"' |
| @@ -174,8 +177,8 @@ ltablib.o: ltablib.c lua.h luaconf.h lauxlib.h lualib.h | |||
| 174 | ltests.o: ltests.c lua.h luaconf.h lapi.h llimits.h lstate.h lobject.h \ | 177 | ltests.o: ltests.c lua.h luaconf.h lapi.h llimits.h lstate.h lobject.h \ |
| 175 | ltm.h lzio.h lmem.h lauxlib.h lcode.h llex.h lopcodes.h lparser.h \ | 178 | ltm.h lzio.h lmem.h lauxlib.h lcode.h llex.h lopcodes.h lparser.h \ |
| 176 | lctype.h ldebug.h ldo.h lfunc.h lstring.h lgc.h ltable.h lualib.h | 179 | lctype.h ldebug.h ldo.h lfunc.h lstring.h lgc.h ltable.h lualib.h |
| 177 | ltm.o: ltm.c lua.h luaconf.h lobject.h llimits.h lstate.h ltm.h lzio.h \ | 180 | ltm.o: ltm.c lua.h luaconf.h ldebug.h lstate.h lobject.h llimits.h ltm.h \ |
| 178 | lmem.h lstring.h lgc.h ltable.h | 181 | lzio.h lmem.h ldo.h lstring.h lgc.h ltable.h lvm.h |
| 179 | lua.o: lua.c lua.h luaconf.h lauxlib.h lualib.h | 182 | lua.o: lua.c lua.h luaconf.h lauxlib.h lualib.h |
| 180 | lundump.o: lundump.c lua.h luaconf.h ldebug.h lstate.h lobject.h \ | 183 | lundump.o: lundump.c lua.h luaconf.h ldebug.h lstate.h lobject.h \ |
| 181 | llimits.h ltm.h lzio.h lmem.h ldo.h lfunc.h lstring.h lgc.h lundump.h | 184 | llimits.h ltm.h lzio.h lmem.h ldo.h lfunc.h lstring.h lgc.h lundump.h |
