[sr-dev] git:5.3:404c3ee3: utils/db_berkeley: fixed unused var
Henning Westerholt
hw at skalatan.de
Mon Nov 18 20:09:50 CET 2019
Module: kamailio
Branch: 5.3
Commit: 404c3ee38b6158d755f196c66f69eeee234f97e2
URL: https://github.com/kamailio/kamailio/commit/404c3ee38b6158d755f196c66f69eeee234f97e2
Author: Sergey Safarov <s.safarov at gmail.com>
Committer: Henning Westerholt <hw at skalatan.de>
Date: 2019-11-18T20:09:38+01:00
utils/db_berkeley: fixed unused var
kambdb_recover.c: In function 'load_metadata_columns':
kambdb_recover.c:819:6: warning: variable 'ret' set but not used [-Wunused-but-set-variable]
819 | int ret,n,len;
| ^~~
(cherry picked from commit 792261b43d74518e6d67f807df60b6622ba2d9f8)
---
Modified: utils/db_berkeley/kambdb_recover.c
---
Diff: https://github.com/kamailio/kamailio/commit/404c3ee38b6158d755f196c66f69eeee234f97e2.diff
Patch: https://github.com/kamailio/kamailio/commit/404c3ee38b6158d755f196c66f69eeee234f97e2.patch
---
diff --git a/utils/db_berkeley/kambdb_recover.c b/utils/db_berkeley/kambdb_recover.c
index 30733a01ff..a3fa82dfd6 100644
--- a/utils/db_berkeley/kambdb_recover.c
+++ b/utils/db_berkeley/kambdb_recover.c
@@ -816,11 +816,11 @@ table_p create_table(char *_s)
*/
int load_metadata_columns(table_p _tp, char* line)
{
- int ret,n,len;
+ int n,len;
char *s = NULL;
char cn[64], ct[16];
column_p col;
- ret = n = len = 0;
+ n = len = 0;
if(!_tp) return -1;
if(_tp->ncols!=0) return 0;
More information about the sr-dev
mailing list