Paul Eggert wrote:
> PS. There are also a bunch of GCC warnings like this:
> 
> argp-parse.c:730:27: warning: call to 'strchr' declared with attribute 
> warning: strchr cannot work correctly on character strings in some 
> multibyte locales - use mbschr if you care about internationalization 
> [-Wattribute-warning]
> 
> which I assume are irrelevant to this issue. These warnings perhaps 
> should be in a different category than GNULIB_POSIXCHECK as they are 
> about multibyte usage not about POSIX compatibility. They're surely 
> false alarms for Gnulib itself.

Yes, these warnings "if you care about internationalization" produce
many false alarms, both in Gnulib itself and in application code.
The reason is that for _some_ arguments of, say, strchr, there is no
problem, whereas for other sets of arguments there is a problem.

Any ideas (maybe using some tools from the clang ecosystem?) for
reducing the false alarms?

Just introducing several classes of warnings would not solve the
problem, IMO, since no GNU package is supposed to malfunction in
some locales.

Bruno




Reply via email to