On Tue, 28 Nov 2023 at 00:58, <mikub...@linux.microsoft.com> wrote: > > From: Michael Kubacki <michael.kuba...@microsoft.com> > > mReplaceLiveEntryFunc is a function pointer but assigned as a VOID* > pointer: > > mReplaceLiveEntryFunc = *(VOID **)GET_GUID_HOB_DATA (Hob); > > This leads to the Visual Studio warning: > > nonstandard extension, function/data pointer conversion in > expression > > This change updates the assignment to avoid using a data pointer and > defines a type for the function pointer to succinctly and accurately > refer to the type when it is used in the library code. > > Cc: Ard Biesheuvel <ardb+tianoc...@kernel.org> > Cc: Leif Lindholm <quic_llind...@quicinc.com> > Cc: Sami Mujawar <sami.muja...@arm.com> > Signed-off-by: Michael Kubacki <michael.kuba...@microsoft.com>
Merged, thanks. -=-=-=-=-=-=-=-=-=-=-=- Groups.io Links: You receive all messages sent to this group. View/Reply Online (#111807): https://edk2.groups.io/g/devel/message/111807 Mute This Topic: https://groups.io/mt/102841630/21656 Group Owner: devel+ow...@edk2.groups.io Unsubscribe: https://edk2.groups.io/g/devel/unsub [arch...@mail-archive.com] -=-=-=-=-=-=-=-=-=-=-=-