From 962991cc9997f8d4e8aed2aa774e830c0d800af3 Mon Sep 17 00:00:00 2001 From: Marco Peereboom Date: Wed, 27 Apr 2016 10:56:30 -0500 Subject: [PATCH] -Werror, because we care --- Makefile | 3 ++- osx/Makefile | 4 ++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/Makefile b/Makefile index 2a399c9..ea7f31c 100644 --- a/Makefile +++ b/Makefile @@ -9,7 +9,8 @@ PROG=spectrwm #MAN=spectrwm_pt.1 spectrwm_ru.1 spectrwm_es.1 spectrwm_it.1 MAN=spectrwm.1 -CFLAGS+=-std=c99 -Wmissing-prototypes -Wall -Wextra -Wshadow -Wno-uninitialized -g +CFLAGS+=-std=c99 -Wmissing-prototypes -Werror -Wall -Wextra -Wshadow +CFLAGS+=-Wno-uninitialized -g # Uncomment define below to disallow user settable clock format string #CFLAGS+=-DSWM_DENY_CLOCK_FORMAT CPPFLAGS+= -I${X11BASE}/include -I${X11BASE}/include/freetype2 diff --git a/osx/Makefile b/osx/Makefile index f52fd9c..d3aa263 100644 --- a/osx/Makefile +++ b/osx/Makefile @@ -22,8 +22,8 @@ LDADD+= -lxcb-keysyms -lxcb-util -lxcb-randr -lX11-xcb -lxcb-xtest -lxcb -lxcb- LVERS= $(shell . ../lib/shlib_version; echo $$major.$$minor) -CFLAGS+= -std=c99 -Wmissing-prototypes -Wall -Wextra -Wshadow -Wno-uninitialized -g -CFLAGS+= -O2 -D_GNU_SOURCE -D__OSX__ -I. -I.. ${INCFLAGS} +CFLAGS+= -std=c99 -Wmissing-prototypes -Werror -Wall -Wextra -Wshadow +CFLAGS+= -Wno-uninitialized -g -O2 -D_GNU_SOURCE -D__OSX__ -I. -I.. ${INCFLAGS} CFLAGS+= -DSWM_LIB=\"$(LIBDIR)/libswmhack.so.$(LVERS)\" ifneq ("${BUILDVERSION}", "") CFLAGS+= -DSPECTRWM_BUILDSTR=\"$(BUILDVERSION)\" -- 2.39.2