reorganization of warnings + update of explicit dependencies (gcc -MM)

This commit is contained in:
Roberto Ierusalimschy 2013-06-20 15:56:51 -03:00
parent f45177f2d3
commit 6579bd4190
1 changed files with 10 additions and 7 deletions

View File

@ -4,11 +4,12 @@
# == CHANGE THE SETTINGS BELOW TO SUIT YOUR ENVIRONMENT ======================= # == CHANGE THE SETTINGS BELOW TO SUIT YOUR ENVIRONMENT =======================
CWARNSC=-pedantic -Wextra \ # Warnings valid for both C and C++
CWARNSCPP=-pedantic -Wno-long-long \
-Wall -Wextra \
-Waggregate-return \ -Waggregate-return \
-Wcast-align \ -Wcast-align \
-Wdisabled-optimization \ -Wdisabled-optimization \
-Wpointer-arith \
-Wshadow \ -Wshadow \
-Wsign-compare \ -Wsign-compare \
-Wundef \ -Wundef \
@ -24,15 +25,17 @@ CWARNSC=-pedantic -Wextra \
# -Wformat=2 \ # -Wformat=2 \
# -Wcast-qual \ # -Wcast-qual \
# The next warnings are not valid for C++ # The next warnings are neither valid nor needed for C++
CWARNS= $(CWARNSC) \ CWARNSC= -Wdeclaration-after-statement \
-Wdeclaration-after-statement \
-Wmissing-prototypes \ -Wmissing-prototypes \
-Wnested-externs \ -Wnested-externs \
-Wstrict-prototypes \ -Wstrict-prototypes \
-Wc++-compat \ -Wc++-compat \
-Wold-style-declaration \
-Wold-style-definition \ -Wold-style-definition \
CWARNS= $(CWARNSCPP) $(CWARNSC)
# -DEXTERNMEMCHECK -DHARDSTACKTESTS -DHARDMEMTESTS -DTRACEMEM='"tempmem"' # -DEXTERNMEMCHECK -DHARDSTACKTESTS -DHARDMEMTESTS -DTRACEMEM='"tempmem"'
# -g -DLUA_USER_H='"ltests.h"' # -g -DLUA_USER_H='"ltests.h"'
@ -174,8 +177,8 @@ ltablib.o: ltablib.c lua.h luaconf.h lauxlib.h lualib.h
ltests.o: ltests.c lua.h luaconf.h lapi.h llimits.h lstate.h lobject.h \ ltests.o: ltests.c lua.h luaconf.h lapi.h llimits.h lstate.h lobject.h \
ltm.h lzio.h lmem.h lauxlib.h lcode.h llex.h lopcodes.h lparser.h \ ltm.h lzio.h lmem.h lauxlib.h lcode.h llex.h lopcodes.h lparser.h \
lctype.h ldebug.h ldo.h lfunc.h lstring.h lgc.h ltable.h lualib.h lctype.h ldebug.h ldo.h lfunc.h lstring.h lgc.h ltable.h lualib.h
ltm.o: ltm.c lua.h luaconf.h lobject.h llimits.h lstate.h ltm.h lzio.h \ ltm.o: ltm.c lua.h luaconf.h ldebug.h lstate.h lobject.h llimits.h ltm.h \
lmem.h lstring.h lgc.h ltable.h lzio.h lmem.h ldo.h lstring.h lgc.h ltable.h lvm.h
lua.o: lua.c lua.h luaconf.h lauxlib.h lualib.h lua.o: lua.c lua.h luaconf.h lauxlib.h lualib.h
lundump.o: lundump.c lua.h luaconf.h ldebug.h lstate.h lobject.h \ lundump.o: lundump.c lua.h luaconf.h ldebug.h lstate.h lobject.h \
llimits.h ltm.h lzio.h lmem.h ldo.h lfunc.h lstring.h lgc.h lundump.h llimits.h ltm.h lzio.h lmem.h ldo.h lfunc.h lstring.h lgc.h lundump.h