Commit 20798b5d authored by Sean McBride's avatar Sean McBride
Browse files

Use a more cannonical way to ignore a variable

Fixes:

warning: overlapping comparisons always evaluate to false [-Wtautological-overlap-compare]
parent 50d088ab
......@@ -43,12 +43,8 @@ const char inputDataStream[] =
// Test of contour/clip of vtkPolyhedron. uses input from http://www.vtk.org/Bug/view.php?id=15026
int TestPolyhedron3(int argc, char *argv[])
{
// the next two lines are only in the test to get rid of compiler warnings
// I cannot make the function without the parameters, because that is what
// is expected. At the same time, I also can't not reference them, because
// that give a warning.
if (argc < 0 && argc > 0) return 1; // reference one formal parameter
if (!argv && argv) return 1; // reference another formal parameter
(void)argc;
(void)argv;
vtkNew<vtkUnstructuredGridReader> reader;
reader->SetInputString(inputDataStream);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment