Implement multiple kind of workarounds for GCC 12

as it produces more false warnings

Include missing header in C++ mode
This commit is contained in:
Patrick Pelissier committed 2022-12-22 20:42:20 +01:00
1 parent 9da0d1d94b
commit f5bbc0a7fb
4 files changed
+16 -3

No files matched your search

+3 -1
View File
@@ -310,7 +310,9 @@
) \
) \
{ \
struct M_C(name, _s) *self = (struct M_C(name, _s) *)(void*)_self; \
/* Let's go through an uintptr_t to avoid [broken] aliasing detection by compiler */ \
uintptr_t __self = (uintptr_t) _self; \
struct M_C(name, _s) *self = (struct M_C(name, _s) *)(void*)__self; \
(void) self; /* maybe unused */ \
callback_core; \
} \