svn commit: r293903 - in head/sys/boot: arm/uboot efi/fdt efi/libefi

Steven Hartland smh at FreeBSD.org
Thu Jan 14 09:22:03 UTC 2016


Author: smh
Date: Thu Jan 14 09:22:01 2016
New Revision: 293903
URL: https://svnweb.freebsd.org/changeset/base/293903

Log:
  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

Modified:
  head/sys/boot/arm/uboot/Makefile
  head/sys/boot/efi/fdt/Makefile
  head/sys/boot/efi/libefi/Makefile

Modified: head/sys/boot/arm/uboot/Makefile
==============================================================================
--- head/sys/boot/arm/uboot/Makefile	Thu Jan 14 09:20:25 2016	(r293902)
+++ head/sys/boot/arm/uboot/Makefile	Thu Jan 14 09:22:01 2016	(r293903)
@@ -8,6 +8,8 @@ NEWVERSWHAT=	"U-Boot loader" ${MACHINE_A
 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

Modified: head/sys/boot/efi/fdt/Makefile
==============================================================================
--- head/sys/boot/efi/fdt/Makefile	Thu Jan 14 09:20:25 2016	(r293902)
+++ head/sys/boot/efi/fdt/Makefile	Thu Jan 14 09:22:01 2016	(r293903)
@@ -7,6 +7,8 @@
 LIB=		efi_fdt
 INTERNALLIB=
 WARNS?=		6
+CWARNFLAGS.gcc+=	-Wno-strict-prototypes
+CWARNFLAGS.gcc+=	-Wno-redundant-decls
 
 SRCS=		efi_fdt.c
 

Modified: head/sys/boot/efi/libefi/Makefile
==============================================================================
--- head/sys/boot/efi/libefi/Makefile	Thu Jan 14 09:20:25 2016	(r293902)
+++ head/sys/boot/efi/libefi/Makefile	Thu Jan 14 09:22:01 2016	(r293903)
@@ -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


More information about the svn-src-head mailing list