From: David Hill Date: Tue, 28 Aug 2012 23:46:51 +0000 (-0400) Subject: add -Wmissing-prototypes X-Git-Url: https://jasonwoof.com/gitweb/?a=commitdiff_plain;h=3b3c4e31f3a43a07894d663a63cec4f701b1fb1f;p=spectrwm.git add -Wmissing-prototypes --- diff --git a/Makefile b/Makefile index da102e1..c18bff2 100644 --- a/Makefile +++ b/Makefile @@ -9,7 +9,7 @@ PROG=spectrwm #MAN=spectrwm_pt.1 spectrwm_ru.1 spectrwm_es.1 spectrwm_it.1 MAN=spectrwm.1 -CFLAGS+=-std=gnu89 -Wall -Wextra -Wshadow -Wno-uninitialized -g +CFLAGS+=-std=c99 -Wmissing-prototypes -Wall -Wextra -Wshadow -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/linux/Makefile b/linux/Makefile index 79c152f..709fd82 100644 --- a/linux/Makefile +++ b/linux/Makefile @@ -1,4 +1,4 @@ -CFLAGS+= -Wall -Wextra -Wshadow -g -D_GNU_SOURCE -I. -I/usr/include/freetype2 +CFLAGS+= -std=c99 -Wall -Wextra -Wmissing-prototypes -Wshadow -g -D_GNU_SOURCE -I. -I/usr/include/freetype2 CFLAGS+= -DSWM_LIB=\"$(LIBDIR)/libswmhack.so.$(LVERS)\" LDADD+= -lX11 -lX11-xcb -lxcb -lxcb-icccm -lxcb-randr -lxcb-keysyms -lxcb-util -lxcb-xtest -lXft -lXcursor