Fix compiler warnings with clang

This attribute only works on functions in clang, not function pointers.
This commit is contained in:
Brecht Van Lommel 2022-09-28 15:49:26 +02:00
parent fe19de5fcc
commit bb4e09ddc5
1 changed files with 1 additions and 1 deletions

View File

@ -46,7 +46,7 @@
#endif
/* the function return value points to memory (2 args for 'size * tot') */
#ifdef __GNUC__
#if defined(__GNUC__) && !defined(__clang__)
# define ATTR_ALLOC_SIZE(args...) __attribute__((alloc_size(args)))
#else
# define ATTR_ALLOC_SIZE(...)