mirror of https://github.com/rusefi/lua.git
using 'clang' by default + changes in warnings ('old-style-declaration'
removed because it is included in 'extra' + 'strict-aliasing' removed because it is included in 'all' + 'aggregate-return' removed because no one would do it by mistake)
This commit is contained in:
parent
2de3361c6c
commit
6a8400ba4f
7
makefile
7
makefile
|
@ -8,15 +8,14 @@
|
||||||
CWARNSCPP= \
|
CWARNSCPP= \
|
||||||
-pedantic \
|
-pedantic \
|
||||||
-Wextra \
|
-Wextra \
|
||||||
-Waggregate-return \
|
|
||||||
-Wshadow \
|
-Wshadow \
|
||||||
-Wsign-compare \
|
-Wsign-compare \
|
||||||
-Wundef \
|
-Wundef \
|
||||||
-Wwrite-strings \
|
-Wwrite-strings \
|
||||||
-Wredundant-decls \
|
-Wredundant-decls \
|
||||||
-Wdisabled-optimization \
|
-Wdisabled-optimization \
|
||||||
-Wstrict-aliasing \
|
|
||||||
# the next warnings generate to much noise, so they are disabled
|
# the next warnings generate to much noise, so they are disabled
|
||||||
|
# -Wdouble-promotion \
|
||||||
# -Wconversion -Wno-sign-conversion \
|
# -Wconversion -Wno-sign-conversion \
|
||||||
# -Wsign-conversion \
|
# -Wsign-conversion \
|
||||||
# -Wconversion \
|
# -Wconversion \
|
||||||
|
@ -32,7 +31,7 @@ CWARNSC= -Wdeclaration-after-statement \
|
||||||
-Wstrict-prototypes \
|
-Wstrict-prototypes \
|
||||||
-Wc++-compat \
|
-Wc++-compat \
|
||||||
-Wold-style-definition \
|
-Wold-style-definition \
|
||||||
-Wold-style-declaration \
|
|
||||||
|
|
||||||
CWARNS= $(CWARNSCPP) $(CWARNSC)
|
CWARNS= $(CWARNSCPP) $(CWARNSC)
|
||||||
|
|
||||||
|
@ -54,7 +53,7 @@ MYLDFLAGS= $(LOCAL) -Wl,-E
|
||||||
MYLIBS= -ldl -lreadline -lhistory -lncurses
|
MYLIBS= -ldl -lreadline -lhistory -lncurses
|
||||||
|
|
||||||
|
|
||||||
CC= gcc
|
CC= clang
|
||||||
CFLAGS= -Wall -O2 $(MYCFLAGS)
|
CFLAGS= -Wall -O2 $(MYCFLAGS)
|
||||||
# CC= ~lhf/sunstudio12/bin/cc
|
# CC= ~lhf/sunstudio12/bin/cc
|
||||||
# CFLAGS= -xO5 -v -Xc -native -xstrconst
|
# CFLAGS= -xO5 -v -Xc -native -xstrconst
|
||||||
|
|
Loading…
Reference in New Issue