summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorYossi Gottlieb <yossigo@gmail.com>2023-06-01 19:03:24 +0300
committerGitHub <noreply@github.com>2023-06-01 19:03:24 +0300
commit5cbd1f2960662c18b1d2b2dac7352f2b5b1ba776 (patch)
tree63307cd7675c80b74206b58bee4f6b410bbe346b /Makefile
parentaf144563835849350015113e936e44bf2d44906a (diff)
Add -Werror as a default. (#1193)
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile2
1 files changed, 1 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index f31293e..45493a8 100644
--- a/Makefile
+++ b/Makefile
@@ -39,7 +39,7 @@ export REDIS_TEST_CONFIG
CC:=$(shell sh -c 'type $${CC%% *} >/dev/null 2>/dev/null && echo $(CC) || echo gcc')
CXX:=$(shell sh -c 'type $${CXX%% *} >/dev/null 2>/dev/null && echo $(CXX) || echo g++')
OPTIMIZATION?=-O3
-WARNINGS=-Wall -W -Wstrict-prototypes -Wwrite-strings -Wno-missing-field-initializers
+WARNINGS=-Wall -Wextra -Werror -Wstrict-prototypes -Wwrite-strings -Wno-missing-field-initializers
DEBUG_FLAGS?= -g -ggdb
REAL_CFLAGS=$(OPTIMIZATION) -fPIC $(CPPFLAGS) $(CFLAGS) $(WARNINGS) $(DEBUG_FLAGS) $(PLATFORM_FLAGS)
REAL_LDFLAGS=$(LDFLAGS)