소스 검색

Avoid 'qm_strnstr' defined but not used warning

Juha Heinanen 1 년 전
부모
커밋
0054b87504
1개의 변경된 파일2개의 추가작업 그리고 0개의 파일을 삭제
  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)
 {