Commit 4f9dcb2c authored by Alessandro Rubini's avatar Alessandro Rubini

snmp: remove warnings

Signed-off-by: Alessandro Rubini's avatarAlessandro Rubini <rubini@gnudd.com>
parent 29c9860f
......@@ -8,7 +8,7 @@ CC = $(CROSS_COMPILE)gcc
LD = $(CROSS_COMPILE)ld
# defer running "net-snmp-config --cflags" so it is visible in make output
CFLAGS += -fPIC $$($(NET_SNMP_CONFIG) --cflags | sed s,-I/usr/include,,)
CFLAGS += -fPIC -Wall $$($(NET_SNMP_CONFIG) --cflags | sed s,-I/usr/include,,)
LDFLAGS = -shared $$($(NET_SNMP_CONFIG) --ldflags)
CFLAGS += -Iinclude -DWRS_WITH_SNMP_HACKISH_LOG=0
......
......@@ -123,8 +123,6 @@ wrsPstats_handler(netsnmp_mib_handler *handler,
netsnmp_request_info *request;
netsnmp_variable_list *requestvb;
netsnmp_table_request_info *table_info;
oid subid;
long state;
struct pstats_global_data *data = &pstats_global_data; /* a shorter name */
int counter;
......@@ -182,7 +180,6 @@ wrsPstats_next_entry( void **loop_context,
netsnmp_variable_list *index,
netsnmp_iterator_info *data)
{
long addr, port;
intptr_t i;
/* create the line ID from counter number */
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment