Enable -Werror (#47)

This commit is contained in:
Pedro Flemming 2017-06-14 20:17:22 +02:00 committed by GitHub
parent 09a96a9c88
commit 0939a8d6cd
3 changed files with 4 additions and 4 deletions

View File

@ -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')
# Compiler & linker flags.
CFLAGS = -std=c++11 -Wall -fPIC
CFLAGS = -std=c++11 -Wall -Werror -fPIC
LIBFLAGS = -shared
TARGET = libsqlparser.so
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.
MODE_LOG = ""

View File

@ -2,7 +2,7 @@
SRC = ./
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

View File

@ -1,5 +1,5 @@
CFLAGS = -std=c++11 -lstdc++ -Wall -I../src/ -L../
CFLAGS = -std=c++11 -lstdc++ -Wall -Werror -I../src/ -L../
all:
$(CXX) $(CFLAGS) example.cpp -o example -lsqlparser