asan: warning on newer versions of gcc
In file included from contrib/ucw/mempool.c:19:
In function 'mp_new_big_chunk',
inlined from 'mp_alloc_internal' at contrib/ucw/mempool.c:272:11:
./contrib/asan.h:33:5: warning: 'data' may be used uninitialized [-Wmaybe-uninitialized]
33 | __asan_poison_memory_region((addr), (size))
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
contrib/ucw/mempool.c:95:9: note: in expansion of macro 'ASAN_POISON_MEMORY_REGION'
95 | ASAN_POISON_MEMORY_REGION(data, size);
| ^~~~~~~~~~~~~~~~~~~~~~~~~
./contrib/asan.h: In function 'mp_alloc_internal':
./contrib/asan.h:26:8: note: by argument 1 of type 'const volatile void *' to '__asan_poison_memory_region' declared here
26 | void __asan_poison_memory_region(void const volatile *addr, size_t size);
There's pragmas in contrib/asan.h to disable the faulty diagnostic, but GCC seems to ignore them.