HerculesWS/Hercules

Compile Warnings

tlacson7 opened this issue · 4 comments

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 commented

what hercules version you using?

what compiler version you using?

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 commented

what compiler version you using?

is it the gcc version? its gcc (GCC) 4.8.5 20150623 (Red Hat 4.8.5-44)