2
0
Эх сурвалжийг харах

core: explicitly cast void* to char* in shm_char_dup()

- fix gcc 9.2 warning
- GH #2191
James Aimonetti 5 жил өмнө
parent
commit
e656ed7400
1 өөрчлөгдсөн 1 нэмэгдсэн , 1 устгасан
  1. 1 1
      src/core/ut.h

+ 1 - 1
src/core/ut.h

@@ -808,7 +808,7 @@ static inline char* shm_char_dup(const char *src)
 	}
 
 	len = strlen(src) + 1;
-	rval = shm_malloc(len);
+	rval = (char*)shm_malloc(len);
 	if (!rval) {
 		SHM_MEM_ERROR;
 		return NULL;