diff options
Diffstat (limited to 'makefile')
-rw-r--r-- | makefile | 16 |
1 files changed, 8 insertions, 8 deletions
@@ -6,6 +6,7 @@ | |||
6 | 6 | ||
7 | # Warnings valid for both C and C++ | 7 | # Warnings valid for both C and C++ |
8 | CWARNSCPP= \ | 8 | CWARNSCPP= \ |
9 | -fmax-errors=5 \ | ||
9 | -Wextra \ | 10 | -Wextra \ |
10 | -Wshadow \ | 11 | -Wshadow \ |
11 | -Wsign-compare \ | 12 | -Wsign-compare \ |
@@ -14,14 +15,13 @@ CWARNSCPP= \ | |||
14 | -Wredundant-decls \ | 15 | -Wredundant-decls \ |
15 | -Wdisabled-optimization \ | 16 | -Wdisabled-optimization \ |
16 | -Wdouble-promotion \ | 17 | -Wdouble-promotion \ |
17 | #-Wno-aggressive-loop-optimizations \ | 18 | -Wlogical-op \ |
18 | #-Wlogical-op \ | 19 | -Wno-aggressive-loop-optimizations \ |
19 | #-Wfatal-errors \ | 20 | # the next warnings might be useful sometimes, |
20 | #-Wstrict-aliasing=3 \ | 21 | # but usually they generate too much noise |
21 | # -Werror \ | 22 | # -Werror \ |
22 | # -pedantic # warns if we use jump tables \ | 23 | # -pedantic # warns if we use jump tables \ |
23 | # the next warnings generate too much noise, so they are disabled | 24 | # -Wconversion \ |
24 | # -Wconversion -Wno-sign-conversion \ | ||
25 | # -Wsign-conversion \ | 25 | # -Wsign-conversion \ |
26 | # -Wstrict-overflow=2 \ | 26 | # -Wstrict-overflow=2 \ |
27 | # -Wformat=2 \ | 27 | # -Wformat=2 \ |
@@ -46,10 +46,10 @@ CWARNS= $(CWARNSCPP) $(CWARNSC) | |||
46 | # -DLUA_USE_CTYPE -DLUA_USE_APICHECK | 46 | # -DLUA_USE_CTYPE -DLUA_USE_APICHECK |
47 | # ('-ftrapv' for runtime checks of integer overflows) | 47 | # ('-ftrapv' for runtime checks of integer overflows) |
48 | # -fsanitize=undefined -ftrapv -fno-inline | 48 | # -fsanitize=undefined -ftrapv -fno-inline |
49 | TESTS= -DLUA_USER_H='"ltests.h"' -O0 | 49 | # TESTS= -DLUA_USER_H='"ltests.h"' -O0 -g |
50 | 50 | ||
51 | 51 | ||
52 | # LOCAL = $(TESTS) $(CWARNS) -g | 52 | LOCAL = $(TESTS) $(CWARNS) |
53 | 53 | ||
54 | 54 | ||
55 | # enable Linux goodies | 55 | # enable Linux goodies |