mirror of https://github.com/acidanthera/audk.git
SecurityPkg/Tcg2Config: avoid potential build error
Cast pointer type to VOID* to avoid potential build error. If the two PCD are FixAtBuild, PcdGetPtr will return a const type pointer. Since the second parameter of BuildGuidDataHob is VOID*, build error may happen with following log: C4090: 'function': different 'const' qualifiers Signed-off-by: Dun Tan <dun.tan@intel.com>
This commit is contained in:
parent
2809966189
commit
ed9a64af1b
|
@ -190,7 +190,7 @@ Tcg2ConfigPeimEntryPoint (
|
|||
//
|
||||
Hob = BuildGuidDataHob (
|
||||
&gEdkiiTpmInstanceHobGuid,
|
||||
PcdGetPtr (PcdTpmInstanceGuid),
|
||||
(VOID *)PcdGetPtr (PcdTpmInstanceGuid),
|
||||
sizeof (EFI_GUID)
|
||||
);
|
||||
ASSERT (Hob != NULL);
|
||||
|
@ -200,7 +200,7 @@ Tcg2ConfigPeimEntryPoint (
|
|||
//
|
||||
Hob = BuildGuidDataHob (
|
||||
&gEdkiiTcgPhysicalPresenceInterfaceVerHobGuid,
|
||||
PcdGetPtr (PcdTcgPhysicalPresenceInterfaceVer),
|
||||
(VOID *)PcdGetPtr (PcdTcgPhysicalPresenceInterfaceVer),
|
||||
AsciiStrSize ((CHAR8 *)PcdGetPtr (PcdTcgPhysicalPresenceInterfaceVer))
|
||||
);
|
||||
ASSERT (Hob != NULL);
|
||||
|
|
Loading…
Reference in New Issue