src/allocator.c

changeset 1104
b03aee2cbb7f
parent 1065
6eb7b54975ee
--- a/src/allocator.c	Sun Jan 05 12:41:43 2025 +0100
+++ b/src/allocator.c	Sun Jan 05 12:59:01 2025 +0100
@@ -30,7 +30,6 @@
 
 #include <errno.h>
 
-__attribute__((__malloc__, __alloc_size__(2)))
 static void *cx_malloc_stdlib(
         cx_attr_unused void *d,
         size_t n
@@ -38,7 +37,6 @@
     return malloc(n);
 }
 
-__attribute__((__warn_unused_result__, __alloc_size__(3)))
 static void *cx_realloc_stdlib(
         cx_attr_unused void *d,
         void *mem,
@@ -47,7 +45,6 @@
     return realloc(mem, n);
 }
 
-__attribute__((__malloc__, __alloc_size__(2, 3)))
 static void *cx_calloc_stdlib(
         cx_attr_unused void *d,
         size_t nelem,
@@ -56,7 +53,6 @@
     return calloc(nelem, n);
 }
 
-__attribute__((__nonnull__))
 static void cx_free_stdlib(
         cx_attr_unused void *d,
         void *mem

mercurial