Patchwork [Open-FCoE,2/2] build: Add -Werror as had been intended

login
register
mail settings
Submitter Mark Rustad
Date March 11, 2013, 5:52 p.m.
Message ID <20130311175210.10622.26526.stgit@host1-mdrustad.localdomain>
Download mbox | patch
Permalink /patch/11/
State Accepted
Headers show

Comments

Mark Rustad - March 11, 2013, 5:52 p.m.
Add -Werror so that warnings cannot be ignored.

Signed-off-by: Mark Rustad <mark.d.rustad@intel.com>
Tested-by: Ross Brattain <ross.b.brattain@intel.com>
---

 Makefile.am  |    2 +-
 configure.ac |    2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

Patch

diff --git a/Makefile.am b/Makefile.am
index 6c78b7c..a8f2c7c 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -5,7 +5,7 @@  sbin_PROGRAMS = fcoeadm fcoemon fcping fipvlan fcnsq fcrls
 AM_CPPFLAGS = -I${srcdir}/include -I${builddir}/include
 ## pass the sysconfdir into the C proprocessor
 AM_CPPFLAGS += -DSYSCONFDIR="\"${sysconfdir}\""
-AM_CFLAGS = -Wall -Wformat=2
+AM_CFLAGS = -Wall -Wformat=2 -Werror
 
 ## rules for building fcoeadm
 fcoeadm_SOURCES = fcoeadm.c fcoeadm_display.c
diff --git a/configure.ac b/configure.ac
index 6d884e5..6b4e4a8 100644
--- a/configure.ac
+++ b/configure.ac
@@ -1,5 +1,5 @@ 
 AC_INIT([fcoe-utils], [1.0.27], [fcoe-devel@open-fcoe.org])
-AM_INIT_AUTOMAKE([-Wall -Werror foreign])
+AM_INIT_AUTOMAKE([foreign])
 
 AC_PROG_CC
 AM_PROG_CC_C_O