Page MenuHomeFreeBSD

devel/freebsd-gcc*: Fix error in printf0 format checker patch
ClosedPublic

Authored by jhb on Jul 9 2024, 8:46 PM.
Tags
None
Referenced Files
Unknown Object (File)
Tue, Jan 14, 11:00 PM
Unknown Object (File)
Nov 29 2024, 7:23 AM
Unknown Object (File)
Nov 29 2024, 12:25 AM
Unknown Object (File)
Nov 25 2024, 2:42 PM
Unknown Object (File)
Nov 25 2024, 4:11 AM
Unknown Object (File)
Nov 25 2024, 12:25 AM
Unknown Object (File)
Nov 24 2024, 2:20 AM
Unknown Object (File)
Nov 23 2024, 10:09 PM
Subscribers
None

Details

Summary

Fix a mismerge of the printf0 format checking patch from GCC 9 to GCC
12/13. GCC 11 and later don't warn for NULL format strings (instead a
separate nonnull attribute is used). The printf0 format specifier is
left for now to support builds of existing FreeBSD releases but will
be removed in the future.

Diff Detail

Repository
R11 FreeBSD ports repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

jhb requested review of this revision.Jul 9 2024, 8:46 PM
jhb created this revision.

This looks good, but the way to test it is to change printf0 to printf on that one line :)

This revision is now accepted and ready to land.Jul 9 2024, 10:05 PM
In D45941#1047201, @imp wrote:

This looks good, but the way to test it is to change printf0 to printf on that one line :)

I just did that test and world and kernel built fine with that change.