mirror of https://github.com/rusefi/lua.git
Details in the makefile (warning options)
This commit is contained in:
parent
6ef366644f
commit
89f6a85f03
16
makefile
16
makefile
|
@ -6,6 +6,7 @@
|
||||||
|
|
||||||
# Warnings valid for both C and C++
|
# Warnings valid for both C and C++
|
||||||
CWARNSCPP= \
|
CWARNSCPP= \
|
||||||
|
-fmax-errors=5 \
|
||||||
-Wextra \
|
-Wextra \
|
||||||
-Wshadow \
|
-Wshadow \
|
||||||
-Wsign-compare \
|
-Wsign-compare \
|
||||||
|
@ -14,14 +15,13 @@ CWARNSCPP= \
|
||||||
-Wredundant-decls \
|
-Wredundant-decls \
|
||||||
-Wdisabled-optimization \
|
-Wdisabled-optimization \
|
||||||
-Wdouble-promotion \
|
-Wdouble-promotion \
|
||||||
#-Wno-aggressive-loop-optimizations \
|
-Wlogical-op \
|
||||||
#-Wlogical-op \
|
-Wno-aggressive-loop-optimizations \
|
||||||
#-Wfatal-errors \
|
# the next warnings might be useful sometimes,
|
||||||
#-Wstrict-aliasing=3 \
|
# but usually they generate too much noise
|
||||||
# -Werror \
|
# -Werror \
|
||||||
# -pedantic # warns if we use jump tables \
|
# -pedantic # warns if we use jump tables \
|
||||||
# the next warnings generate too much noise, so they are disabled
|
# -Wconversion \
|
||||||
# -Wconversion -Wno-sign-conversion \
|
|
||||||
# -Wsign-conversion \
|
# -Wsign-conversion \
|
||||||
# -Wstrict-overflow=2 \
|
# -Wstrict-overflow=2 \
|
||||||
# -Wformat=2 \
|
# -Wformat=2 \
|
||||||
|
@ -46,10 +46,10 @@ CWARNS= $(CWARNSCPP) $(CWARNSC)
|
||||||
# -DLUA_USE_CTYPE -DLUA_USE_APICHECK
|
# -DLUA_USE_CTYPE -DLUA_USE_APICHECK
|
||||||
# ('-ftrapv' for runtime checks of integer overflows)
|
# ('-ftrapv' for runtime checks of integer overflows)
|
||||||
# -fsanitize=undefined -ftrapv -fno-inline
|
# -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
|
# enable Linux goodies
|
||||||
|
|
Loading…
Reference in New Issue