On 11/11/26 7:08 AM, Stuart Henderson wrote:
At least with clang, build does error out. I have no opinion whether
it's important or not though, so no problem as far as I'm concerned
to wait until after 5.10.

cc -MMD -MP -MF snmp_api.d -MT snmp_api.lo -I../include -I. -I../snmplib 
-D_GNU_SOURCE -D_ALL_SOURCE -D_THREAD_SAFE -D__EXTENSIONS__ -O2 -pipe -g 
-DNETSNMP_ENABLE_IPV6 -fno-strict-aliasing -DNETSNMP_REMOVE_U64 -O2 -pipe -g 
-Uopenbsd8 -Dopenbsd8=openbsd8 -DNO_LOCALE_NUMERIC -DNO_LOCALE_COLLATE 
-DNO_LOCALE_NUMERIC -DNO_LOCALE_COLLATE -DNO_LOCALE_MONETARY -DNO_LOCALE_TIME 
-DNO_LOCALE_MESSAGES -DLIBC_HANDLES_MISMATCHED_CTYPE -fno-strict-aliasing 
-fno-delete-null-pointer-checks -pipe -fstack-protector-strong 
-I/usr/local/include -I/usr/libdata/perl5/amd64-openbsd/CORE -c snmp_api.c 
-fPIC -DPIC -o .libs/snmp_api.o
snmp_api.c:3076:9: error: fallthrough annotation does not directly precede 
switch label
  3076 |         NETSNMP_FALLTHROUGH;
       |         ^
../include/net-snmp/net-snmp-config.h:2449:33: note: expanded from macro 
'NETSNMP_FALLTHROUGH'
  2449 | #    define NETSNMP_FALLTHROUGH __attribute__((__fallthrough__))
       |                                 ^
1 error generated.

That's unfortunate. The changes I think that are needed to fix the
compiler warnings for read-only mode are available here:
https://github.com/bvanassche/net-snmp/commits/master/

Bart.


_______________________________________________
Net-snmp-coders mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders

Reply via email to