Page MenuHomeFreeBSD

makefs: use `char *` not `void *` for buf b_data and drop casts from msdos
ClosedPublic

Authored by emaste on Aug 20 2019, 9:57 PM.
Tags
None
Referenced Files
Unknown Object (File)
Mon, Apr 21, 4:31 AM
Unknown Object (File)
Sat, Apr 19, 9:08 AM
Unknown Object (File)
Mar 14 2025, 6:36 PM
Unknown Object (File)
Mar 10 2025, 12:17 AM
Unknown Object (File)
Feb 23 2025, 4:49 PM
Unknown Object (File)
Feb 17 2025, 5:48 PM
Unknown Object (File)
Feb 17 2025, 1:34 AM
Unknown Object (File)
Jan 21 2025, 4:16 AM
Subscribers

Diff Detail

Lint
Lint Skipped
Unit
Tests Skipped

Event Timeline

You've build-checked this, right? makefs/ffs has some casts of b_data to larger structure types, which are totally valid for void* but compilers may warn about casting from a lower-alignment type like char to a larger alignment type.

This revision is now accepted and ready to land.Aug 20 2019, 10:03 PM

You've build-checked this, right?

Yes on amd64.