This patch fixes the compilation errors seen in edk2-libc components while compiling Python UEFI. Below is summary of fixes done through this patch request.
1.AppPkg\Applications\Enquire\Enquire.c Warning C4459: Declaration of 'bugs' hides global declaration. Warning C4456: Multiple declarations of 'char_max' hide previous local declarations. Warning C4456: Declaration of 'char_min' hides previous local declaration. 2.AppPkg\Applications\OrderedCollectionTest\OrderedCollectionTest.c Warning C4476: Unknown type field character '$' in format specifier. Warning C4474: Too many arguments passed for format string. 3.StdLib\BsdSocketLib\getnetbyht.c Warning C4459: Declaration of 'net' hides global declaration. 4.StdLib\EfiSocketLib\Socket.c Warning C4459: Multiple declarations of 'errno' hide global declaration. 5.AppPkg\Applications\Sockets\DataSource\DataSource.c Warning C4459: Declaration of 'BytesSent' hides global declaration. 6.AppPkg\Applications\Sockets\OobRx\OobRx.c Warning C4475: Length modifier 'L' cannot be used with type field character 'd' in format specifier. 7.AppPkg\Applications\Sockets\RawIp4Rx\RawIp4Rx.c Warning C4475: Length modifier 'L' cannot be used with type field character 'd' in format specifier. 8.StdLib\BsdSocketLib\ns_print.c Warning C4456: Multiple declarations of 't' hide previous local declarations. Warning C4457: Declaration of 'type' hides function parameter. Jayaprakash N (1): edk2-libc: Support for compiling Python UEFI interpreter with VS2022 AppPkg/Applications/Enquire/Enquire.c | 48 +++++------ .../OrderedCollectionTest.c | 10 +-- .../Sockets/DataSource/DataSource.c | 10 +-- AppPkg/Applications/Sockets/OobRx/OobRx.c | 6 +- .../Applications/Sockets/RawIp4Rx/RawIp4Rx.c | 4 +- StdLib/BsdSocketLib/getnetbyht.c | 9 ++- StdLib/BsdSocketLib/ns_print.c | 57 +++++++------ StdLib/EfiSocketLib/Socket.c | 80 +++++++++---------- 8 files changed, 117 insertions(+), 107 deletions(-) -- 2.45.1.windows.1 -=-=-=-=-=-=-=-=-=-=-=- Groups.io Links: You receive all messages sent to this group. View/Reply Online (#119987): https://edk2.groups.io/g/devel/message/119987 Mute This Topic: https://groups.io/mt/107454080/21656 Group Owner: devel+ow...@edk2.groups.io Unsubscribe: https://edk2.groups.io/g/devel/unsub [arch...@mail-archive.com] -=-=-=-=-=-=-=-=-=-=-=-