summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>2019-09-24 14:43:32 -0300
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>2019-09-24 14:43:32 -0300
commit89f6a85f034b2535e43e421991098fa05a92cd60 (patch)
tree84cbb8e64aa54da87bdc68c576d489f5bb9e12fa
parent6ef366644f7c3c21cfb17434835edf4ebf970d6d (diff)
downloadlua-github-89f6a85f034b2535e43e421991098fa05a92cd60.tar.gz
Details in the makefile (warning options)
-rw-r--r--makefile16
1 files changed, 8 insertions, 8 deletions
diff --git a/makefile b/makefile
index cf238aeb..ba3219bc 100644
--- a/makefile
+++ b/makefile
@@ -6,6 +6,7 @@
# Warnings valid for both C and C++
CWARNSCPP= \
+ -fmax-errors=5 \
-Wextra \
-Wshadow \
-Wsign-compare \
@@ -14,14 +15,13 @@ CWARNSCPP= \
-Wredundant-decls \
-Wdisabled-optimization \
-Wdouble-promotion \
- #-Wno-aggressive-loop-optimizations \
- #-Wlogical-op \
- #-Wfatal-errors \
- #-Wstrict-aliasing=3 \
+ -Wlogical-op \
+ -Wno-aggressive-loop-optimizations \
+ # the next warnings might be useful sometimes,
+ # but usually they generate too much noise
# -Werror \
# -pedantic # warns if we use jump tables \
- # the next warnings generate too much noise, so they are disabled
- # -Wconversion -Wno-sign-conversion \
+ # -Wconversion \
# -Wsign-conversion \
# -Wstrict-overflow=2 \
# -Wformat=2 \
@@ -46,10 +46,10 @@ CWARNS= $(CWARNSCPP) $(CWARNSC)
# -DLUA_USE_CTYPE -DLUA_USE_APICHECK
# ('-ftrapv' for runtime checks of integer overflows)
# -fsanitize=undefined -ftrapv -fno-inline
-TESTS= -DLUA_USER_H='"ltests.h"' -O0
+# TESTS= -DLUA_USER_H='"ltests.h"' -O0 -g
-# LOCAL = $(TESTS) $(CWARNS) -g
+LOCAL = $(TESTS) $(CWARNS)
# enable Linux goodies