Fails to compile on fedora 35
ajayramaswamy opened this issue · comments
Ajay Ramaswamy commented
gcc -DHAVE_CONFIG_H -I. -g -O2 -MT utils.o -MD -MP -MF .deps/utils.Tpo -c -o utils.o utils.c
utils.c: In function ‘pmem’:
utils.c:89:3: warning: ‘mallinfo’ is deprecated [-Wdeprecated-declarations]
89 | minfo = mallinfo();
| ^~~~~
In file included from utils.c:28:
/usr/include/malloc.h:113:24: note: declared here
113 | extern struct mallinfo mallinfo (void) __THROW __MALLOC_DEPRECATED;
| ^~~~~~~~
so a quick fix for me