Selaa lähdekoodia

Add macro _STARPU_MALLOC_CAST when checking prio_list

Corentin Salingue 8 vuotta sitten
vanhempi
commit
d825aa2667
1 muutettua tiedostoa jossa 1 lisäystä ja 0 poistoa
  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