boot/efi: Fix warning for non-standard formats when debugging

Add -Wno-format for zfs_module and regroup. This fixes warnings when
EFI_DEBUG is defined.

PR: 279071
Reviewed-by: imp
This commit is contained in:
John F. Carr 2024-06-14 11:06:03 -06:00 committed by Warner Losh
parent 97ab935d56
commit cadc9c7db7
1 changed files with 4 additions and 3 deletions

View File

@ -12,11 +12,12 @@ CFLAGS+= -DEFI_BOOT1
# 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.proto.c+= -Wno-format
CWARNFLAGS.boot1.c+= -Wno-format
CWARNFLAGS.proto.c += -Wno-format
CWARNFLAGS.boot1.c += -Wno-format
CWARNFLAGS.ufs_module.c += -Wno-format
CWARNFLAGS.zfs_module.c += -Wno-format
# Disable bogus alignment issues
CWARNFLAGS.ufs_module.c += -Wno-format
CWARNFLAGS.ufs_module.c += -Wno-cast-align
# Disable warnings that are currently incompatible with the zfs boot code