Page MenuHomeFreeBSD

loader: libefi/env.c warnings in arm build
ClosedPublic

Authored by tsoome on Feb 3 2017, 10:18 AM.
Tags
None
Referenced Files
Unknown Object (File)
Fri, Nov 8, 12:20 AM
Unknown Object (File)
Tue, Oct 29, 12:17 PM
Unknown Object (File)
Oct 2 2024, 6:01 AM
Unknown Object (File)
Sep 30 2024, 3:19 PM
Unknown Object (File)
Sep 28 2024, 11:38 PM
Unknown Object (File)
Sep 27 2024, 1:00 PM
Unknown Object (File)
Sep 27 2024, 11:17 AM
Unknown Object (File)
Sep 25 2024, 3:16 AM
Subscribers
None

Details

Summary

The arm build has revealed some of the warnings, the fix for CHAR16
warning is to switch the warning off for env.c (same as for efinet.c).

For error code we need to use macro.

Diff Detail

Repository
rS FreeBSD src repository - subversion
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

tsoome retitled this revision from to loader: libefi/env.c warnings in arm build.
tsoome updated this object.
tsoome edited the test plan for this revision. (Show Details)
tsoome added reviewers: allanjude, imp.

make buildworld TARGET_ARCH=armv6 is clean.

imp edited edge metadata.
imp added inline comments.
sys/boot/efi/libefi/Makefile
29 โ†—(On Diff #24677)

I recall having to have this before for a different file. Now that you've moved the code, maybe that can be removed?

This revision is now accepted and ready to land.Feb 3 2017, 4:21 PM
sys/boot/efi/libefi/Makefile
29 โ†—(On Diff #24677)

The problem is that arm is is not setting wchar to 2 bytes, so anywhere we use printf format %S, this suppressor is needed, as the actual data is 2 bytes, not 4. and efi/loader/main.c is using %S.

This revision was automatically updated to reflect the committed changes.