mirror of
https://git.FreeBSD.org/src.git
synced 2024-12-20 11:11:24 +00:00
3ac0e4769e
Fix a clang 4.0.0 warning about taking the address of a packed member of struct mfi_evt in mfiutil: usr.sbin/mfiutil/mfi_evt.c:583:30: error: taking address of packed member 'members' of class or structure 'mfi_evt' may result in an unaligned pointer value [-Werror,-Waddress-of-packed-member] if (parse_locale(optarg, &filter.members.locale) < 0) { ^~~~~~~~~~~~~~~~~~~~~ Use a local variable instead, and copy that into the struct. Reviewed by: jhb MFC after: 3 days Differential Revision: https://reviews.freebsd.org/D9069 |
||
---|---|---|
.. | ||
Makefile | ||
Makefile.depend | ||
mfi_bbu.c | ||
mfi_cmd.c | ||
mfi_config.c | ||
mfi_drive.c | ||
mfi_evt.c | ||
mfi_flash.c | ||
mfi_foreign.c | ||
mfi_patrol.c | ||
mfi_properties.c | ||
mfi_show.c | ||
mfi_volume.c | ||
mfiutil.8 | ||
mfiutil.c | ||
mfiutil.h |