From: Song, BinX Date: Fri, 10 Nov 2017 04:11:02 +0000 (+0800) Subject: MdeModulePkg: Fix MSFT C4255 warning X-Git-Tag: edk2-stable201903~3105 X-Git-Url: https://git.proxmox.com/?p=mirror_edk2.git;a=commitdiff_plain;h=f826516d43367fce413332fd9cae6cea576fbfd0 MdeModulePkg: Fix MSFT C4255 warning V2: Fix MSFT C4255 warning V1: 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 Reviewed-by: Liming Gao --- diff --git a/MdeModulePkg/Include/Library/PlatformVarCleanupLib.h b/MdeModulePkg/Include/Library/PlatformVarCleanupLib.h index a4691f0e65..1d642f62ba 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 ); /** diff --git a/MdeModulePkg/Library/BrotliCustomDecompressLib/GuidedSectionExtraction.c b/MdeModulePkg/Library/BrotliCustomDecompressLib/GuidedSectionExtraction.c index 427adb876a..c623e1e4f7 100644 --- a/MdeModulePkg/Library/BrotliCustomDecompressLib/GuidedSectionExtraction.c +++ b/MdeModulePkg/Library/BrotliCustomDecompressLib/GuidedSectionExtraction.c @@ -186,6 +186,7 @@ BrotliGuidedSectionExtraction ( EFI_STATUS EFIAPI BrotliDecompressLibConstructor ( + VOID ) { return ExtractGuidedSectionRegisterHandlers ( diff --git a/MdeModulePkg/Library/DxeSecurityManagementLib/DxeSecurityManagementLib.c b/MdeModulePkg/Library/DxeSecurityManagementLib/DxeSecurityManagementLib.c index b96d78664d..aa4d93b6f3 100644 --- a/MdeModulePkg/Library/DxeSecurityManagementLib/DxeSecurityManagementLib.c +++ b/MdeModulePkg/Library/DxeSecurityManagementLib/DxeSecurityManagementLib.c @@ -61,6 +61,7 @@ SECURITY2_INFO *mSecurity2Table = NULL; RETURN_STATUS EFIAPI ReallocateSecurityHandlerTable ( + VOID ) { // @@ -301,6 +302,7 @@ ExecuteSecurityHandlers ( RETURN_STATUS EFIAPI ReallocateSecurity2HandlerTable ( + VOID ) { // diff --git a/MdeModulePkg/Library/LzmaCustomDecompressLib/F86GuidedSectionExtraction.c b/MdeModulePkg/Library/LzmaCustomDecompressLib/F86GuidedSectionExtraction.c index ada9a809fa..b02dc515f8 100644 --- a/MdeModulePkg/Library/LzmaCustomDecompressLib/F86GuidedSectionExtraction.c +++ b/MdeModulePkg/Library/LzmaCustomDecompressLib/F86GuidedSectionExtraction.c @@ -207,6 +207,7 @@ LzmaArchGuidedSectionExtraction ( EFI_STATUS EFIAPI LzmaArchDecompressLibConstructor ( + VOID ) { return ExtractGuidedSectionRegisterHandlers ( diff --git a/MdeModulePkg/Library/LzmaCustomDecompressLib/GuidedSectionExtraction.c b/MdeModulePkg/Library/LzmaCustomDecompressLib/GuidedSectionExtraction.c index f19e0d28cd..7ef9fbbfc6 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 c5fd30e219..450b4b3443 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/Universal/SetupBrowserDxe/Expression.c b/MdeModulePkg/Universal/SetupBrowserDxe/Expression.c index 901b35c720..297741c0fe 100644 --- a/MdeModulePkg/Universal/SetupBrowserDxe/Expression.c +++ b/MdeModulePkg/Universal/SetupBrowserDxe/Expression.c @@ -751,6 +751,7 @@ PopExpression ( **/ UINTN SaveExpressionEvaluationStackOffset ( + VOID ) { UINTN TempStackOffset;