[Bug 217532] sbin/newfs_nandfs/newfs_nandfs.c warning on unaligned pointer value
bugzilla-noreply at freebsd.org
bugzilla-noreply at freebsd.org
Sat Mar 4 12:10:04 UTC 2017
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=217532
Bug ID: 217532
Summary: sbin/newfs_nandfs/newfs_nandfs.c warning on unaligned
pointer value
Product: Base System
Version: CURRENT
Hardware: Any
OS: Any
Status: New
Severity: Affects Some People
Priority: ---
Component: bin
Assignee: freebsd-bugs at FreeBSD.org
Reporter: Trond.Endrestol at ximalas.info
Created attachment 180490
--> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=180490&action=edit
Patch for sbin/newfs_nandfs/newfs_nandfs.c eliminating the unaligned pointer
value warning
sbin/newfs_nandfs/newfs_nandfs.c in 12.0-CURRENT r314649 throws a warning on
unaligned pointer value:
newfs_nandfs/newfs_nandfs.c:543:11: error: taking address of packed member
'f_uuid' of class or structure 'nandfs_fsdata' may result in an unaligned
pointer value [-Werror,-Waddress-of-packed-member]
uuidgen(&fsdata.f_uuid, 1);
^~~~~~~~~~~~~
1 error generated.
*** [newfs_nandfs.o] Error code 1
The attached patch fixes this error.
--
You are receiving this mail because:
You are the assignee for the bug.
More information about the freebsd-bugs
mailing list