summaryrefslogtreecommitdiffstats
path: root/lib/smux.h
diff options
context:
space:
mode:
authorDavid Lamparter <equinox@opensourcerouting.org>2015-03-04 06:44:57 +0100
committerDaniel Walton <dwalton@cumulusnetworks.com>2016-05-26 17:33:29 +0200
commit7e6350359a16036e225373f10721dfdb903ed202 (patch)
treede5eb69cb0f2f1847ae790eadf4cd918384dfb85 /lib/smux.h
parentwatchquagga: break excessively long help string (diff)
downloadfrr-7e6350359a16036e225373f10721dfdb903ed202.tar.xz
frr-7e6350359a16036e225373f10721dfdb903ed202.zip
snmp: fix warnings
batch-fix all warnings that come up when enabling AgentX SNMP support. Signed-off-by: David Lamparter <equinox@opensourcerouting.org> (cherry picked from commit dfee58f1d41a2e36c7f5f38a3ef5712224131824)
Diffstat (limited to 'lib/smux.h')
-rw-r--r--lib/smux.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/smux.h b/lib/smux.h
index 72b4eaf09..45e84eead 100644
--- a/lib/smux.h
+++ b/lib/smux.h
@@ -53,8 +53,8 @@ struct trap_object
/* Declare SMUX return value. */
#define SNMP_LOCAL_VARIABLES \
- static long snmp_int_val; \
- static struct in_addr snmp_in_addr_val;
+ static long snmp_int_val __attribute__ ((unused)); \
+ static struct in_addr snmp_in_addr_val __attribute__ ((unused));
#define SNMP_INTEGER(V) \
( \
@@ -106,7 +106,7 @@ extern int smux_trap (struct variable *, size_t,
const struct trap_object *, size_t,
u_char);
-extern int oid_compare (oid *, int, oid *, int);
+extern int oid_compare (const oid *, int, const oid *, int);
extern void oid2in_addr (oid [], int, struct in_addr *);
extern void *oid_copy (void *, const void *, size_t);
extern void oid_copy_addr (oid [], struct in_addr *, int);