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

Merge topic 'always-false'

20798b5d

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