We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
./utils.h:62:7: error: 'malloc' attribute takes no arguments void *MALLOC_FREE NONNULL do_nofail(void *ptr, const char *file, const int line) ^ ./utils.h:20:37: note: expanded from macro 'MALLOC_FREE' # define MALLOC_FREE __attribute__((malloc(free))) ^ 1 error generated.
this is because clang doesn't implement the malloc (deallocator) attribute (ref https://gcc.gnu.org/onlinedocs/gcc/Common-Function-Attributes.html), just malloc. this was added in f01f8d4 . ref for llvm: llvm/llvm-project#51607 llvm/llvm-project#53152
malloc (deallocator)
malloc
The text was updated successfully, but these errors were encountered:
Please send a patch.
Sorry, something went wrong.
I've submitted a patch #156
I have implemented a slightly different solution.
Successfully merging a pull request may close this issue.
this is because clang doesn't implement the
malloc (deallocator)
attribute (ref https://gcc.gnu.org/onlinedocs/gcc/Common-Function-Attributes.html), justmalloc
. this was added in f01f8d4 . ref for llvm: llvm/llvm-project#51607 llvm/llvm-project#53152The text was updated successfully, but these errors were encountered: