several details

This commit is contained in:
Roberto Ierusalimschy 2018-06-18 15:25:19 -03:00
parent a314409dba
commit 6683f83b51
1 changed files with 10 additions and 11 deletions

View File

@ -6,7 +6,6 @@
# Warnings valid for both C and C++ # Warnings valid for both C and C++
CWARNSCPP= \ CWARNSCPP= \
# -pedantic \ /* warns if we use jump tables */
-Wextra \ -Wextra \
-Wshadow \ -Wshadow \
-Wsign-compare \ -Wsign-compare \
@ -15,9 +14,11 @@ CWARNSCPP= \
-Wredundant-decls \ -Wredundant-decls \
-Wdisabled-optimization \ -Wdisabled-optimization \
-Wdouble-promotion \ -Wdouble-promotion \
-Wstrict-aliasing=3 # not accepted by clang \ -Wstrict-aliasing=3 \
-Wno-aggressive-loop-optimizations # not accepted by clang \ -Wno-aggressive-loop-optimizations \
-Wlogical-op # not accepted by clang \ -Wlogical-op \
-Werror \
# -pedantic # warns if we use jump tables \
# the next warnings generate too much noise, so they are disabled # the next warnings generate too much noise, so they are disabled
# -Wconversion -Wno-sign-conversion \ # -Wconversion -Wno-sign-conversion \
# -Wsign-conversion \ # -Wsign-conversion \
@ -41,14 +42,12 @@ CWARNS= $(CWARNSCPP) $(CWARNSC)
# -g -DLUA_USER_H='"ltests.h"' # -g -DLUA_USER_H='"ltests.h"'
# -pg -malign-double # -pg -malign-double
# -DLUA_USE_CTYPE -DLUA_USE_APICHECK # -DLUA_USE_CTYPE -DLUA_USE_APICHECK
# (in clang, '-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
# -mtune=native -fomit-frame-pointer
# -fno-stack-protector # LOCAL = $(TESTS) $(CWARNS) -g
# -DLUA_NILINTABLE
LOCAL = $(TESTS) $(CWARNS) -g -DEXTERNMEMCHECK
@ -59,8 +58,8 @@ MYLIBS= -ldl -lreadline
CC= gcc CC= gcc
CFLAGS= -Wall -O2 $(MYCFLAGS) -Wfatal-errors CFLAGS= -Wall -O2 $(MYCFLAGS) -Wfatal-errors -fno-stack-protector -fno-common
AR= ar rcu AR= ar rc
RANLIB= ranlib RANLIB= ranlib
RM= rm -f RM= rm -f