> ShellPkg/Library/UefiShellDebug1CommandsLib/Compress.h:32:1: warning: type of 
> ‘Compress’ does not match original declaration
> [-Wlto-type-mismatch]
>  Compress (
>  ^
> ShellPkg/Library/UefiShellDebug1CommandsLib/Compress.c:1319:1: note: 
> ‘Compress’ was previously declared here
>  Compress (
>  ^

Gcc complains the mismatch of the declaration of Compress(). Since EFIAPI
was removed from Compress() on purpose(*), remove EFIAPI from Compress()
in the header to match the declaration.

* c4e74e9b814cfb4b51cf832f3bb218cd2aba348b
  ShellPkg/UefiShellDebug1CommandsLib: Remove unnecessary EFIAPI

Cc: Jaben Carsey <jaben.car...@intel.com>
Cc: Ruiyu Ni <ruiyu...@intel.com>
Contributed-under: TianoCore Contribution Agreement 1.1
Signed-off-by: Gary Lin <g...@suse.com>
---
 ShellPkg/Library/UefiShellDebug1CommandsLib/Compress.h | 1 -
 1 file changed, 1 deletion(-)

diff --git a/ShellPkg/Library/UefiShellDebug1CommandsLib/Compress.h 
b/ShellPkg/Library/UefiShellDebug1CommandsLib/Compress.h
index 39a997178f..7fe844e212 100644
--- a/ShellPkg/Library/UefiShellDebug1CommandsLib/Compress.h
+++ b/ShellPkg/Library/UefiShellDebug1CommandsLib/Compress.h
@@ -28,7 +28,6 @@
   @retval EFI_BUFFER_TOO_SMALL  The buffer was too small.  DstSize is required.
 **/
 EFI_STATUS
-EFIAPI
 Compress (
   IN      VOID    *SrcBuffer,
   IN      UINT64  SrcSize,
-- 
2.14.2

_______________________________________________
edk2-devel mailing list
edk2-devel@lists.01.org
https://lists.01.org/mailman/listinfo/edk2-devel

Reply via email to