FreeBSD: unknown attribute 'unity_malloc' ignored

Hal Murray halmurray at sonic.net
Thu Jan 19 09:46:55 UTC 2023


Anybody recognize this tangle?

I have several machines running FreeBSD 13.1 but only one of them gets that warning.  It gets 7 copies of it, all from /usr/local/ssl/include/openssl/crypto.h

Ahhh  That system is running OpenSSL 3.1.0-beta1

In file included from ../../tests/common/tests_main.c:3:
In file included from ../../tests/common/tests_main.h:10:
In file included from ../../include/ntp_auth.h:7:
In file included from /usr/local/ssl/include/openssl/evp.h:30:
In file included from /usr/local/ssl/include/openssl/bio.h:30:
/usr/local/ssl/include/openssl/crypto.h:344:1: warning: unknown attribute 'unity
_malloc' ignored [-Wunknown-attributes]
OSSL_CRYPTO_ALLOC void *CRYPTO_malloc(size_t num, const char *file, int line);
^~~~~~~~~~~~~~~~~
/usr/local/ssl/include/openssl/macros.h:317:45: note: expanded from macro 'OSSL_
CRYPTO_ALLOC'
#   define OSSL_CRYPTO_ALLOC __attribute__((malloc))
                                            ^~~~~~
../../tests/unity/unity_memory.h:41:17: note: expanded from macro 'malloc'
#define malloc  unity_malloc
                ^~~~~~~~~~~~


-- 
These are my opinions.  I hate spam.





More information about the devel mailing list