aboutsummaryrefslogtreecommitdiff
path: root/makefile
diff options
context:
space:
mode:
Diffstat (limited to 'makefile')
-rw-r--r--makefile13
1 files changed, 9 insertions, 4 deletions
diff --git a/makefile b/makefile
index 9e537dcc..7cfcbfe1 100644
--- a/makefile
+++ b/makefile
@@ -5,7 +5,7 @@
5 5
6# Warnings valid for both C and C++ 6# Warnings valid for both C and C++
7CWARNSCPP= \ 7CWARNSCPP= \
8 -fmax-errors=5 \ 8 -Wfatal-errors \
9 -Wextra \ 9 -Wextra \
10 -Wshadow \ 10 -Wshadow \
11 -Wsign-compare \ 11 -Wsign-compare \
@@ -14,8 +14,6 @@ CWARNSCPP= \
14 -Wredundant-decls \ 14 -Wredundant-decls \
15 -Wdisabled-optimization \ 15 -Wdisabled-optimization \
16 -Wdouble-promotion \ 16 -Wdouble-promotion \
17 -Wlogical-op \
18 -Wno-aggressive-loop-optimizations \
19 # the next warnings might be useful sometimes, 17 # the next warnings might be useful sometimes,
20 # but usually they generate too much noise 18 # but usually they generate too much noise
21 # -Werror \ 19 # -Werror \
@@ -26,6 +24,13 @@ CWARNSCPP= \
26 # -Wformat=2 \ 24 # -Wformat=2 \
27 # -Wcast-qual \ 25 # -Wcast-qual \
28 26
27
28# Warnings for gcc, not valid for clang
29CWARNGCC= \
30 -Wlogical-op \
31 -Wno-aggressive-loop-optimizations \
32
33
29# The next warnings are neither valid nor needed for C++ 34# The next warnings are neither valid nor needed for C++
30CWARNSC= -Wdeclaration-after-statement \ 35CWARNSC= -Wdeclaration-after-statement \
31 -Wmissing-prototypes \ 36 -Wmissing-prototypes \
@@ -35,7 +40,7 @@ CWARNSC= -Wdeclaration-after-statement \
35 -Wold-style-definition \ 40 -Wold-style-definition \
36 41
37 42
38CWARNS= $(CWARNSCPP) $(CWARNSC) 43CWARNS= $(CWARNSCPP) $(CWARNSC) $(CWARNGCC)
39 44
40# Some useful compiler options for internal tests: 45# Some useful compiler options for internal tests:
41# -DLUAI_ASSERT turns on all assertions inside Lua. 46# -DLUAI_ASSERT turns on all assertions inside Lua.