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 EB46E21C913BC for ; Mon, 6 Nov 2017 21:31:05 -0800 (PST) Received: from fmsmga002.fm.intel.com ([10.253.24.26]) by fmsmga104.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 06 Nov 2017 21:35:04 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.44,356,1505804400"; d="dat'59?scan'59,208,59";a="1240660306" Received: from fmsmsx108.amr.corp.intel.com ([10.18.124.206]) by fmsmga002.fm.intel.com with ESMTP; 06 Nov 2017 21:35:03 -0800 Received: from fmsmsx153.amr.corp.intel.com (10.18.125.6) by FMSMSX108.amr.corp.intel.com (10.18.124.206) with Microsoft SMTP Server (TLS) id 14.3.319.2; Mon, 6 Nov 2017 21:35:02 -0800 Received: from shsmsx151.ccr.corp.intel.com (10.239.6.50) by FMSMSX153.amr.corp.intel.com (10.18.125.6) with Microsoft SMTP Server (TLS) id 14.3.319.2; Mon, 6 Nov 2017 21:35:01 -0800 Received: from shsmsx102.ccr.corp.intel.com ([169.254.2.175]) by SHSMSX151.ccr.corp.intel.com ([169.254.3.218]) with mapi id 14.03.0319.002; Tue, 7 Nov 2017 13:35:00 +0800 From: "Song, BinX" To: "edk2-devel@lists.01.org" CC: "Gao, Liming" Thread-Topic: [PATCH 07/14] MdePkg: Enable MSFT C4255 warning Thread-Index: AdNXiiYeMRyT+/NrQd6VtlS0IHvRmQ== Date: Tue, 7 Nov 2017 05:34:59 +0000 Message-ID: <559D2DF22BC9A3468B4FA1AA547F0EF1025BBD67@shsmsx102.ccr.corp.intel.com> Accept-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: <559D2DF22BC9A3468B4FA1AA547F0EF1025BBD67@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 07/14] MdePkg: 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:06 -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 --- MdePkg/Library/BaseLib/Ia32/CpuBreakpoint.c | 2= +- MdePkg/Library/BaseLib/X64/CpuBreakpoint.c | 2= +- MdePkg/Library/DxeExtractGuidedSectionLib/DxeExtractGuidedSectionLib.c | 1= + MdePkg/MdePkg.dsc | 1= + 4 files changed, 4 insertions(+), 2 deletions(-) diff --git a/MdePkg/Library/BaseLib/Ia32/CpuBreakpoint.c b/MdePkg/Library/B= aseLib/Ia32/CpuBreakpoint.c index f5df7f2..4f8c92d 100644 --- a/MdePkg/Library/BaseLib/Ia32/CpuBreakpoint.c +++ b/MdePkg/Library/BaseLib/Ia32/CpuBreakpoint.c @@ -19,7 +19,7 @@ Microsoft Visual Studio 7.1 Function Prototypes for I/O Intrinsics. **/ =20 -void __debugbreak (); +void __debugbreak (VOID); =20 #pragma intrinsic(__debugbreak) =20 diff --git a/MdePkg/Library/BaseLib/X64/CpuBreakpoint.c b/MdePkg/Library/Ba= seLib/X64/CpuBreakpoint.c index d654f84..7d0cf4c 100644 --- a/MdePkg/Library/BaseLib/X64/CpuBreakpoint.c +++ b/MdePkg/Library/BaseLib/X64/CpuBreakpoint.c @@ -17,7 +17,7 @@ Microsoft Visual Studio 7.1 Function Prototypes for I/O Intrinsics. **/ =20 -void __debugbreak (); +void __debugbreak (VOID); =20 #pragma intrinsic(__debugbreak) =20 diff --git a/MdePkg/Library/DxeExtractGuidedSectionLib/DxeExtractGuidedSect= ionLib.c b/MdePkg/Library/DxeExtractGuidedSectionLib/DxeExtractGuidedSectio= nLib.c index 8b8e528..744201b 100644 --- a/MdePkg/Library/DxeExtractGuidedSectionLib/DxeExtractGuidedSectionLib.= c +++ b/MdePkg/Library/DxeExtractGuidedSectionLib/DxeExtractGuidedSectionLib.= c @@ -38,6 +38,7 @@ EXTRACT_GUIDED_SECTION_GET_INFO_HANDLER *mExtractGetInfoH= andlerTable =3D NULL; RETURN_STATUS EFIAPI ReallocateExtractHandlerTable ( + VOID ) {=20 // diff --git a/MdePkg/MdePkg.dsc b/MdePkg/MdePkg.dsc index 8f57263..9032836 100644 --- a/MdePkg/MdePkg.dsc +++ b/MdePkg/MdePkg.dsc @@ -189,3 +189,4 @@ =20 [BuildOptions] *_*_*_CC_FLAGS =3D -D DISABLE_NEW_DEPRECATED_INTERFACES + MSFT:*_*_*_CC_FLAGS =3D /we4255 --=20 2.10.2.windows.1