Add more warning options to the build to check code
more thoroughly.

Signed-off-by: Mark Rustad <[email protected]>
---
 Makefile.am |    5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/Makefile.am b/Makefile.am
index 1fcd8b7..9276826 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -4,8 +4,9 @@ sbin_PROGRAMS = fcoeadm fcoemon fcping fipvlan fcnsq fcrls
 ## all targets should look for headers in the include directory
 AM_CPPFLAGS = -I${srcdir}/include -I${builddir}/include
 ## pass the sysconfdir into the C proprocessor
-AM_CPPFLAGS += -DSYSCONFDIR="\"${sysconfdir}\""
-AM_CFLAGS = -Wall
+AM_CPPFLAGS += -DSYSCONFDIR="\"${sysconfdir}\"" -D_FORTIFY_SOURCE=2
+AM_CFLAGS = -Wall -Werror -Wextra -Wformat=2 -Wmissing-prototypes \
+       -Wstrict-prototypes
 
 ## rules for building fcoeadm
 fcoeadm_SOURCES = fcoeadm.c fcoeadm_display.c

_______________________________________________
fcoe-devel mailing list
[email protected]
http://lists.open-fcoe.org/mailman/listinfo/fcoe-devel

Reply via email to