Skip to content
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

Open
tlacson7 opened this issue Apr 19, 2022 · 4 comments
Open

Compile Warnings #3132

tlacson7 opened this issue Apr 19, 2022 · 4 comments

Comments

@tlacson7
Copy link

tlacson7 commented Apr 19, 2022

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));

`

@4144
Copy link
Contributor

4144 commented Apr 19, 2022

what hercules version you using?

what compiler version you using?

@tlacson7
Copy link
Author

tlacson7 commented Apr 19, 2022

latest sir [Release v2022.04.07]
centos-release-7-9.2009.1.el7.centos.x86_64
i just download and ./configure && make clean && make sql && make plugins

@4144
Copy link
Contributor

4144 commented Apr 19, 2022

what compiler version you using?

@tlacson7
Copy link
Author

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
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants