mirror of
https://git.codelinaro.org/clo/qsdk/oss/boot/u-boot-2016.git
synced 2026-03-14 21:10:27 +01:00
uboot: Treat warnings as errors
Enable werror in CFLAGS so that every warning is treated as the error. Change-Id: Ifc2614e0053bcf7c2fa895f76ae91753d5f58851 Signed-off-by: sameeruddin shaik <samesh@codeaurora.org>
This commit is contained in:
parent
50ed09554a
commit
633ea462e5
1 changed files with 14 additions and 0 deletions
14
Makefile
14
Makefile
|
|
@ -573,6 +573,20 @@ KBUILD_CFLAGS += $(call cc-option, -fno-stack-protector)
|
|||
endif
|
||||
KBUILD_CFLAGS += $(call cc-option,-fno-delete-null-pointer-checks)
|
||||
|
||||
#FIXME: Added to avoid the warning from sysupgrade-helper
|
||||
#To be modified once the config is fixed
|
||||
ifdef CONFIG_ARCH_IPQ807x
|
||||
KBUILD_CFLAGS += -Werror
|
||||
endif
|
||||
ifdef CONFIG_ARCH_IPQ40xx
|
||||
KBUILD_CFLAGS += -Werror
|
||||
endif
|
||||
ifdef CONFIG_ARCH_IPQ806x
|
||||
KBUILD_CFLAGS += -Werror
|
||||
endif
|
||||
ifdef CONFIG_ARCH_IPQ6018
|
||||
KBUILD_CFLAGS += -Werror
|
||||
endif
|
||||
KBUILD_CFLAGS += -g
|
||||
# $(KBUILD_AFLAGS) sets -g, which causes gcc to pass a suitable -g<format>
|
||||
# option to the assembler.
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue