diff options
author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2010-01-13 14:19:54 -0200 |
---|---|---|
committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2010-01-13 14:19:54 -0200 |
commit | f270e7f044037c5a648be90b6c452b820b275bbe (patch) | |
tree | f01b264ffd10a7848bff143e5d5e5489993a3e82 /makefile | |
parent | 070d3743a7892ec6429000c8309b72bfb0600d19 (diff) | |
download | lua-f270e7f044037c5a648be90b6c452b820b275bbe.tar.gz lua-f270e7f044037c5a648be90b6c452b820b275bbe.tar.bz2 lua-f270e7f044037c5a648be90b6c452b820b275bbe.zip |
warnings that are not compatible with C++ separated from other warning
options
Diffstat (limited to 'makefile')
-rw-r--r-- | makefile | 21 |
1 files changed, 12 insertions, 9 deletions
@@ -4,34 +4,37 @@ | |||
4 | 4 | ||
5 | # == CHANGE THE SETTINGS BELOW TO SUIT YOUR ENVIRONMENT ======================= | 5 | # == CHANGE THE SETTINGS BELOW TO SUIT YOUR ENVIRONMENT ======================= |
6 | 6 | ||
7 | CWARNS= -pedantic -Wextra \ | 7 | CWARNSC=-pedantic -Wextra \ |
8 | -Waggregate-return \ | 8 | -Waggregate-return \ |
9 | -Wcast-align \ | 9 | -Wcast-align \ |
10 | -Wdeclaration-after-statement \ | ||
11 | -Wdisabled-optimization \ | 10 | -Wdisabled-optimization \ |
12 | -Wmissing-prototypes \ | ||
13 | -Wnested-externs \ | ||
14 | -Wpointer-arith \ | 11 | -Wpointer-arith \ |
15 | -Wshadow \ | 12 | -Wshadow \ |
16 | -Wsign-compare \ | 13 | -Wsign-compare \ |
17 | -Wstrict-prototypes \ | ||
18 | -Wundef \ | 14 | -Wundef \ |
19 | -Wwrite-strings \ | 15 | -Wwrite-strings \ |
20 | -Wc++-compat \ | ||
21 | -Wold-style-definition \ | ||
22 | -Wredundant-decls \ | 16 | -Wredundant-decls \ |
23 | -Wdisabled-optimization \ | 17 | -Wdisabled-optimization \ |
24 | -malign-double | 18 | # the next warnings generate to much noise, so they are disabled |
25 | # -Wlogical-op \ | 19 | # -Wlogical-op \ |
26 | # -Wformat=2 \ | 20 | # -Wformat=2 \ |
27 | # -Wstrict-overflow=5 \ | 21 | # -Wstrict-overflow=5 \ |
28 | # -Wcast-qual \ | 22 | # -Wcast-qual \ |
29 | 23 | ||
24 | # The next warnings are not valid for C++ | ||
25 | CWARNS= $(CWARNSC) \ | ||
26 | -Wdeclaration-after-statement \ | ||
27 | -Wmissing-prototypes \ | ||
28 | -Wnested-externs \ | ||
29 | -Wstrict-prototypes \ | ||
30 | -Wc++-compat \ | ||
31 | -Wold-style-definition \ | ||
32 | |||
30 | 33 | ||
31 | # -DEXTERNMEMCHECK -DHARDSTACKTESTS -DHARDMEMTESTS | 34 | # -DEXTERNMEMCHECK -DHARDSTACKTESTS -DHARDMEMTESTS |
32 | # -g -DLUA_USER_H='"ltests.h"' | 35 | # -g -DLUA_USER_H='"ltests.h"' |
33 | # -fomit-frame-pointer #-pg -malign-double | 36 | # -fomit-frame-pointer #-pg -malign-double |
34 | # TESTS= -g -DLUA_USER_H='"ltests.h"' | 37 | TESTS= -g -DLUA_USER_H='"ltests.h"' |
35 | 38 | ||
36 | LOCAL = $(TESTS) $(CWARNS) | 39 | LOCAL = $(TESTS) $(CWARNS) |
37 | 40 | ||