CorebootModulePkg: Change CbParseAcpiTable prototype to avoid gcc fail
authorScott Duplichan <scott@notabs.org>
Fri, 10 Apr 2015 02:41:01 +0000 (02:41 +0000)
committermauricema <mauricema@Edk2>
Fri, 10 Apr 2015 02:41:01 +0000 (02:41 +0000)
Use of void** as a generic pointer to pointer is a Microsoft extension
to the C language and is not supported by gcc. Without this change, gcc
compile fails with error:
passing argument 1 of 'CbParseAcpiTable' from incompatible pointer type
note: expected 'void **' but argument is of type
'struct EFI_ACPI_3_0_ROOT_SYSTEM_DESCRIPTION_POINTER **'

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Scott Duplichan <scott@notabs.org>
Reviewed-by: Maurice Ma <maurice.ma@intel.com>
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@17144 6f19259b-4bc3-4df7-8a09-765794883524

CorebootModulePkg/Include/Library/CbParseLib.h
CorebootModulePkg/Library/CbParseLib/CbParseLib.c

index 36727d3..034574f 100644 (file)
@@ -63,7 +63,7 @@ CbParseCbMemTable (
 **/\r
 RETURN_STATUS\r
 CbParseAcpiTable (\r
-  IN VOID**     pMemTable,\r
+  IN VOID*      pMemTable,\r
   IN UINT32*    pMemTableSize\r
   );\r
   \r
index 0e11632..f4ba69f 100644 (file)
@@ -283,11 +283,11 @@ CbParseCbMemTable (
 **/\r
 RETURN_STATUS\r
 CbParseAcpiTable (\r
-  IN VOID**     pMemTable,\r
+  IN VOID*      pMemTable,\r
   IN UINT32*    pMemTableSize\r
   )\r
 {\r
-       return CbParseCbMemTable (SIGNATURE_32 ('I', 'P', 'C', 'A'), pMemTable, pMemTableSize); \r
+       return CbParseCbMemTable (SIGNATURE_32 ('I', 'P', 'C', 'A'), (VOID **)pMemTable, pMemTableSize);        \r
 }\r
 \r
 /**\r