From 5b89bdba3db97af89a49bb0a2420941529d6910b Mon Sep 17 00:00:00 2001 From: Dimitry Andric Date: Wed, 11 Jan 2017 19:59:27 +0000 Subject: Make EFI_RESERVED_SERVICE a proper prototype With clang 4.0.0, the EFI API header causes the following warning: In file included from sys/boot/efi/loader/bootinfo.c:43: In file included from sys/boot/efi/loader/../include/efi.h:52: sys/boot/efi/include/efiapi.h:534:32: error: this function declaration is not a prototype [-Werror,-Wstrict-prototypes] (EFIAPI *EFI_RESERVED_SERVICE) ( ^ Add VOID to make it into a real prototype. Reviewed by: imp, emaste, tsoome MFC after: 3 days Differential Revision: https://reviews.freebsd.org/D9132 --- sys/boot/efi/include/efiapi.h | 1 + 1 file changed, 1 insertion(+) diff --git a/sys/boot/efi/include/efiapi.h b/sys/boot/efi/include/efiapi.h index b1a7b45eeb533..92eb5131f2d76 100644 --- a/sys/boot/efi/include/efiapi.h +++ b/sys/boot/efi/include/efiapi.h @@ -532,6 +532,7 @@ EFI_STATUS typedef EFI_STATUS (EFIAPI *EFI_RESERVED_SERVICE) ( + VOID ); typedef -- cgit v1.2.3