tech-toolchain archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: ctype(3), again



On Mon, Jan 14, 2019 at 16:09:40 +0100, Martin Husemann wrote:

> On Mon, Jan 14, 2019 at 03:44:32PM +0100, Thomas Klausner wrote:
> > Is there something we can improve in the NetBSD headers so that clang
> > doesn't behave more pickily and gcc in this case?
> 
> Uhmmm, this may not be what you'd like to hear, but: gcc *not* warning in
> this case is a bug, isn't it? This used to work - what broke it (or why
> isn't it doing it in this concrete case)?

-Wsystem-headers

tolower() will be maccroexpanded with the #line directives of the form:

  # 666 "source.c" 3 4

added, and the 3 4 magic seems to indicate this comes from a system
header.  See do_linemarker() in dist/libcpp/directives.c

-uwe


Home | Main Index | Thread Index | Old Index