Apply the printf %S band-aid for efinet.c to fix the arm64 build.

This commit is contained in:
John Baldwin 2016-05-26 23:07:20 +00:00
parent b4f9242404
commit 72bc6425a9
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=300790

View File

@ -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