Makefile: enable -Werror option

Enable warning treat as error cflags to avoid further compile warning.

Change-Id: Ibfd959b4afa4724c4d6920985f21e55b959a0ed0
Signed-off-by: Kever Yang <kever.yang@rock-chips.com>
This commit is contained in:
Kever Yang 2018-02-11 15:57:07 +08:00
parent 440e24d771
commit 76ba1d8a71
1 changed files with 1 additions and 1 deletions

View File

@ -360,7 +360,7 @@ KBUILD_CPPFLAGS := -D__KERNEL__ -D__UBOOT__
KBUILD_CFLAGS := -Wall -Wstrict-prototypes \
-Wno-format-security \
-fno-builtin -ffreestanding
KBUILD_CFLAGS += -fshort-wchar
KBUILD_CFLAGS += -fshort-wchar -Werror
KBUILD_AFLAGS := -D__ASSEMBLY__
# Read UBOOTRELEASE from include/config/uboot.release (if it exists)