From 0c561f4175c9f577679cd0cdd9aef1e553f9e35f Mon Sep 17 00:00:00 2001 From: klu2 Date: Tue, 24 Nov 2009 08:09:58 +0000 Subject: Explicitly cast PCD_CALLBACK to EFI_PCD_PPI_CALLBACK/EFI_PCD_PROTOCOL_CALLBACK) to avoid warning. PCD_CALLBACK in EDKII implementation is compatible with EFI_PCD_PPI_CALLBACK/EFI_PCD_PROTOCOL_CALLBACK. git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@9474 6f19259b-4bc3-4df7-8a09-765794883524 --- MdePkg/Library/PeiPcdLib/PeiPcdLib.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'MdePkg/Library/PeiPcdLib') diff --git a/MdePkg/Library/PeiPcdLib/PeiPcdLib.c b/MdePkg/Library/PeiPcdLib/PeiPcdLib.c index 5dcb16ad43..2b883268c8 100644 --- a/MdePkg/Library/PeiPcdLib/PeiPcdLib.c +++ b/MdePkg/Library/PeiPcdLib/PeiPcdLib.c @@ -893,7 +893,7 @@ LibPcdCallbackOnSet ( ASSERT (NotificationFunction != NULL); - Status = (GetPiPcdPpiPointer ())->CallbackOnSet (Guid, TokenNumber, NotificationFunction); + Status = (GetPiPcdPpiPointer ())->CallbackOnSet (Guid, TokenNumber, (EFI_PCD_PPI_CALLBACK) NotificationFunction); ASSERT_EFI_ERROR (Status); @@ -927,7 +927,7 @@ LibPcdCancelCallback ( ASSERT (NotificationFunction != NULL); - Status = (GetPiPcdPpiPointer ())->CancelCallback (Guid, TokenNumber, NotificationFunction); + Status = (GetPiPcdPpiPointer ())->CancelCallback (Guid, TokenNumber, (EFI_PCD_PPI_CALLBACK) NotificationFunction); ASSERT_EFI_ERROR (Status); -- cgit v1.2.3