Module: kamailio
Branch: master
Commit: 5b1355aa3d9404a5165b0afbfdac384fe9cf785a
URL:
https://github.com/kamailio/kamailio/commit/5b1355aa3d9404a5165b0afbfdac384…
Author: Victor Seva <linuxmaniac(a)torreviejawireless.org>
Committer: Victor Seva <linuxmaniac(a)torreviejawireless.org>
Date: 2018-05-15T22:11:52+02:00
db2_ldap: fix compilation warning
ld_fld.c:831:19: warning: unused function
'db_double2ldap_str' [-Wunused-function]
static inline int db_double2ldap_str(struct sbuf* buf, db_fld_t* fld)
^
1 warning generated.
---
Modified: src/modules/db2_ldap/ld_fld.c
---
Diff:
https://github.com/kamailio/kamailio/commit/5b1355aa3d9404a5165b0afbfdac384…
Patch:
https://github.com/kamailio/kamailio/commit/5b1355aa3d9404a5165b0afbfdac384…
---
diff --git a/src/modules/db2_ldap/ld_fld.c b/src/modules/db2_ldap/ld_fld.c
index 564762b64a..867c873e8f 100644
--- a/src/modules/db2_ldap/ld_fld.c
+++ b/src/modules/db2_ldap/ld_fld.c
@@ -828,7 +828,7 @@ static inline int db_float2ldap_str(struct sbuf* buf, db_fld_t* fld)
}
-static inline int db_double2ldap_str(struct sbuf* buf, db_fld_t* fld)
+/*static inline int db_double2ldap_str(struct sbuf* buf, db_fld_t* fld)
{
char tmp[16];
int len;
@@ -839,7 +839,7 @@ static inline int db_double2ldap_str(struct sbuf* buf, db_fld_t* fld)
return -1;
}
return sb_add(buf, tmp, len);
-}
+}*/
static inline int ld_db2ldap(struct sbuf* buf, db_fld_t* fld) {
struct ld_fld* lfld;