Browse code

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

- fix gcc 9.2 warning
- GH #2191

James Aimonetti authored on 08/01/2020 08:37:00
Showing 1 changed files
... ...
@@ -808,7 +808,7 @@ static inline char* shm_char_dup(const char *src)
808 808
 	}
809 809
 
810 810
 	len = strlen(src) + 1;
811
-	rval = shm_malloc(len);
811
+	rval = (char*)shm_malloc(len);
812 812
 	if (!rval) {
813 813
 		SHM_MEM_ERROR;
814 814
 		return NULL;