From 0939a8d6cd99faa75fba3ef876e855413f08bbfd Mon Sep 17 00:00:00 2001 From: Pedro Flemming Date: Wed, 14 Jun 2017 20:17:22 +0200 Subject: [PATCH] Enable -Werror (#47) --- Makefile | 4 ++-- benchmark/Makefile | 2 +- example/Makefile | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) 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