summaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorMatthew Barth <msbarth@us.ibm.com>2016-08-29 14:19:38 -0500
committerPatrick Williams <patrick@stwcx.xyz>2016-08-30 16:44:43 +0000
commit619db930483505aa4352b8ae30d6c6b5a9b569cf (patch)
treeddc183878e1613d783839e87ec4a244d26429820 /Makefile
parent3365ec8a073443e09d12c0c701b33c0c844f6362 (diff)
downloadipmi-fru-parser-619db930483505aa4352b8ae30d6c6b5a9b569cf.tar.gz
ipmi-fru-parser-619db930483505aa4352b8ae30d6c6b5a9b569cf.zip
Ensure all tools are building with -Wall and -Werror
Added -Werror to CFLAGS & CXXFLAGS. Also corrected resulting compiler errors, including commenting out possible future-use variables. Change-Id: If70c7fdbf1d02f29e3d2cab5fa12b51bf5302cd5 Signed-off-by: Matthew Barth <msbarth@us.ibm.com>
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile4
1 files changed, 2 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index 23db1f5..df6e8bf 100644
--- a/Makefile
+++ b/Makefile
@@ -23,8 +23,8 @@ phosphor-read-eeprom_NEEDED += libsystemd
OPTFLAGS ?= -O3 -g -pipe -G -K
CFLAGS ?= $(OPTFLAGS)
CXXFLAGS ?= $(OPTFLAGS)
-CFLAGS += -Wall -flto -fPIC
-CXXFLAGS += --std=gnu++14 -Wall -flto -fPIC
+CFLAGS += -Wall -Werror -flto -fPIC
+CXXFLAGS += --std=gnu++14 -Wall -Werror -flto -fPIC
__PKG_CONFIG = $(if $1,$(shell pkg-config $2 $1))
__EXTRA_LIB_RESOLV = $(if $1,$1)
OpenPOWER on IntegriCloud