]> Savannah Git Hosting - gnulib.git/commit
Fix compilation errors with clang that masquerades as gcc 13.
authorBruno Haible <bruno@clisp.org>
Mon, 26 Aug 2024 19:13:50 +0000 (21:13 +0200)
committerBruno Haible <bruno@clisp.org>
Mon, 26 Aug 2024 19:13:50 +0000 (21:13 +0200)
commitbf7e2ebda2928c610b0d674bbe31aaa2878061bd
tree4c5d8eb16f3058c8551d65a26a76935bc6419ba7
parent467a5d31ce23bfeef9eca5d8f4000b442711bc67
Fix compilation errors with clang that masquerades as gcc 13.

Reported by Sam James and Paul Eggert.

* m4/gnulib-common.m4 (gl_COMMON_BODY): For _GL_GNUC_PREREQ, ignore the
values of __GNUC__ and __GNUC_MINOR__ defined by clang.
* lib/warn-on-use.h (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): Don't treat
clang like GCC.
* lib/wchar.in.h (wmemchr, wcschr, wcsrchr, wcspbrk, wcsstr): Disable
the _GL_CXXALIASWARN1 and _GL_CXXALIASWARN invocations for masquerading
clang++.
ChangeLog
lib/warn-on-use.h
lib/wchar.in.h
m4/gnulib-common.m4