Module: kamailio
Branch: master
Commit: c051cb8da9759676395603af1bfb4f1f26f9d2f6
URL:
https://github.com/kamailio/kamailio/commit/c051cb8da9759676395603af1bfb4f1…
Author: Victor Seva <linuxmaniac(a)torreviejawireless.org>
Committer: Victor Seva <linuxmaniac(a)torreviejawireless.org>
Date: 2015-05-21T23:16:09+02:00
snmpstats: clean gcc warnings
hashTable.c:168:22: warning: variable âpreviousRecordâ set but not used
[-Wunused-but-set-variable]
kamailioNet.c:973:18: warning: variable âvalueâ set but not used
[-Wunused-but-set-variable]
snmpSIPRegUserLookupTable.c:462:25: warning: variable âvarâ set but not used
[-Wunused-but-set-variable]
snmpSIPStatusCodesTable.c:493:30: warning: variable âvarâ set but not used
[-Wunused-but-set-variable]
---
Modified: modules/snmpstats/hashTable.c
Modified: modules/snmpstats/kamailioNet.c
Modified: modules/snmpstats/snmpSIPRegUserLookupTable.c
Modified: modules/snmpstats/snmpSIPStatusCodesTable.c
---
Diff:
https://github.com/kamailio/kamailio/commit/c051cb8da9759676395603af1bfb4f1…
Patch:
https://github.com/kamailio/kamailio/commit/c051cb8da9759676395603af1bfb4f1…
---
diff --git a/modules/snmpstats/hashTable.c b/modules/snmpstats/hashTable.c
index 1b391ca..69caf34 100644
--- a/modules/snmpstats/hashTable.c
+++ b/modules/snmpstats/hashTable.c
@@ -165,7 +165,6 @@ void deleteUser(hashSlot_t *theTable, char *aor, int hashTableSize)
int hashIndex = calculateHashSlot(aor, hashTableSize);
int searchStringLength = strlen(aor);
- aorToIndexStruct_t *previousRecord = theTable[hashIndex].first;
aorToIndexStruct_t *currentRecord = theTable[hashIndex].first;
while (currentRecord != NULL) {
@@ -227,7 +226,6 @@ void deleteUser(hashSlot_t *theTable, char *aor, int hashTableSize)
}
/* Advance to the next records. */
- previousRecord = currentRecord;
currentRecord = currentRecord->next;
}
diff --git a/modules/snmpstats/kamailioNet.c b/modules/snmpstats/kamailioNet.c
index 9269e52..3c2097b 100644
--- a/modules/snmpstats/kamailioNet.c
+++ b/modules/snmpstats/kamailioNet.c
@@ -977,11 +977,6 @@ handle_kamailioNetTcpKeepIdle(netsnmp_mib_handler *handler,
switch(reqinfo->mode) {
- struct cfg_group_tcp t;
- unsigned int value;
-
- tcp_options_get(&t);
- value = t.con_lifetime;
case MODE_GET:
snmp_set_var_typed_value(requests->requestvb, ASN_INTEGER,
(u_char *) &value, sizeof(int));
diff --git a/modules/snmpstats/snmpSIPRegUserLookupTable.c
b/modules/snmpstats/snmpSIPRegUserLookupTable.c
index fb70929..1f0281d 100644
--- a/modules/snmpstats/snmpSIPRegUserLookupTable.c
+++ b/modules/snmpstats/snmpSIPRegUserLookupTable.c
@@ -459,15 +459,12 @@ void kamailioSIPRegUserLookupTable_set_reserve2(
netsnmp_request_group *rg )
netsnmp_request_group_item *current;
- netsnmp_variable_list *var;
-
int rc;
rg->rg_void = rg->list->ri;
for( current = rg->list; current; current = current->next ) {
- var = current->ri->requestvb;
rc = SNMP_ERR_NOERROR;
switch(current->tri->colnum)
diff --git a/modules/snmpstats/snmpSIPStatusCodesTable.c
b/modules/snmpstats/snmpSIPStatusCodesTable.c
index ad7c600..0ff74ad 100644
--- a/modules/snmpstats/snmpSIPStatusCodesTable.c
+++ b/modules/snmpstats/snmpSIPStatusCodesTable.c
@@ -490,7 +490,6 @@ void kamailioSIPStatusCodesTable_set_reserve2( netsnmp_request_group
*rg )
(kamailioSIPStatusCodesTable_context *)rg->undo_info;
netsnmp_request_group_item *current;
- netsnmp_variable_list *var;
int rc;
@@ -498,7 +497,6 @@ void kamailioSIPStatusCodesTable_set_reserve2( netsnmp_request_group
*rg )
for( current = rg->list; current; current = current->next ) {
- var = current->ri->requestvb;
rc = SNMP_ERR_NOERROR;
switch(current->tri->colnum)