From f270e7f044037c5a648be90b6c452b820b275bbe Mon Sep 17 00:00:00 2001 From: Roberto Ierusalimschy Date: Wed, 13 Jan 2010 14:19:54 -0200 Subject: [PATCH] warnings that are not compatible with C++ separated from other warning options --- makefile | 21 ++++++++++++--------- 1 file changed, 12 insertions(+), 9 deletions(-) diff --git a/makefile b/makefile index 62b0347a..1928cf2e 100644 --- a/makefile +++ b/makefile @@ -4,34 +4,37 @@ # == CHANGE THE SETTINGS BELOW TO SUIT YOUR ENVIRONMENT ======================= -CWARNS= -pedantic -Wextra \ +CWARNSC=-pedantic -Wextra \ -Waggregate-return \ -Wcast-align \ - -Wdeclaration-after-statement \ -Wdisabled-optimization \ - -Wmissing-prototypes \ - -Wnested-externs \ -Wpointer-arith \ -Wshadow \ -Wsign-compare \ - -Wstrict-prototypes \ -Wundef \ -Wwrite-strings \ - -Wc++-compat \ - -Wold-style-definition \ -Wredundant-decls \ -Wdisabled-optimization \ --malign-double + # the next warnings generate to much noise, so they are disabled # -Wlogical-op \ # -Wformat=2 \ # -Wstrict-overflow=5 \ # -Wcast-qual \ +# The next warnings are not valid for C++ +CWARNS= $(CWARNSC) \ + -Wdeclaration-after-statement \ + -Wmissing-prototypes \ + -Wnested-externs \ + -Wstrict-prototypes \ + -Wc++-compat \ + -Wold-style-definition \ + # -DEXTERNMEMCHECK -DHARDSTACKTESTS -DHARDMEMTESTS # -g -DLUA_USER_H='"ltests.h"' # -fomit-frame-pointer #-pg -malign-double -# TESTS= -g -DLUA_USER_H='"ltests.h"' +TESTS= -g -DLUA_USER_H='"ltests.h"' LOCAL = $(TESTS) $(CWARNS)