diff options
author | smh <smh@FreeBSD.org> | 2016-01-14 09:22:01 +0000 |
---|---|---|
committer | smh <smh@FreeBSD.org> | 2016-01-14 09:22:01 +0000 |
commit | 82ccb2c6c79db6308b1b71bac5cf8f05d0123049 (patch) | |
tree | 591f941fc66d4d7cf44aa3f67852e170923be186 /sys/boot | |
parent | 1d13bea849ef15d688c92f32604261a090c42e6d (diff) | |
download | FreeBSD-src-82ccb2c6c79db6308b1b71bac5cf8f05d0123049.zip FreeBSD-src-82ccb2c6c79db6308b1b71bac5cf8f05d0123049.tar.gz |
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
Diffstat (limited to 'sys/boot')
-rw-r--r-- | sys/boot/arm/uboot/Makefile | 2 | ||||
-rw-r--r-- | sys/boot/efi/fdt/Makefile | 2 | ||||
-rw-r--r-- | sys/boot/efi/libefi/Makefile | 1 |
3 files changed, 5 insertions, 0 deletions
diff --git a/sys/boot/arm/uboot/Makefile b/sys/boot/arm/uboot/Makefile index 7f0fd2e..a5f7096 100644 --- a/sys/boot/arm/uboot/Makefile +++ b/sys/boot/arm/uboot/Makefile @@ -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 diff --git a/sys/boot/efi/fdt/Makefile b/sys/boot/efi/fdt/Makefile index 15862dc..4d82a86 100644 --- a/sys/boot/efi/fdt/Makefile +++ b/sys/boot/efi/fdt/Makefile @@ -7,6 +7,8 @@ LIB= efi_fdt INTERNALLIB= WARNS?= 6 +CWARNFLAGS.gcc+= -Wno-strict-prototypes +CWARNFLAGS.gcc+= -Wno-redundant-decls SRCS= efi_fdt.c diff --git a/sys/boot/efi/libefi/Makefile b/sys/boot/efi/libefi/Makefile index bb2f9ea..6df7817 100644 --- a/sys/boot/efi/libefi/Makefile +++ b/sys/boot/efi/libefi/Makefile @@ -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 |