Fix GCC warnings causing build failure after r293724

Disable some compiler warnings for GCC (non-standard compiler) fixing
build failures introduced by r293724, which enabled WARNS in the EFI boot
code, when compiling with none standard compiler (GCC).

Raised by:	ian
MFC after:	2 weeks
X-MFC-With:	r293268
Sponsored by:	Multiplay
This commit is contained in:
Steven Hartland 2016-01-14 09:22:01 +00:00
parent 0ed660ee94
commit bb39a9ed8e
3 changed files with 5 additions and 0 deletions

View File

@ -8,6 +8,8 @@ NEWVERSWHAT= "U-Boot loader" ${MACHINE_ARCH}
BINDIR?= /boot
INSTALLFLAGS= -b
WARNS?= 1
CWARNFLAGS.gcc+= -Wno-int-to-pointer-cast
# Address at which ubldr will be loaded.
# This varies for different boards and SOCs.
UBLDR_LOADADDR?= 0x1000000

View File

@ -7,6 +7,8 @@
LIB= efi_fdt
INTERNALLIB=
WARNS?= 6
CWARNFLAGS.gcc+= -Wno-strict-prototypes
CWARNFLAGS.gcc+= -Wno-redundant-decls
SRCS= efi_fdt.c

View File

@ -3,6 +3,7 @@
LIB= efi
INTERNALLIB=
WARNS?= 2
CWARNFLAGS.gcc+= -Wno-attributes
SRCS= delay.c efi_console.c efinet.c efipart.c errno.c handles.c \
libefi.c time.c