]> git.proxmox.com Git - mirror_edk2.git/blobdiff - EdkModulePkg/Universal/Network/PxeBc/Dxe/pxe_loadfile.c
Partially make EdkModulePkg pass intel IPF compiler with /W4 /WX switched on.
[mirror_edk2.git] / EdkModulePkg / Universal / Network / PxeBc / Dxe / pxe_loadfile.c
index 182462c02f1c5a33fdf7714f49708b59cd0d784d..6659bc4022cb08d880179d6191e125ea0e88a464 100644 (file)
@@ -393,24 +393,23 @@ Returns:
     if (gST->ConIn->ReadKeyStroke (gST->ConIn, &Key) == EFI_NOT_READY) {\r
       UINT8       Buffer[512];\r
       UINTN       BufferSize;\r
-      EFI_STATUS  Status;\r
 \r
       BufferSize = sizeof Buffer;\r
 \r
-      Status = Private->EfiBc.UdpRead (\r
-                                &Private->EfiBc,\r
-                                EFI_PXE_BASE_CODE_UDP_OPFLAGS_ANY_SRC_IP |\r
-                                EFI_PXE_BASE_CODE_UDP_OPFLAGS_ANY_SRC_PORT |\r
-                                EFI_PXE_BASE_CODE_UDP_OPFLAGS_ANY_DEST_PORT,\r
-                                NULL, /* dest ip */\r
-                                NULL, /* dest port */\r
-                                NULL, /* src ip */\r
-                                NULL, /* src port */\r
-                                NULL, /* hdr size */\r
-                                NULL, /* hdr ptr */\r
-                                &BufferSize,\r
-                                Buffer\r
-                                );\r
+      Private->EfiBc.UdpRead (\r
+                       &Private->EfiBc,\r
+                       EFI_PXE_BASE_CODE_UDP_OPFLAGS_ANY_SRC_IP |\r
+                       EFI_PXE_BASE_CODE_UDP_OPFLAGS_ANY_SRC_PORT |\r
+                       EFI_PXE_BASE_CODE_UDP_OPFLAGS_ANY_DEST_PORT,\r
+                       NULL, /* dest ip */\r
+                       NULL, /* dest port */\r
+                       NULL, /* src ip */\r
+                       NULL, /* src port */\r
+                       NULL, /* hdr size */\r
+                       NULL, /* hdr ptr */\r
+                       &BufferSize,\r
+                       Buffer\r
+                       );\r
 \r
       continue;\r
     }\r
@@ -870,6 +869,7 @@ Returns:
   return NULL;\r
 }\r
 \r
+STATIC\r
 UINT8 *\r
 PxeBcFindDhcpOpt (\r
   EFI_PXE_BASE_CODE_PACKET  *PacketPtr,\r
@@ -1088,7 +1088,6 @@ Returns:
 \r
   if (Private->EfiBc.Mode->BisSupported && Private->EfiBc.Mode->BisDetected && Private->EfiBc.Mode->PxeBisReplyReceived) {\r
     UINT64  CredentialLen;\r
-    UINTN   BlockSize;\r
     UINT8   CredentialFilename[256];\r
     UINT8   *op;\r
     VOID    *CredentialBuffer;\r
@@ -1398,11 +1397,6 @@ Returns:
 \r
   AsciiPrint ("Running LoadFile()\n");\r
 \r
-  //\r
-  // Resolve Warning 4 unreferenced parameter problem\r
-  //\r
-  FilePath = NULL;\r
-\r
   //\r
   // If either if these parameters are NULL, we cannot continue.\r
   //\r