[edk2-devel] [PATCH 04/18] OvmfPkg: Update code to be more C11 compliant by using __func__

Sunil V L sunilvl at ventanamicro.com
Fri Apr 7 11:19:00 UTC 2023


On Thu, Apr 06, 2023 at 04:23:05PM -0600, Rebecca Cran wrote:
> __FUNCTION__ is a pre-standard extension that gcc and Visual C++ among
> others support, while __func__ was standardized in C99.
> 
> Since it's more standard, replace __FUNCTION__ with __func__ throughout
> OvmfPkg.
> 
> Visual Studio versions before VS 2015 don't support __func__ and so
> will fail to compile. A workaround is to define __func__ as
> __FUNCTION__ :
> 
>   #define __func__ __FUNCTION__
> 
> Signed-off-by: Rebecca Cran <rebecca at bsdio.com>
> ---
For RiscVVirt:

Reviewed-by: Sunil V L <sunilvl at ventanamicro.com>


-=-=-=-=-=-=-=-=-=-=-=-
Groups.io Links: You receive all messages sent to this group.
View/Reply Online (#102684): https://edk2.groups.io/g/devel/message/102684
Mute This Topic: https://groups.io/mt/98115230/1813853
Group Owner: devel+owner at edk2.groups.io
Unsubscribe: https://edk2.groups.io/g/devel/unsub [edk2-devel-archive at redhat.com]
-=-=-=-=-=-=-=-=-=-=-=-




More information about the edk2-devel-archive mailing list