MdeModulePkg: Fix MSFT C4255 warning
authorSong, BinX <binx.song@intel.com>
Fri, 10 Nov 2017 04:11:02 +0000 (12:11 +0800)
committerLiming Gao <liming.gao@intel.com>
Tue, 14 Nov 2017 10:18:43 +0000 (18:18 +0800)
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>
MdeModulePkg/Include/Library/PlatformVarCleanupLib.h
MdeModulePkg/Library/BrotliCustomDecompressLib/GuidedSectionExtraction.c
MdeModulePkg/Library/DxeSecurityManagementLib/DxeSecurityManagementLib.c
MdeModulePkg/Library/LzmaCustomDecompressLib/F86GuidedSectionExtraction.c
MdeModulePkg/Library/LzmaCustomDecompressLib/GuidedSectionExtraction.c
MdeModulePkg/Library/PlatformVarCleanupLib/PlatVarCleanupLib.c
MdeModulePkg/Universal/SetupBrowserDxe/Expression.c

index a4691f0e652beee8fdfce17606eb7f5cb4988735..1d642f62baf2a8ca114ffb2a15354a1ee3842039 100644 (file)
@@ -32,6 +32,7 @@ typedef enum {
 VAR_ERROR_FLAG\r
 EFIAPI\r
 GetLastBootVarErrorFlag (\r
+  VOID\r
   );\r
 \r
 /**\r
index 427adb876a4671e6b5336caa8531dab7766db607..c623e1e4f749980c3998fc3ec15b8874bf4a03e7 100644 (file)
@@ -186,6 +186,7 @@ BrotliGuidedSectionExtraction (
 EFI_STATUS\r
 EFIAPI\r
 BrotliDecompressLibConstructor (\r
+  VOID\r
   )\r
 {\r
   return ExtractGuidedSectionRegisterHandlers (\r
index b96d78664d772af269a2e00d4044009a9ab3cde1..aa4d93b6f3a2c1ebf24401a3db613f2d7afd4b67 100644 (file)
@@ -61,6 +61,7 @@ SECURITY2_INFO *mSecurity2Table      = NULL;
 RETURN_STATUS\r
 EFIAPI\r
 ReallocateSecurityHandlerTable (\r
+  VOID\r
   )\r
 {\r
   //\r
@@ -301,6 +302,7 @@ ExecuteSecurityHandlers (
 RETURN_STATUS\r
 EFIAPI\r
 ReallocateSecurity2HandlerTable (\r
+  VOID\r
   )\r
 {\r
   //\r
index ada9a809fa5882d92a845c37f66ec60751373c09..b02dc515f8a020b04b4e6612bf3467c30106a57c 100644 (file)
@@ -207,6 +207,7 @@ LzmaArchGuidedSectionExtraction (
 EFI_STATUS\r
 EFIAPI\r
 LzmaArchDecompressLibConstructor (\r
+  VOID\r
   )\r
 {\r
   return ExtractGuidedSectionRegisterHandlers (\r
index f19e0d28cd18a1cae02ab18786af2a5ff9c615aa..7ef9fbbfc6bf9b3fac7238f6b20a723733c48bff 100644 (file)
@@ -190,6 +190,7 @@ LzmaGuidedSectionExtraction (
 EFI_STATUS\r
 EFIAPI\r
 LzmaDecompressLibConstructor (\r
+  VOID\r
   )\r
 {\r
   return ExtractGuidedSectionRegisterHandlers (\r
index c5fd30e2196b2fef3639d46abb2133739b518020..450b4b344327990d81e2eb88382eddcab5186e72 100644 (file)
@@ -1187,6 +1187,7 @@ Done:
 VAR_ERROR_FLAG\r
 EFIAPI\r
 GetLastBootVarErrorFlag (\r
+  VOID\r
   )\r
 {\r
   return mLastVarErrorFlag;\r
index 901b35c7201b7987229a142282acb39ec6aa9163..297741c0fe9df9d031bd064e5f94e6472c7af8b3 100644 (file)
@@ -751,6 +751,7 @@ PopExpression (
 **/\r
 UINTN\r
 SaveExpressionEvaluationStackOffset (\r
+  VOID\r
   )\r
 {\r
   UINTN TempStackOffset;\r