diff options
author | Matthew Barth <msbarth@us.ibm.com> | 2016-08-29 14:19:38 -0500 |
---|---|---|
committer | Patrick Williams <patrick@stwcx.xyz> | 2016-08-30 16:44:43 +0000 |
commit | 619db930483505aa4352b8ae30d6c6b5a9b569cf (patch) | |
tree | ddc183878e1613d783839e87ec4a244d26429820 /Makefile | |
parent | 3365ec8a073443e09d12c0c701b33c0c844f6362 (diff) | |
download | ipmi-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-- | Makefile | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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) |