[vtk-developers] Warning in VTK

Andy Cedilnik Andy.Cedilnik at kitware.com
Thu Feb 21 09:12:51 EST 2002


Hello!

I have been building VTK on one computer using visual c++ and the
warning option /W4 (sort of like -Wall on unix). I got rid of most
of the warnings. The number went from 2k down to 40+. Most of the
warnings that are still there are:

warning C4127: conditional expression is constant

This warning is issued in the cases like:
	
while(1)
{
	// Do something
}

or

#define SOMETHING 1
...

if ( SOMETHING == 1 )
{
	// Do something
}

All these cases are valid code and should not be reported as warnings.
This is why I propose to put remove warning 4127 from compiling in the
file vtkWin32Header.h:

#pragma warning ( disable : 4127 )

Any objection?

				Andy Cedilnik




More information about the vtk-developers mailing list