Browse Source

Avoid 'qm_strnstr' defined but not used warning

Juha Heinanen 1 năm trước cách đây
mục cha
commit
0054b87504
1 tập tin đã thay đổi với 2 bổ sung0 xóa
  1. 2 0
      src/core/mem/q_malloc.c

+ 2 - 0
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)
 {