Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 11 Jan 2017 19:59:27 +0000 (UTC)
From:      Dimitry Andric <dim@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r311932 - head/sys/boot/efi/include
Message-ID:  <201701111959.v0BJxRTO043498@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: dim
Date: Wed Jan 11 19:59:27 2017
New Revision: 311932
URL: https://svnweb.freebsd.org/changeset/base/311932

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

Modified:
  head/sys/boot/efi/include/efiapi.h

Modified: head/sys/boot/efi/include/efiapi.h
==============================================================================
--- head/sys/boot/efi/include/efiapi.h	Wed Jan 11 19:29:33 2017	(r311931)
+++ head/sys/boot/efi/include/efiapi.h	Wed Jan 11 19:59:27 2017	(r311932)
@@ -532,6 +532,7 @@ EFI_STATUS
 typedef
 EFI_STATUS
 (EFIAPI *EFI_RESERVED_SERVICE) (
+    VOID
     );
 
 typedef



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201701111959.v0BJxRTO043498>