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') 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 = ""

View File

@ -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

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: all:
$(CXX) $(CFLAGS) example.cpp -o example -lsqlparser $(CXX) $(CFLAGS) example.cpp -o example -lsqlparser