Patchwork [Open-FCoE,4/4] fcoe-utils: Add more warning options

login
register
mail settings
Submitter Mark Rustad
Date May 17, 2013, 8:56 p.m.
Message ID <20130517205627.15739.57575.stgit@host1-mdrustad.localdomain>
Download mbox | patch
Permalink /patch/55/
State Accepted
Headers show

Comments

Mark Rustad - May 17, 2013, 8:56 p.m.
Add more warning options to the build to check code
more thoroughly.

Signed-off-by: Mark Rustad <mark.d.rustad@intel.com>
---
 Makefile.am |    5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

Patch

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