diff --git a/Makefile b/Makefile index 7132a4b..3c9ae0e 100644 --- a/Makefile +++ b/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') # 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 = "" diff --git a/benchmark/Makefile b/benchmark/Makefile index c5564a3..1b6caae 100644 --- a/benchmark/Makefile +++ b/benchmark/Makefile @@ -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 diff --git a/example/Makefile b/example/Makefile index 18a3f54..8e241c1 100644 --- a/example/Makefile +++ b/example/Makefile @@ -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