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)
Tue, Jun 4, 5:21 AM
Unknown Object (File)
Dec 20 2023, 2:55 AM
Unknown Object (File)
Sep 17 2023, 9:12 AM
Unknown Object (File)
Jun 28 2023, 11:09 AM
Unknown Object (File)
May 6 2023, 1:30 PM
Unknown Object (File)
Apr 8 2017, 5:38 AM
Unknown Object (File)
Apr 8 2017, 1:30 AM
Unknown Object (File)
Apr 1 2017, 7:52 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.