Browse Source

Fix gcc-9 warning

Samuel Thibault 6 years ago
parent
commit
8f2ae1543f
1 changed files with 3 additions and 3 deletions
  1. 3 3
      include/starpu_stdlib.h

+ 3 - 3
include/starpu_stdlib.h

@@ -2,7 +2,7 @@
  *
  * Copyright (C) 2010-2013,2015-2017                      CNRS
  * Copyright (C) 2017                                     Inria
- * Copyright (C) 2010-2016                                Université de Bordeaux
+ * Copyright (C) 2010-2016,2019                           Université de Bordeaux
  *
  * StarPU is free software; you can redistribute it and/or modify
  * it under the terms of the GNU Lesser General Public License as published by
@@ -37,10 +37,10 @@ extern "C"
 
 void starpu_malloc_set_align(size_t align);
 
-int starpu_malloc(void **A, size_t dim) STARPU_ATTRIBUTE_ALLOC_SIZE(2);
+int starpu_malloc(void **A, size_t dim);
 int starpu_free(void *A);
 
-int starpu_malloc_flags(void **A, size_t dim, int flags) STARPU_ATTRIBUTE_ALLOC_SIZE(2);
+int starpu_malloc_flags(void **A, size_t dim, int flags);
 int starpu_free_flags(void *A, size_t dim, int flags);
 
 int starpu_memory_pin(void *addr, size_t size);