diff options
author | Song, BinX <binx.song@intel.com> | 2017-11-10 12:11:02 +0800 |
---|---|---|
committer | Liming Gao <liming.gao@intel.com> | 2017-11-14 18:18:43 +0800 |
commit | f826516d43367fce413332fd9cae6cea576fbfd0 (patch) | |
tree | cbcd2732ba159e48c8be0c9583c7146f11a27517 /MdeModulePkg | |
parent | 2344d341e102b8a669914064201e48bcfba0b8f6 (diff) | |
download | edk2-f826516d43367fce413332fd9cae6cea576fbfd0.tar.gz edk2-f826516d43367fce413332fd9cae6cea576fbfd0.tar.bz2 edk2-f826516d43367fce413332fd9cae6cea576fbfd0.zip |
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 <liming.gao@intel.com>
Contributed-under: TianoCore Contribution Agreement 1.1
Signed-off-by: Bell Song <binx.song@intel.com>
Reviewed-by: Liming Gao <liming.gao@intel.com>
Diffstat (limited to 'MdeModulePkg')
7 files changed, 8 insertions, 0 deletions
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;
|