/Wp64 switch + /we<xxxx> generates new errors

Porting C++ to x64 with DevStudio2005 VC8...

Having cleaned up all the warnings generated by the /Wp64 switch, while still building for x86, the next phase is to turn warnings 4244, 4311, & 4312 into errors via the /wexxxx switch so that no new such problems could creep in without being noticed & fixed immediately.

However.....what happens with these switches added is that entirely NEW 4244 errors appear! With /we4244, VC8 now generates errors on assigning int->short, int->char etc i.e. truncations completely unrelated to the x64 port.

Does anyone know if there is any way to prevent this

Anyone know of a method of effectively making /Wp64 generate errors instead of warnings without any other side effects like those

Thanks.

(also posted in
MSDN Forums Visual C# Visual C# General)



Answer this question

/Wp64 switch + /we<xxxx> generates new errors

  • /Wp64 switch + /we<xxxx> generates new errors