remove unused attributes

Sun, 05 Jan 2025 12:59:01 +0100

author
Mike Becker <universe@uap-core.de>
date
Sun, 05 Jan 2025 12:59:01 +0100
changeset 1104
b03aee2cbb7f
parent 1103
7c1e322b9165
child 1105
5c16dc362684

remove unused attributes

src/allocator.c file | annotate | diff | comparison | revisions
--- 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