Jean-Marc Lasgouttes wrote:

> Le 11/01/2015 11:53, Georg Baum a écrit :
>> Because they are on by default in MSVC and off by default in gcc. You can
>> get similar ones with gcc by calling it with -Wconversion (but that
>> outputs many more).
> 
> gcc 4.9 has -Wfloat-conversion. I tried it, but it really gives many
> warnings (see below) and I am uncomfortable with using it.

IMHO these are worth fixing. All the integer truncation warnings of -
Wconversion would be worth fixing as well if we would expect indices towards 
4294967296, but I guess that this does not happen anywhere in LyX. In a 
different context I did already experience real bugs because of such a 
truncation.

> I wonder though why MSVC only gives a few of them.

I do not wonder at all about MSVC warnings anymore. Some are really good, 
others are crap and need to be disabled explicitly.


Georg

Reply via email to