Skip to content

Commit

Permalink
clang 15 fix: get rid of variable that is set but not used.
Browse files Browse the repository at this point in the history
  • Loading branch information
sobomax committed Mar 24, 2023
1 parent fdd4f76 commit 69737a8
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 8 deletions.
6 changes: 1 addition & 5 deletions modules/call_center/cc_db.c
Original file line number Diff line number Diff line change
Expand Up @@ -590,7 +590,7 @@ int cc_load_db_data( struct cc_data *data)
db_key_t columns[13];
db_res_t* res;
db_row_t* row;
int i, j, n;
int i, j;
str id,skill,cid;
str location;
unsigned int priority, wrapup, logstate, wrapup_end_time;
Expand Down Expand Up @@ -631,7 +631,6 @@ int cc_load_db_data( struct cc_data *data)

LM_DBG("%d records found in %.*s\n",
RES_ROW_N(res), cc_flow_table_name.len,cc_flow_table_name.s );
n = 0;

do {
for(i=0; i < RES_ROW_N(res); i++) {
Expand Down Expand Up @@ -705,7 +704,6 @@ int cc_load_db_data( struct cc_data *data)
id.len,id.s);
continue;
}
n++;
}
if (DB_CAPABILITY( cc_dbf, DB_CAP_FETCH)) {
if(cc_dbf.fetch_result(cc_db_handle, &res, CC_FETCH_ROWS)<0) {
Expand Down Expand Up @@ -748,7 +746,6 @@ int cc_load_db_data( struct cc_data *data)

LM_DBG("%d records found in %.*s\n",
RES_ROW_N(res), cc_agent_table_name.len,cc_agent_table_name.s );
n = 0;

do {
for(i=0; i < RES_ROW_N(res); i++) {
Expand Down Expand Up @@ -781,7 +778,6 @@ int cc_load_db_data( struct cc_data *data)
id.len,id.s);
continue;
}
n++;
}
if (DB_CAPABILITY( cc_dbf, DB_CAP_FETCH)) {
if(cc_dbf.fetch_result(cc_db_handle, &res, CC_FETCH_ROWS)<0) {
Expand Down
3 changes: 0 additions & 3 deletions modules/ldap/iniparser.c
Original file line number Diff line number Diff line change
Expand Up @@ -964,7 +964,6 @@ The returned dictionary must be freed using iniparser_free().
char val[ASCIILINESZ+1];
char * where ;
FILE * ini ;
int lineno ;

if ((ini=fopen(ininame, "r"))==NULL) {
return NULL ;
Expand All @@ -976,9 +975,7 @@ The returned dictionary must be freed using iniparser_free().
* Initialize a new dictionary entry
*/
d = dictionary_new(0);
lineno = 0 ;
while (fgets(lin, ASCIILINESZ, ini)!=NULL) {
lineno++ ;
where = strskp(lin); /* Skip leading spaces */
if (*where==';' || *where=='#' || *where==0)
continue ; /* Comment lines */
Expand Down

0 comments on commit 69737a8

Please sign in to comment.