Module: kamailio
Branch: master
Commit: 0054b875045b4badfedd3e8424bf4772d6a9bc6b
URL:
https://github.com/kamailio/kamailio/commit/0054b875045b4badfedd3e8424bf477…
Author: Juha Heinanen <jh(a)tutpro.com>
Committer: Juha Heinanen <jh(a)tutpro.com>
Date: 2024-03-12T22:18:20+02:00
Avoid 'qm_strnstr' defined but not used warning
---
Modified: src/core/mem/q_malloc.c
---
Diff:
https://github.com/kamailio/kamailio/commit/0054b875045b4badfedd3e8424bf477…
Patch:
https://github.com/kamailio/kamailio/commit/0054b875045b4badfedd3e8424bf477…
---
diff --git a/src/core/mem/q_malloc.c b/src/core/mem/q_malloc.c
index aa68debdf30..5850c07a018 100644
--- a/src/core/mem/q_malloc.c
+++ b/src/core/mem/q_malloc.c
@@ -993,6 +993,7 @@ void qm_status(void *qmp)
}
+#ifdef DBG_QM_MALLOC
static void *qm_strnstr(const void *b1, int l1, const void *b2, int l2)
{
char *sp = (char *)b1;
@@ -1012,6 +1013,7 @@ static void *qm_strnstr(const void *b1, int l1, const void *b2, int
l2)
return NULL;
}
+#endif
void qm_status_filter(void *qmp, str *fmatch, FILE *fp)
{