-
Notifications
You must be signed in to change notification settings - Fork 759
New issue
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
Compile Warnings #3132
Comments
what hercules version you using? what compiler version you using? |
latest sir [Release v2022.04.07] |
|
is it the gcc version? its gcc (GCC) 4.8.5 20150623 (Red Hat 4.8.5-44) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Describe the bug
I'm getting bunch of warnings when compiling at Centos 7 on the latest Herc
`
../common/memmgr.h:84:2: warning: 'returns_nonnull' attribute directive ignored [-Wattributes]
char *(*astrndup)(const char *p, size_t size, const char *file, int line, const char *func) attribute((nonnull (1))) GCCATTR ((returns_nonnull));
^
../common/memmgr.h:96:1: warning: 'returns_nonnull' attribute directive ignored [-Wattributes]
void *malloc_proxy(size_t size, const char *file, int line, const char *func) GCC11ATTR ((malloc, malloc (free_proxy, 1))) attribute ((alloc_size (1))) GCCATTR ((returns_nonnull));
^
../common/memmgr.h:97:1: warning: 'returns_nonnull' attribute directive ignored [-Wattributes]
void *calloc_proxy(size_t num, size_t size, const char *file, int line, const char *func) GCC11ATTR ((malloc, malloc (free_proxy, 1))) attribute ((alloc_size (1, 2))) GCCATTR ((returns_nonnull));
^
../common/memmgr.h:98:1: warning: 'returns_nonnull' attribute directive ignored [-Wattributes]
char *strdup_proxy(const char *p, const char *file, int line, const char *func) GCC11ATTR ((malloc, malloc (free_proxy, 1))) attribute((nonnull (1))) GCCATTR ((returns_nonnull));
^
../common/memmgr.h:99:1: warning: 'returns_nonnull' attribute directive ignored [-Wattributes]
char *strndup_proxy(const char *p, size_t size, const char *file, int line, const char *func) GCC11ATTR ((malloc, malloc (free_proxy, 1))) attribute((nonnull (1))) GCCATTR ((returns_nonnull));
`
The text was updated successfully, but these errors were encountered: