Skip to content

Commit 0939a8d

Browse files
authored
Enable -Werror (hyrise#47)
1 parent 09a96a9 commit 0939a8d

3 files changed

Lines changed: 4 additions & 4 deletions

File tree

‎Makefile‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,12 +14,12 @@ ALLTEST = $(shell find test/ -name '*.cpp') $(shell find test/ -name '*.h')
1414
EXAMPLESRC = $(shell find example/ -name '*.cpp') $(shell find example/ -name '*.h')
1515

1616
# Compiler & linker flags.
17-
CFLAGS = -std=c++11 -Wall -fPIC
17+
CFLAGS = -std=c++11 -Wall -Werror -fPIC
1818
LIBFLAGS = -shared
1919
TARGET = libsqlparser.so
2020
INSTALL = /usr/local
2121

22-
CTESTFLAGS = -Wall -Isrc/ -Itest/ -L./ -std=c++11 -lstdc++
22+
CTESTFLAGS = -Wall -Werror -Isrc/ -Itest/ -L./ -std=c++11 -lstdc++
2323

2424
# Set compile mode to -g or -O3.
2525
MODE_LOG = ""

‎benchmark/Makefile‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
SRC = ./
33
CPP = $(shell find $(SRC) -name '*.cpp')
44

5-
CFLAGS = -std=c++11 -lstdc++ -Wall -I../src/ -L../ -O3
5+
CFLAGS = -std=c++11 -lstdc++ -Wall -Werror -I../src/ -L../ -O3
66

77
all: parser_benchmark
88

‎example/Makefile‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11

2-
CFLAGS = -std=c++11 -lstdc++ -Wall -I../src/ -L../
2+
CFLAGS = -std=c++11 -lstdc++ -Wall -Werror -I../src/ -L../
33

44
all:
55
$(CXX) $(CFLAGS) example.cpp -o example -lsqlparser

0 commit comments

Comments
 (0)