From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received-SPF: Pass (sender SPF authorized) identity=mailfrom; client-ip=195.135.221.5; helo=smtp.nue.novell.com; envelope-from=glin@suse.com; receiver=edk2-devel@lists.01.org Received: from smtp.nue.novell.com (smtp.nue.novell.com [195.135.221.5]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ml01.01.org (Postfix) with ESMTPS id C47532034CF8C for ; Wed, 25 Oct 2017 23:50:01 -0700 (PDT) Received: from localhost.localdomain (unknown.telstraglobal.net [134.159.103.118]) by smtp.nue.novell.com with ESMTP (NOT encrypted); Thu, 26 Oct 2017 08:53:43 +0200 From: Gary Lin To: edk2-devel@lists.01.org Cc: Jaben Carsey , Ruiyu Ni Date: Thu, 26 Oct 2017 14:53:29 +0800 Message-Id: <20171026065329.32311-1-glin@suse.com> X-Mailer: git-send-email 2.14.2 MIME-Version: 1.0 Subject: [PATCH] ShellPkg/UefiShellDebug1CommandsLib: Remove EFIAPI from Compress() X-BeenThere: edk2-devel@lists.01.org X-Mailman-Version: 2.1.22 Precedence: list List-Id: EDK II Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 26 Oct 2017 06:50:02 -0000 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit > 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 Cc: Ruiyu Ni Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by: Gary Lin --- 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