Pārlūkot izejas kodu

Avoid 'qm_strnstr' defined but not used warning

Juha Heinanen 1 gadu atpakaļ
vecāks
revīzija
0054b87504
1 mainītis faili ar 2 papildinājumiem un 0 dzēšanām
  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)
 {