On Thu, Mar 13, 2003 at 02:47:28PM +0100, Andre Poenitz wrote:

> > I asked about this on the gcc list, then realised it probably makes
> > sense: what if you compile lyx on a system where 'a' is > 128, and char
> > signed ? (in the general sense of course).
> 
> In this case a warning might be in order. However, the compiler knows that
> on my system 'a' is < 128. So there is no need to warn.

No. The idea of warnings is not just to warn about what will go wrong on
your system, but potential problems on other systems. There are a whole
class of warnings this rule applies to. This is why GCC is able to warn
about things that are supported in GNU C but not in the standard.

I'm not entirely sure moving -Wchar-subscripts into -Wall was a good
idea though.

regards
john

Reply via email to