Enable -Werror (#47)
This commit is contained in:
parent
09a96a9c88
commit
0939a8d6cd
4
Makefile
4
Makefile
|
@ -14,12 +14,12 @@ ALLTEST = $(shell find test/ -name '*.cpp') $(shell find test/ -name '*.h')
|
||||||
EXAMPLESRC = $(shell find example/ -name '*.cpp') $(shell find example/ -name '*.h')
|
EXAMPLESRC = $(shell find example/ -name '*.cpp') $(shell find example/ -name '*.h')
|
||||||
|
|
||||||
# Compiler & linker flags.
|
# Compiler & linker flags.
|
||||||
CFLAGS = -std=c++11 -Wall -fPIC
|
CFLAGS = -std=c++11 -Wall -Werror -fPIC
|
||||||
LIBFLAGS = -shared
|
LIBFLAGS = -shared
|
||||||
TARGET = libsqlparser.so
|
TARGET = libsqlparser.so
|
||||||
INSTALL = /usr/local
|
INSTALL = /usr/local
|
||||||
|
|
||||||
CTESTFLAGS = -Wall -Isrc/ -Itest/ -L./ -std=c++11 -lstdc++
|
CTESTFLAGS = -Wall -Werror -Isrc/ -Itest/ -L./ -std=c++11 -lstdc++
|
||||||
|
|
||||||
# Set compile mode to -g or -O3.
|
# Set compile mode to -g or -O3.
|
||||||
MODE_LOG = ""
|
MODE_LOG = ""
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
SRC = ./
|
SRC = ./
|
||||||
CPP = $(shell find $(SRC) -name '*.cpp')
|
CPP = $(shell find $(SRC) -name '*.cpp')
|
||||||
|
|
||||||
CFLAGS = -std=c++11 -lstdc++ -Wall -I../src/ -L../ -O3
|
CFLAGS = -std=c++11 -lstdc++ -Wall -Werror -I../src/ -L../ -O3
|
||||||
|
|
||||||
all: parser_benchmark
|
all: parser_benchmark
|
||||||
|
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
|
|
||||||
CFLAGS = -std=c++11 -lstdc++ -Wall -I../src/ -L../
|
CFLAGS = -std=c++11 -lstdc++ -Wall -Werror -I../src/ -L../
|
||||||
|
|
||||||
all:
|
all:
|
||||||
$(CXX) $(CFLAGS) example.cpp -o example -lsqlparser
|
$(CXX) $(CFLAGS) example.cpp -o example -lsqlparser
|
||||||
|
|
Loading…
Reference in New Issue