Date: Thu, 26 May 2016 23:07:20 +0000 (UTC) From: John Baldwin <jhb@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r300790 - head/sys/boot/efi/libefi Message-ID: <201605262307.u4QN7LK8065637@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: jhb Date: Thu May 26 23:07:20 2016 New Revision: 300790 URL: https://svnweb.freebsd.org/changeset/base/300790 Log: Apply the printf %S band-aid for efinet.c to fix the arm64 build. Modified: head/sys/boot/efi/libefi/Makefile Modified: head/sys/boot/efi/libefi/Makefile ============================================================================== --- head/sys/boot/efi/libefi/Makefile Thu May 26 23:06:36 2016 (r300789) +++ head/sys/boot/efi/libefi/Makefile Thu May 26 23:07:20 2016 (r300790) @@ -7,6 +7,13 @@ WARNS?= 2 SRCS= delay.c devpath.c efi_console.c efinet.c efipart.c env.c errno.c \ handles.c libefi.c time.c +# We implement a slightly non-standard %S in that it always takes a +# CHAR16 that's common in UEFI-land instead of a wchar_t. This only +# seems to matter on arm64 where wchar_t defaults to an int instead +# of a short. There's no good cast to use here so just ignore the +# warnings for now. +CWARNFLAGS.efinet.c+= -Wno-format + .if ${MACHINE_CPUARCH} == "aarch64" CFLAGS+= -msoft-float -mgeneral-regs-only .endif
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201605262307.u4QN7LK8065637>