Commit 4f679659 authored by Robert Maynard's avatar Robert Maynard Committed by Kitware Robot
Browse files

Merge topic 'always-false'


 Use a more cannonical way to ignore a variable
Acked-by: Kitware Robot's avatarKitware Robot <>
Merge-request: !1638
parents 3fa4bc98 20798b5d
...@@ -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