mirror of
https://github.com/freebsd/freebsd-src
synced 2024-09-06 17:18:32 +00:00
![]() Clang 16 introduced a warning about single bit bitfields in structs, which is triggered by a declaration in bsnmp's snmpd.h: contrib/bsnmp/snmpd/trans_lsock.c:271:21: error: implicit truncation from 'int' to a one-bit wide bit-field changes value from 1 to -1 [-Werror,-Wsingle-bit-bitfield-constant-conversion] peer->input.stream = 1; ^ ~ Signed one-bit bitfields can only have values -1 and 0, but the intent here is to use the field as a boolean, so make it unsigned. MFC after: 3 days |
||
---|---|---|
.. | ||
action.c | ||
BEGEMOT-MIB.txt | ||
BEGEMOT-SNMPD.txt | ||
bsnmpd.1 | ||
config.c | ||
export.c | ||
FOKUS-MIB.txt | ||
main.c | ||
snmpd.config | ||
snmpd.h | ||
snmpd.sh | ||
snmpmod.3 | ||
snmpmod.h | ||
trans_inet.c | ||
trans_inet.h | ||
trans_lsock.c | ||
trans_lsock.h | ||
trans_udp.c | ||
trans_udp.h | ||
trap.c | ||
tree.def |