Explorar o código

Add macro _STARPU_MALLOC_CAST when checking prio_list

Corentin Salingue %!s(int64=8) %!d(string=hai) anos
pai
achega
d825aa2667
Modificáronse 1 ficheiros con 1 adicións e 0 borrados
  1. 1 0
      tests/model-checking/prio_list.c

+ 1 - 0
tests/model-checking/prio_list.c

@@ -15,6 +15,7 @@
  */
 
 #define _STARPU_MALLOC(p, s) do {p = malloc(s);} while (0)
+#define _STARPU_MALLOC_CAST(p, s, t) do {p = (t) malloc(s);} while (0)
 #define STARPU_ATTRIBUTE_UNUSED __attribute((__unused__))
 
 #ifndef NOCONFIG