./print-snmp.c:1200:17: warning: variable 'ind' set but not used
[-Wunused-but-set-variable]
clang version 15.0.1
Target: aarch64-portbld-freebsd13.1
(cherry picked from commit
eaaa2f168ae11c9de618484c373c1e06be37781a)
u_short pduid, const u_char *np, u_int length)
{
struct be elem;
- int count = 0, ind;
+ int count = 0;
#ifdef USE_LIBSMI
SmiNode *smiNode = NULL;
#endif
length = elem.asnlen;
np = (const u_char *)elem.data.raw;
- for (ind = 1; length > 0; ind++) {
+ while (length) {
const u_char *vbend;
u_int vblength;