aboutsummaryrefslogtreecommitdiff
path: root/usr.sbin/bsdinstall/(developers-only)
diff options
context:
space:
mode:
authorAlex Richardson <arichardson@FreeBSD.org>2025-12-16 18:09:57 +0000
committerAlex Richardson <arichardson@FreeBSD.org>2025-12-16 20:21:45 +0000
commit2ed21f90906b230476d3f12ff9dce0e2c4642af2 (patch)
tree153ace00803925a13174823e48cbcd679c7192bf /usr.sbin/bsdinstall/(developers-only)
parent86f325711c07b723b85c031d581d0a5c1a0964f3 (diff)
netmap: silence -Wdefault-const-init-field-unsafe warningHEADmain
The netmap_ring struct starts with various const members and rencent clang warns about leaving them uninitialized. Having them const in the first place is highly suspicious since they are updated with various macros but using hand-coded __DECONST(). But fixing that is a more invasive change that I am unable to test. ``` .../freebsd/sys/dev/netmap/netmap_kloop.c:320:21: error: default initialization of an object of type 'struct netmap_ring' with const member leaves the object uninitialized [-Werror,-Wdefault-const-init-field-unsafe] 320 | struct netmap_ring shadow_ring; /* shadow copy of the netmap_ring */ | ^ .../freebsd/sys/net/netmap.h:290:16: note: member 'buf_ofs' declared 'const' here 290 | const int64_t buf_ofs; | ^ ``` Test Plan: Compiles Reviewed by: vmaffione, jhb MFC after: 1 week Differential Revision: https://reviews.freebsd.org/D52568
Diffstat (limited to 'usr.sbin/bsdinstall/(developers-only)')
0 files changed, 0 insertions, 0 deletions