Commit 25123124 authored by David Gobbi's avatar David Gobbi Committed by Kitware Robot
Browse files

Merge topic 'pointer-test-clang-warnings'

c8ece60b COMP: Fix TestSmartPointer warning on MSVC.
parents 87db953a c8ece60b
......@@ -43,30 +43,30 @@ int TestSmartPointer(int,char *[])
vtkSmartPointer<vtkDataArray> da1(da2);
da1 = ia;
da1 = da2;
testbits = (testbits << 1) | (da2 == da3);
testbits = (testbits << 1) | (da2 != da3);
testbits = (testbits << 1) | (da2 < da3);
testbits = (testbits << 1) | (da2 <= da3);
testbits = (testbits << 1) | (da2 > da3);
testbits = (testbits << 1) | (da2 >= da3);
testbits = (testbits << 1) | (ia == da3);
testbits = (testbits << 1) | (ia != da3);
testbits = (testbits << 1) | (ia < da3);
testbits = (testbits << 1) | (ia <= da3);
testbits = (testbits << 1) | (ia > da3);
testbits = (testbits << 1) | (ia >= da3);
testbits = (testbits << 1) | (da2 == ia);
testbits = (testbits << 1) | (da2 != ia);
testbits = (testbits << 1) | (da2 < ia);
testbits = (testbits << 1) | (da2 <= ia);
testbits = (testbits << 1) | (da2 > ia);
testbits = (testbits << 1) | (da2 >= ia);
testbits = (testbits << 1) | (da1 == 0);
testbits = (testbits << 1) | (da1 != 0);
testbits = (testbits << 1) | (da1 < 0);
testbits = (testbits << 1) | (da1 <= 0);
testbits = (testbits << 1) | (da1 > 0);
testbits = (testbits << 1) | (da1 >= 0);
testbits = (testbits << 1) | ((da2 == da3) ? 1 : 0);
testbits = (testbits << 1) | ((da2 != da3) ? 1 : 0);
testbits = (testbits << 1) | ((da2 < da3) ? 1 : 0);
testbits = (testbits << 1) | ((da2 <= da3) ? 1 : 0);
testbits = (testbits << 1) | ((da2 > da3) ? 1 : 0);
testbits = (testbits << 1) | ((da2 >= da3) ? 1 : 0);
testbits = (testbits << 1) | ((ia == da3) ? 1 : 0);
testbits = (testbits << 1) | ((ia != da3) ? 1 : 0);
testbits = (testbits << 1) | ((ia < da3) ? 1 : 0);
testbits = (testbits << 1) | ((ia <= da3) ? 1 : 0);
testbits = (testbits << 1) | ((ia > da3) ? 1 : 0);
testbits = (testbits << 1) | ((ia >= da3) ? 1 : 0);
testbits = (testbits << 1) | ((da2 == ia) ? 1 : 0);
testbits = (testbits << 1) | ((da2 != ia) ? 1 : 0);
testbits = (testbits << 1) | ((da2 < ia) ? 1 : 0);
testbits = (testbits << 1) | ((da2 <= ia) ? 1 : 0);
testbits = (testbits << 1) | ((da2 > ia) ? 1 : 0);
testbits = (testbits << 1) | ((da2 >= ia) ? 1 : 0);
testbits = (testbits << 1) | ((da1 == 0) ? 1 : 0);
testbits = (testbits << 1) | ((da1 != 0) ? 1 : 0);
testbits = (testbits << 1) | ((da1 < 0) ? 1 : 0);
testbits = (testbits << 1) | ((da1 <= 0) ? 1 : 0);
testbits = (testbits << 1) | ((da1 > 0) ? 1 : 0);
testbits = (testbits << 1) | ((da1 >= 0) ? 1 : 0);
if (testbits != correctbits)
{
unsigned int diffbits = (testbits ^ correctbits);
......
......@@ -43,30 +43,30 @@ int TestWeakPointer(int,char *[])
vtkWeakPointer<vtkDataArray> da1(da2);
da1 = ia;
da1 = da2;
testbits = (testbits << 1) | (da2 == da3);
testbits = (testbits << 1) | (da2 != da3);
testbits = (testbits << 1) | (da2 < da3);
testbits = (testbits << 1) | (da2 <= da3);
testbits = (testbits << 1) | (da2 > da3);
testbits = (testbits << 1) | (da2 >= da3);
testbits = (testbits << 1) | (ia == da3);
testbits = (testbits << 1) | (ia != da3);
testbits = (testbits << 1) | (ia < da3);
testbits = (testbits << 1) | (ia <= da3);
testbits = (testbits << 1) | (ia > da3);
testbits = (testbits << 1) | (ia >= da3);
testbits = (testbits << 1) | (da2 == ia);
testbits = (testbits << 1) | (da2 != ia);
testbits = (testbits << 1) | (da2 < ia);
testbits = (testbits << 1) | (da2 <= ia);
testbits = (testbits << 1) | (da2 > ia);
testbits = (testbits << 1) | (da2 >= ia);
testbits = (testbits << 1) | (da1 == 0);
testbits = (testbits << 1) | (da1 != 0);
testbits = (testbits << 1) | (da1 < 0);
testbits = (testbits << 1) | (da1 <= 0);
testbits = (testbits << 1) | (da1 > 0);
testbits = (testbits << 1) | (da1 >= 0);
testbits = (testbits << 1) | ((da2 == da3) ? 1 : 0);
testbits = (testbits << 1) | ((da2 != da3) ? 1 : 0);
testbits = (testbits << 1) | ((da2 < da3) ? 1 : 0);
testbits = (testbits << 1) | ((da2 <= da3) ? 1 : 0);
testbits = (testbits << 1) | ((da2 > da3) ? 1 : 0);
testbits = (testbits << 1) | ((da2 >= da3) ? 1 : 0);
testbits = (testbits << 1) | ((ia == da3) ? 1 : 0);
testbits = (testbits << 1) | ((ia != da3) ? 1 : 0);
testbits = (testbits << 1) | ((ia < da3) ? 1 : 0);
testbits = (testbits << 1) | ((ia <= da3) ? 1 : 0);
testbits = (testbits << 1) | ((ia > da3) ? 1 : 0);
testbits = (testbits << 1) | ((ia >= da3) ? 1 : 0);
testbits = (testbits << 1) | ((da2 == ia) ? 1 : 0);
testbits = (testbits << 1) | ((da2 != ia) ? 1 : 0);
testbits = (testbits << 1) | ((da2 < ia) ? 1 : 0);
testbits = (testbits << 1) | ((da2 <= ia) ? 1 : 0);
testbits = (testbits << 1) | ((da2 > ia) ? 1 : 0);
testbits = (testbits << 1) | ((da2 >= ia) ? 1 : 0);
testbits = (testbits << 1) | ((da1 == 0) ? 1 : 0);
testbits = (testbits << 1) | ((da1 != 0) ? 1 : 0);
testbits = (testbits << 1) | ((da1 < 0) ? 1 : 0);
testbits = (testbits << 1) | ((da1 <= 0) ? 1 : 0);
testbits = (testbits << 1) | ((da1 > 0) ? 1 : 0);
testbits = (testbits << 1) | ((da1 >= 0) ? 1 : 0);
if (testbits != correctbits)
{
unsigned int diffbits = (testbits ^ correctbits);
......
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