Clang 4 now warns about unaligned access inside packed structures. Fix unaligned
access in newfs_nandfs.
Details
Details
- Reviewers
emaste mjg - Commits
- rS314671: newfs_nandfs: Fix unaligned pointer warning
Diff Detail
Diff Detail
- Lint
Lint Passed - Unit
No Test Coverage - Build Status
Buildable 7342 Build 7509: arc lint + arc unit
Event Timeline
Comment Actions
I think this is fine, but it feels like a Clang false-positive to me.
(fsdata.f_uuid is at offset 64 in nandfs_fsdata)
Comment Actions
It may well be a false positive, though I suspect that this warning is given for any pointer access to a member of a packed structure. This wasn't the only warning of its kind I saw, just the only warning where WARNS wasn't already set to 3 or lower.