diff --git a/Makefile b/Makefile index 0a2c23ce14..d066916ec6 100644 --- a/Makefile +++ b/Makefile @@ -154,7 +154,7 @@ CFLAGS ?= ${COMMON_FLAGS} \ else # FIRMWARE_ARCH not defined; assuming local compile. CC ?= gcc -CFLAGS += -DCHROMEOS_ENVIRONMENT -Wall -Werror ${DEBUG_FLAGS} +CFLAGS += -DCHROMEOS_ENVIRONMENT -Wall ${WERROR} ${DEBUG_FLAGS} endif ifneq (${DEBUG},)