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

Use a more cannonical way to ignore a variable


warning: overlapping comparisons always evaluate to false [-Wtautological-overlap-compare]
parent 50d088ab
...@@ -43,12 +43,8 @@ const char inputDataStream[] = ...@@ -43,12 +43,8 @@ const char inputDataStream[] =
// Test of contour/clip of vtkPolyhedron. uses input from // Test of contour/clip of vtkPolyhedron. uses input from
int TestPolyhedron3(int argc, char *argv[]) int TestPolyhedron3(int argc, char *argv[])
{ {
// the next two lines are only in the test to get rid of compiler warnings (void)argc;
// I cannot make the function without the parameters, because that is what (void)argv;
// 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
vtkNew<vtkUnstructuredGridReader> reader; vtkNew<vtkUnstructuredGridReader> reader;
reader->SetInputString(inputDataStream); reader->SetInputString(inputDataStream);
Supports Markdown
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