mirror of
https://github.com/lua/lua
synced 2025-04-02 19:12:53 +03:00
warnings that are not compatible with C++ separated from other warning
options
This commit is contained in:
parent
070d3743a7
commit
f270e7f044
21
makefile
21
makefile
@ -4,34 +4,37 @@
|
|||||||
|
|
||||||
# == CHANGE THE SETTINGS BELOW TO SUIT YOUR ENVIRONMENT =======================
|
# == CHANGE THE SETTINGS BELOW TO SUIT YOUR ENVIRONMENT =======================
|
||||||
|
|
||||||
CWARNS= -pedantic -Wextra \
|
CWARNSC=-pedantic -Wextra \
|
||||||
-Waggregate-return \
|
-Waggregate-return \
|
||||||
-Wcast-align \
|
-Wcast-align \
|
||||||
-Wdeclaration-after-statement \
|
|
||||||
-Wdisabled-optimization \
|
-Wdisabled-optimization \
|
||||||
-Wmissing-prototypes \
|
|
||||||
-Wnested-externs \
|
|
||||||
-Wpointer-arith \
|
-Wpointer-arith \
|
||||||
-Wshadow \
|
-Wshadow \
|
||||||
-Wsign-compare \
|
-Wsign-compare \
|
||||||
-Wstrict-prototypes \
|
|
||||||
-Wundef \
|
-Wundef \
|
||||||
-Wwrite-strings \
|
-Wwrite-strings \
|
||||||
-Wc++-compat \
|
|
||||||
-Wold-style-definition \
|
|
||||||
-Wredundant-decls \
|
-Wredundant-decls \
|
||||||
-Wdisabled-optimization \
|
-Wdisabled-optimization \
|
||||||
-malign-double
|
# the next warnings generate to much noise, so they are disabled
|
||||||
# -Wlogical-op \
|
# -Wlogical-op \
|
||||||
# -Wformat=2 \
|
# -Wformat=2 \
|
||||||
# -Wstrict-overflow=5 \
|
# -Wstrict-overflow=5 \
|
||||||
# -Wcast-qual \
|
# -Wcast-qual \
|
||||||
|
|
||||||
|
# The next warnings are not valid for C++
|
||||||
|
CWARNS= $(CWARNSC) \
|
||||||
|
-Wdeclaration-after-statement \
|
||||||
|
-Wmissing-prototypes \
|
||||||
|
-Wnested-externs \
|
||||||
|
-Wstrict-prototypes \
|
||||||
|
-Wc++-compat \
|
||||||
|
-Wold-style-definition \
|
||||||
|
|
||||||
|
|
||||||
# -DEXTERNMEMCHECK -DHARDSTACKTESTS -DHARDMEMTESTS
|
# -DEXTERNMEMCHECK -DHARDSTACKTESTS -DHARDMEMTESTS
|
||||||
# -g -DLUA_USER_H='"ltests.h"'
|
# -g -DLUA_USER_H='"ltests.h"'
|
||||||
# -fomit-frame-pointer #-pg -malign-double
|
# -fomit-frame-pointer #-pg -malign-double
|
||||||
# TESTS= -g -DLUA_USER_H='"ltests.h"'
|
TESTS= -g -DLUA_USER_H='"ltests.h"'
|
||||||
|
|
||||||
LOCAL = $(TESTS) $(CWARNS)
|
LOCAL = $(TESTS) $(CWARNS)
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user