Page MenuHomeFreeBSD

Unbreak the gcc build with sendfile_test after r343362
ClosedPublic

Authored by ngie on Jan 23 2019, 10:48 PM.
Tags
None
Referenced Files
Unknown Object (File)
Sun, Mar 16, 3:48 AM
Unknown Object (File)
Mon, Mar 10, 1:30 PM
Unknown Object (File)
Mon, Mar 10, 7:23 AM
Unknown Object (File)
Mon, Mar 10, 7:15 AM
Unknown Object (File)
Mon, Mar 10, 6:48 AM
Unknown Object (File)
Fri, Feb 21, 3:02 PM
Unknown Object (File)
Feb 20 2025, 2:09 AM
Unknown Object (File)
Jan 24 2025, 4:57 PM
Subscribers

Details

Summary

gcc 8.x is more pedantic than clang 7.x with format strings and the tests
passed void* variables while supplying %s (which is technically
incorrect).

Make the affected void* variables use char* storage instead to address
this issue, as the compiler will upcast the values to char*.

MFC after: 1 month
MFC with: r343362

Test Plan
make; sudo make install; kyua test -k /usr/tests/lib/libc/sys/Kyuafile sendfile_test

Diff Detail

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

Event Timeline

Approved. But I think the MFC reminder won't work unless you replace "MFC With" with "X-MFC-With" in your commit message.

This revision is now accepted and ready to land.Jan 23 2019, 10:56 PM

Approved. But I think the MFC reminder won't work unless you replace "MFC With" with "X-MFC-With" in your commit message.

It should work. The Committer's Guide was updated to use MFC with instead of X-MFC-With (the old form): https://www.freebsd.org/doc/en/articles/committers-guide/article.html#commit-log-message back almost 2 years ago by @emaste: https://svnweb.freebsd.org/doc?view=revision&revision=50227 ;).

This revision was automatically updated to reflect the committed changes.
In D18934#404425, @ngie wrote:

Approved. But I think the MFC reminder won't work unless you replace "MFC With" with "X-MFC-With" in your commit message.

It should work. The Committer's Guide was updated to use MFC with instead of X-MFC-With (the old form): https://www.freebsd.org/doc/en/articles/committers-guide/article.html#commit-log-message back almost 2 years ago by @emaste: https://svnweb.freebsd.org/doc?view=revision&revision=50227 ;).

Oh, that's news to me. I guess I should reread the committer's guide every five years or so.