Fix GCC build failure.
authorRuiyu Ni <ruiyu.ni@intel.com>
Sat, 11 Jan 2014 03:21:21 +0000 (03:21 +0000)
committerniruiyu <niruiyu@6f19259b-4bc3-4df7-8a09-765794883524>
Sat, 11 Jan 2014 03:21:21 +0000 (03:21 +0000)
Signed-off-by: Ruiyu Ni <ruiyu.ni@intel.com>
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15098 6f19259b-4bc3-4df7-8a09-765794883524

MdeModulePkg/Universal/DebugPortDxe/DebugPort.c

index 984288e30267a6e0c12761db8098cad01895e657..00889a246d8fc801a6ad4b274d51877f6ef0fdae 100644 (file)
@@ -65,7 +65,7 @@ GetDebugPortVariable (
   EFI_DEVICE_PATH_PROTOCOL  *DebugPortVariable;\r
   EFI_DEVICE_PATH_PROTOCOL  *DevicePath;\r
 \r
   EFI_DEVICE_PATH_PROTOCOL  *DebugPortVariable;\r
   EFI_DEVICE_PATH_PROTOCOL  *DevicePath;\r
 \r
-  GetVariable2 (EFI_DEBUGPORT_VARIABLE_NAME, &gEfiDebugPortVariableGuid, &DebugPortVariable, &DataSize);\r
+  GetVariable2 (EFI_DEBUGPORT_VARIABLE_NAME, &gEfiDebugPortVariableGuid, (VOID **) &DebugPortVariable, &DataSize);\r
   if (DebugPortVariable == NULL) {\r
     return NULL;\r
   }\r
   if (DebugPortVariable == NULL) {\r
     return NULL;\r
   }\r