]> git.proxmox.com Git - mirror_edk2.git/blobdiff - EdkCompatibilityPkg/Foundation/Library/Dxe/EfiIfrSupportLib/IfrCommon.c
Fix various warnings with the Intel C compiler.
[mirror_edk2.git] / EdkCompatibilityPkg / Foundation / Library / Dxe / EfiIfrSupportLib / IfrCommon.c
index 44370a5e1cafaffb2d012b13f7f4eadd385c4d5f..996421d039361b49c697e1836369c92aaaaf7006 100644 (file)
@@ -119,6 +119,8 @@ Returns:
   UINT8               *Destination;\r
   UINTN               Index;\r
   BOOLEAN             Finished;\r
+  UINTN               SizeofLanguage;\r
+  UINTN               SizeofString;\r
 \r
   StringPack  = (EFI_HII_STRING_PACK *) StringBuffer;\r
   Finished    = FALSE;\r
@@ -239,14 +241,16 @@ Returns:
     //\r
     // Pointing to a new string pack location\r
     //\r
+    SizeofLanguage = EfiStrSize (Language);\r
+    SizeofString   = EfiStrSize (String);\r
     StringPackBuffer->Header.Length = (UINT32)\r
       (\r
         sizeof (EFI_HII_STRING_PACK) -\r
         sizeof (EFI_STRING) +\r
         sizeof (RELOFST) +\r
         sizeof (RELOFST) +\r
-        EfiStrSize (Language) +\r
-        EfiStrSize (String)\r
+        SizeofLanguage +\r
+        SizeofString\r
       );\r
     StringPackBuffer->Header.Type           = EFI_HII_STRING;\r
     StringPackBuffer->LanguageNameString    = (UINT16) ((UINTN) &PackDestination[3] - (UINTN) StringPackBuffer);\r