]> code.delx.au - spectrwm/commitdiff
add -Wmissing-prototypes
authorDavid Hill <dhill@conformal.com>
Tue, 28 Aug 2012 23:46:51 +0000 (19:46 -0400)
committerDavid Hill <dhill@conformal.com>
Tue, 28 Aug 2012 23:46:51 +0000 (19:46 -0400)
Makefile
linux/Makefile

index da102e1c8de9246f1bd4fb91ed0b09c4c6e4d256..c18bff23d5e8529d0e9a8f40fcb4f3763b1bfa8d 100644 (file)
--- 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
index 79c152fdd182f0e5a160d4f065f4fb0bce208bd4..709fd82faf04ad9be0ac63644131c8e1dfa912ca 100644 (file)
@@ -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