Module: kamailio
Branch: master
Commit: ec8f7722b8e9380f1357796da33da735cfb72913
URL:
https://github.com/kamailio/kamailio/commit/ec8f7722b8e9380f1357796da33da73…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2017-04-24T15:00:30+02:00
app_sqlang: fixed compile warnings about unused code
---
Modified: src/modules/app_sqlang/app_sqlang_api.c
---
Diff:
https://github.com/kamailio/kamailio/commit/ec8f7722b8e9380f1357796da33da73…
Patch:
https://github.com/kamailio/kamailio/commit/ec8f7722b8e9380f1357796da33da73…
---
diff --git a/src/modules/app_sqlang/app_sqlang_api.c
b/src/modules/app_sqlang/app_sqlang_api.c
index e654cdc..d1c6b79 100644
--- a/src/modules/app_sqlang/app_sqlang_api.c
+++ b/src/modules/app_sqlang/app_sqlang_api.c
@@ -248,6 +248,7 @@ static int sqlang_isfunction(HSQUIRRELVM J, int idx)
}
}
+#if 0
static char* sqlang_safe_tostring(HSQUIRRELVM J, int idx)
{
const SQChar *s = NULL;
@@ -260,6 +261,7 @@ static char* sqlang_safe_tostring(HSQUIRRELVM J, int idx)
}
return (s)?(char*)s:"Error on sqlang";
}
+#endif
static int sqlang_gettype(HSQUIRRELVM J, int idx)
{
@@ -946,7 +948,6 @@ int app_sqlang_run_ex(sip_msg_t *msg, char *func, char *p1, char *p2,
{
int n;
int ret;
- str txt;
int top;
sip_msg_t *bmsg;
SQInteger rv;