Discussion:
[edk2] [PATCH] MdeModulePkg: Add type cast to avoid build failure in GCC.
Qiu Shumin
2015-06-09 05:36:30 UTC
Permalink
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Qiu Shumin <***@intel.com>
---
.../PropertiesTableAttributesDxe/PropertiesTableAttributesDxe.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/MdeModulePkg/Universal/PropertiesTableAttributesDxe/PropertiesTableAttributesDxe.c b/MdeModulePkg/Universal/PropertiesTableAttributesDxe/PropertiesTableAttributesDxe.c
index 8d17a03..6e5c4f8 100644
--- a/MdeModulePkg/Universal/PropertiesTableAttributesDxe/PropertiesTableAttributesDxe.c
+++ b/MdeModulePkg/Universal/PropertiesTableAttributesDxe/PropertiesTableAttributesDxe.c
@@ -126,7 +126,7 @@ UpdateMemoryAttributesDefault (
EFI_PROPERTIES_TABLE *PropertiesTable;

DEBUG ((EFI_D_INFO, "UpdateMemoryAttributesDefault\n"));
- Status = EfiGetSystemConfigurationTable (&gEfiPropertiesTableGuid, &PropertiesTable);
+ Status = EfiGetSystemConfigurationTable (&gEfiPropertiesTableGuid, (VOID **) &PropertiesTable);
if (EFI_ERROR (Status)) {
goto Done;
}
--
1.9.5.msysgit.1



------------------------------------------------------------------------------
Yao, Jiewen
2015-06-09 05:51:01 UTC
Permalink
Looks good.
Reviewed by: Yao, Jiewen <***@intel.com>

-----Original Message-----
From: Qiu, Shumin
Sent: Tuesday, June 09, 2015 1:37 PM
To: edk2-***@lists.sourceforge.net
Cc: Yao, Jiewen
Subject: [PATCH] MdeModulePkg: Add type cast to avoid build failure in GCC.

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Qiu Shumin <***@intel.com>
---
.../PropertiesTableAttributesDxe/PropertiesTableAttributesDxe.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/MdeModulePkg/Universal/PropertiesTableAttributesDxe/PropertiesTableAttributesDxe.c b/MdeModulePkg/Universal/PropertiesTableAttributesDxe/PropertiesTableAttributesDxe.c
index 8d17a03..6e5c4f8 100644
--- a/MdeModulePkg/Universal/PropertiesTableAttributesDxe/PropertiesTableAttributesDxe.c
+++ b/MdeModulePkg/Universal/PropertiesTableAttributesDxe/PropertiesTableAttributesDxe.c
@@ -126,7 +126,7 @@ UpdateMemoryAttributesDefault (
EFI_PROPERTIES_TABLE *PropertiesTable;

DEBUG ((EFI_D_INFO, "UpdateMemoryAttributesDefault\n"));
- Status = EfiGetSystemConfigurationTable (&gEfiPropertiesTableGuid, &PropertiesTable);
+ Status = EfiGetSystemConfigurationTable (&gEfiPropertiesTableGuid, (VOID **) &PropertiesTable);
if (EFI_ERROR (Status)) {
goto Done;
}
--
1.9.5.msysgit.1



------------------------------------------------------------------------------
Loading...