]> Savannah Git Hosting - gnulib.git/commit
string: Fix build error in C++ mode with clang (regression from today).
authorBruno Haible <bruno@clisp.org>
Mon, 10 Aug 2020 01:17:06 +0000 (03:17 +0200)
committerBruno Haible <bruno@clisp.org>
Mon, 10 Aug 2020 01:17:06 +0000 (03:17 +0200)
commit7fac3d3da0c24cd1e9cb344c622728c1a114788d
treeb7c8274806156f8584eb444838f303b39ff50f25
parent444acd314f6c4a1fb7ea7412a54b8ea5fc0ad7c2
string: Fix build error in C++ mode with clang (regression from today).

* lib/warn-on-use.h (_GL_WARN_ON_USE_CXX): Expect two rettype
parameters, one for GCC, one for clang.
* lib/c++defs.h (_GL_CXXALIASWARN1_2): Update.
* lib/string.in.h (strchr, strpbrk, strrchr): For clang, pass 'char *'
as return type.
ChangeLog
lib/c++defs.h
lib/string.in.h
lib/warn-on-use.h