Include -Wunreachable-code when building.
[sysvinit.git] / src / Makefile
index 52caa7519ac5aeff0a53871a66ab7083d1e47ae0..b553ff078c222b7c5e2248eef8c37bfdad4f1be6 100644 (file)
@@ -9,8 +9,8 @@
 #
 
 CPPFLAGS =
-CFLAGS ?= -ansi -O2 -fomit-frame-pointer
-override CFLAGS += -W -Wall -D_XOPEN_SOURCE -D_GNU_SOURCE
+CFLAGS ?= -ansi -O2 -fomit-frame-pointer -fstack-protector 
+override CFLAGS += -W -Wall -Wunreachable-code -Wformat -Werror=format-security -D_FORTIFY_SOURCE=2 -D_XOPEN_SOURCE -D_GNU_SOURCE
 STATIC =
 MANDB  := s@^\('\\\\\"\)[^\*-]*-\*- coding: [^[:blank:]]\+ -\*-@\1@