https://gcc.gnu.org/bugzilla/show_bug.cgi?id=113706
Zhongteng Gui <dragon-archer at outlook dot com> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |dragon-archer at outlook dot
com
--- Comment #15 from Zhongteng Gui <dragon-archer at outlook dot com> ---
Hi, mingw-w64 recently implemented to provide 2 versions of memchr for C++
(argument and return type are both const void* or both void*), and we found
that GCC 7-14 warns about `extern "C" const void* memchr(const void*, int,
size_t);`, which seemes to be the same issue here.
warning: declaration of 'const void* memchr(const void*, int, size_t)'
conflicts with built-in declaration 'void* memchr(const void*, int, long
unsigned int)' [-Wbuiltin-declaration-mismatch]
I'd appreciate if you could backport this patch to GCC 13.5 and GCC 14.5,
thanks!