Den 23-07-2015 kl. 07:57 skrev Gunnar Roth: > >> Am 23.07.2015 um 07:51 schrieb Bo Thorsen <b...@vikingsoft.eu >> <mailto:b...@vikingsoft.eu>>: >> >> Den 23-07-2015 kl. 00:07 skrev Thiago Macieira: >>>> Disabling C4244 /* conversion from 'type1' to 'type2', possible loss >>>> of data >>>>> */ is more than going to far. It is kind of sabotage imho. >>> Note that this does not apply to 64-bit to 32-bit conversions. Those >>> are still >>> active, so C4244 does not seem to apply to them. I don't know what it >>> applies >>> to. >> >> I think this one warns on "float f = 2.0;". >> >> In this particular instance, it's pretty dumb. 2.0 is perfectly fine >> inside a float. But it just warns every time you store a double in a >> float without trying to be clever about when you should receive the >> warning. >> > I think, reading documentation is better than thinking ;-) > > https://msdn.microsoft.com/en-us/library/2d7604yb.aspx
I know, but Thiago said he hadn't seen it actually do any warnings. And I agree with him that I haven't seen it warn about integer types. In one of my customer projects I ported their project to Windows and got thousands of the double to float warnings, which is why I mentioned that it certainly does do something. Bo Thorsen, Director, Viking Software. -- Viking Software Qt and C++ developers for hire http://www.vikingsoft.eu _______________________________________________ Interest mailing list Interest@qt-project.org http://lists.qt-project.org/mailman/listinfo/interest