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: [email protected]
Reporter: [email protected]
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.
_______________________________________________
[email protected] mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-bugs
To unsubscribe, send any mail to "[email protected]"