From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received-SPF: Pass (sender SPF authorized) identity=mailfrom; client-ip=192.55.52.120; helo=mga04.intel.com; envelope-from=binx.song@intel.com; receiver=edk2-devel@lists.01.org Received: from mga04.intel.com (mga04.intel.com [192.55.52.120]) (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 148832034D800 for ; Mon, 6 Nov 2017 21:31:05 -0800 (PST) Received: from fmsmga003.fm.intel.com ([10.253.24.29]) by fmsmga104.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 06 Nov 2017 21:34:58 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.44,356,1505804400"; d="dat'59?scan'59,208,59";a="918367048" Received: from fmsmsx104.amr.corp.intel.com ([10.18.124.202]) by FMSMGA003.fm.intel.com with ESMTP; 06 Nov 2017 21:34:58 -0800 Received: from fmsmsx125.amr.corp.intel.com (10.18.125.40) by fmsmsx104.amr.corp.intel.com (10.18.124.202) with Microsoft SMTP Server (TLS) id 14.3.319.2; Mon, 6 Nov 2017 21:34:58 -0800 Received: from shsmsx104.ccr.corp.intel.com (10.239.4.70) by FMSMSX125.amr.corp.intel.com (10.18.125.40) with Microsoft SMTP Server (TLS) id 14.3.319.2; Mon, 6 Nov 2017 21:34:58 -0800 Received: from shsmsx102.ccr.corp.intel.com ([169.254.2.175]) by SHSMSX104.ccr.corp.intel.com ([169.254.5.152]) with mapi id 14.03.0319.002; Tue, 7 Nov 2017 13:34:56 +0800 From: "Song, BinX" To: "edk2-devel@lists.01.org" CC: "Gao, Liming" Thread-Topic: [PATCH 06/14] MdeModulePkg: Enable MSFT C4255 warning Thread-Index: AdNXiiQwG+He3GldQkusXKJ7+rresQ== Date: Tue, 7 Nov 2017 05:34:56 +0000 Message-ID: <559D2DF22BC9A3468B4FA1AA547F0EF1025BBD59@shsmsx102.ccr.corp.intel.com> Accept-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: <559D2DF22BC9A3468B4FA1AA547F0EF1025BBD59@shsmsx102.ccr.corp.intel.com> dlp-product: dlpe-windows dlp-version: 11.0.0.116 dlp-reaction: no-action x-originating-ip: [10.239.127.40] MIME-Version: 1.0 X-Content-Filtered-By: Mailman/MimeDel 2.1.22 Subject: [PATCH 06/14] MdeModulePkg: Enable MSFT C4255 warning 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: Tue, 07 Nov 2017 05:31:05 -0000 Content-Language: en-US Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Enable MSFT C4255 warning >>From MSDN: Compiler Warning (level 4) C4255 function' : no function prototype given: converting '()' to '(void)' The compiler did not find an explicit list of arguments to a function. This warning is for the C compiler only. Cc: Liming Gao Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by: Bell Song --- MdeModulePkg/Include/Library/PlatformVarCleanupLib.h | = 1 + .../Library/BrotliCustomDecompressLib/GuidedSectionExtraction.c | = 1 + .../Library/DxeSecurityManagementLib/DxeSecurityManagementLib.c | = 2 ++ .../Library/LzmaCustomDecompressLib/F86GuidedSectionExtraction.c | = 1 + MdeModulePkg/Library/LzmaCustomDecompressLib/GuidedSectionExtraction.c | = 1 + MdeModulePkg/Library/PlatformVarCleanupLib/PlatVarCleanupLib.c | = 1 + MdeModulePkg/MdeModulePkg.dsc | = 2 +- MdeModulePkg/Universal/SetupBrowserDxe/Expression.c | = 1 + 8 files changed, 9 insertions(+), 1 deletion(-) diff --git a/MdeModulePkg/Include/Library/PlatformVarCleanupLib.h b/MdeModu= lePkg/Include/Library/PlatformVarCleanupLib.h index a4691f0..1d642f6 100644 --- a/MdeModulePkg/Include/Library/PlatformVarCleanupLib.h +++ b/MdeModulePkg/Include/Library/PlatformVarCleanupLib.h @@ -32,6 +32,7 @@ typedef enum { VAR_ERROR_FLAG EFIAPI GetLastBootVarErrorFlag ( + VOID ); =20 /** diff --git a/MdeModulePkg/Library/BrotliCustomDecompressLib/GuidedSectionEx= traction.c b/MdeModulePkg/Library/BrotliCustomDecompressLib/GuidedSectionEx= traction.c index 427adb8..c623e1e 100644 --- a/MdeModulePkg/Library/BrotliCustomDecompressLib/GuidedSectionExtractio= n.c +++ b/MdeModulePkg/Library/BrotliCustomDecompressLib/GuidedSectionExtractio= n.c @@ -186,6 +186,7 @@ BrotliGuidedSectionExtraction ( EFI_STATUS EFIAPI BrotliDecompressLibConstructor ( + VOID ) { return ExtractGuidedSectionRegisterHandlers ( diff --git a/MdeModulePkg/Library/DxeSecurityManagementLib/DxeSecurityManag= ementLib.c b/MdeModulePkg/Library/DxeSecurityManagementLib/DxeSecurityManag= ementLib.c index b96d786..aa4d93b 100644 --- a/MdeModulePkg/Library/DxeSecurityManagementLib/DxeSecurityManagementLi= b.c +++ b/MdeModulePkg/Library/DxeSecurityManagementLib/DxeSecurityManagementLi= b.c @@ -61,6 +61,7 @@ SECURITY2_INFO *mSecurity2Table =3D NULL; RETURN_STATUS EFIAPI ReallocateSecurityHandlerTable ( + VOID ) { // @@ -301,6 +302,7 @@ ExecuteSecurityHandlers ( RETURN_STATUS EFIAPI ReallocateSecurity2HandlerTable ( + VOID ) { // diff --git a/MdeModulePkg/Library/LzmaCustomDecompressLib/F86GuidedSectionE= xtraction.c b/MdeModulePkg/Library/LzmaCustomDecompressLib/F86GuidedSection= Extraction.c index ada9a80..b02dc51 100644 --- a/MdeModulePkg/Library/LzmaCustomDecompressLib/F86GuidedSectionExtracti= on.c +++ b/MdeModulePkg/Library/LzmaCustomDecompressLib/F86GuidedSectionExtracti= on.c @@ -207,6 +207,7 @@ LzmaArchGuidedSectionExtraction ( EFI_STATUS EFIAPI LzmaArchDecompressLibConstructor ( + VOID ) { return ExtractGuidedSectionRegisterHandlers ( diff --git a/MdeModulePkg/Library/LzmaCustomDecompressLib/GuidedSectionExtr= action.c b/MdeModulePkg/Library/LzmaCustomDecompressLib/GuidedSectionExtrac= tion.c index f19e0d2..7ef9fbb 100644 --- a/MdeModulePkg/Library/LzmaCustomDecompressLib/GuidedSectionExtraction.= c +++ b/MdeModulePkg/Library/LzmaCustomDecompressLib/GuidedSectionExtraction.= c @@ -190,6 +190,7 @@ LzmaGuidedSectionExtraction ( EFI_STATUS EFIAPI LzmaDecompressLibConstructor ( + VOID ) { return ExtractGuidedSectionRegisterHandlers ( diff --git a/MdeModulePkg/Library/PlatformVarCleanupLib/PlatVarCleanupLib.c= b/MdeModulePkg/Library/PlatformVarCleanupLib/PlatVarCleanupLib.c index c5fd30e..450b4b3 100644 --- a/MdeModulePkg/Library/PlatformVarCleanupLib/PlatVarCleanupLib.c +++ b/MdeModulePkg/Library/PlatformVarCleanupLib/PlatVarCleanupLib.c @@ -1187,6 +1187,7 @@ Done: VAR_ERROR_FLAG EFIAPI GetLastBootVarErrorFlag ( + VOID ) { return mLastVarErrorFlag; diff --git a/MdeModulePkg/MdeModulePkg.dsc b/MdeModulePkg/MdeModulePkg.dsc index ad34254..e0becab 100644 --- a/MdeModulePkg/MdeModulePkg.dsc +++ b/MdeModulePkg/MdeModulePkg.dsc @@ -490,4 +490,4 @@ =20 [BuildOptions] *_*_*_CC_FLAGS =3D -D DISABLE_NEW_DEPRECATED_INTERFACES - + MSFT:*_*_*_CC_FLAGS =3D /we4255 diff --git a/MdeModulePkg/Universal/SetupBrowserDxe/Expression.c b/MdeModul= ePkg/Universal/SetupBrowserDxe/Expression.c index 901b35c..297741c 100644 --- a/MdeModulePkg/Universal/SetupBrowserDxe/Expression.c +++ b/MdeModulePkg/Universal/SetupBrowserDxe/Expression.c @@ -751,6 +751,7 @@ PopExpression ( **/ UINTN SaveExpressionEvaluationStackOffset ( + VOID ) { UINTN TempStackOffset; --=20 2.10.2.windows.1