StdLib/Libc/StdLib/Malloc.c has been updated to incorporate the patch submitted 
by Paulo Alcantara as quoted below.

This patch fixes the following warning:
        "expected ‘void **’ but argument is of type ‘struct CPOOL_HEAD **’"

Daryl McDaniel

"If you want to kill any idea in the world, get a committee working on it"
-- Charles Kettering

-----Original Message-----
From: Paulo Alcantara [mailto:[email protected]] 
Sent: Wednesday, April 16, 2014 8:39 AM
To: [email protected]
Subject: [edk2] [PATCH] StdLib/Malloc: Fix trivial warning

From: Paulo Alcantara <[email protected]>

This patch fixes the following warning:

"expected ‘void **’ but argument is of type ‘struct CPOOL_HEAD **’"

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Paulo Alcantara <[email protected]>
---
 StdLib/LibC/StdLib/Malloc.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/StdLib/LibC/StdLib/Malloc.c b/StdLib/LibC/StdLib/Malloc.c index 
df6e702..b52889d 100644
--- a/StdLib/LibC/StdLib/Malloc.c
+++ b/StdLib/LibC/StdLib/Malloc.c
@@ -98,7 +98,7 @@ malloc(size_t Size)
 
   DEBUG((DEBUG_POOL, "malloc(%d): NodeSz: %d", Size, NodeSize));
 
-  Status = gBS->AllocatePool( EfiLoaderData, NodeSize, &Head);
+  Status = gBS->AllocatePool( EfiLoaderData, NodeSize, (VOID **)&Head);
   if( Status != EFI_SUCCESS) {
     RetVal  = NULL;
     errno   = ENOMEM;
--
1.8.3.2


------------------------------------------------------------------------------
Learn Graph Databases - Download FREE O'Reilly Book
"Graph Databases" is the definitive new guide to graph databases and their
applications. Written by three acclaimed leaders in the field,
this first edition is now available. Download your free book today!
http://p.sf.net/sfu/NeoTech
_______________________________________________
edk2-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/edk2-devel
------------------------------------------------------------------------------
Learn Graph Databases - Download FREE O'Reilly Book
"Graph Databases" is the definitive new guide to graph databases and their
applications. Written by three acclaimed leaders in the field,
this first edition is now available. Download your free book today!
http://p.sf.net/sfu/NeoTech
_______________________________________________
edk2-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/edk2-devel

Reply via email to