diff options
Diffstat (limited to 'test/test12-04.txt')
-rw-r--r-- | test/test12-04.txt | 42 |
1 files changed, 21 insertions, 21 deletions
diff --git a/test/test12-04.txt b/test/test12-04.txt index 6f02bd5..ccc6c40 100644 --- a/test/test12-04.txt +++ b/test/test12-04.txt @@ -2,57 +2,57 @@ test12.cpp: In member function 'void Object1::func1(Data1*, Data1*)': test12.cpp:13:13: warning: Using variable 'ptr2' without checking for null pointer int val1 = ptr1 ? ptr1->val : ptr2->val; ^ -test12.cpp:13:13: warning: Using field 'ptr2' without checking for null pointer test12.cpp:13:13: warning: Using variable 'ptr2' without checking for null pointer -test12.cpp:13:13: warning: Using field 'ptr2' without checking for null pointer test12.cpp:13:13: warning: Using variable 'ptr2' without checking for null pointer -test12.cpp:13:13: warning: Using field 'ptr2' without checking for null pointer +test12.cpp:13:13: warning: Using variable 'ptr2' without checking for null pointer +test12.cpp:13:13: warning: Using variable 'ptr2' without checking for null pointer +test12.cpp:13:13: warning: Using variable 'ptr2' without checking for null pointer test12.cpp: In member function 'void Object1::func2(Data1*, Data1*)': test12.cpp:18:13: warning: Using variable 'ptr1' without checking for null pointer int val1 = (!ptr1) ? ptr1->val : ptr2->val; ^ -test12.cpp:18:13: warning: Using field 'ptr1' without checking for null pointer +test12.cpp:18:13: warning: Using variable 'ptr1' without checking for null pointer test12.cpp:18:13: warning: Using variable 'ptr2' without checking for null pointer -test12.cpp:18:13: warning: Using field 'ptr2' without checking for null pointer +test12.cpp:18:13: warning: Using variable 'ptr2' without checking for null pointer +test12.cpp:18:13: warning: Using variable 'ptr1' without checking for null pointer test12.cpp:18:13: warning: Using variable 'ptr1' without checking for null pointer -test12.cpp:18:13: warning: Using field 'ptr1' without checking for null pointer test12.cpp:18:13: warning: Using variable 'ptr2' without checking for null pointer -test12.cpp:18:13: warning: Using field 'ptr2' without checking for null pointer +test12.cpp:18:13: warning: Using variable 'ptr2' without checking for null pointer +test12.cpp:18:13: warning: Using variable 'ptr1' without checking for null pointer test12.cpp:18:13: warning: Using variable 'ptr1' without checking for null pointer -test12.cpp:18:13: warning: Using field 'ptr1' without checking for null pointer test12.cpp:18:13: warning: Using variable 'ptr2' without checking for null pointer -test12.cpp:18:13: warning: Using field 'ptr2' without checking for null pointer +test12.cpp:18:13: warning: Using variable 'ptr2' without checking for null pointer test12.cpp: In member function 'void Object1::func3(Data1*, Data1*)': test12.cpp:23:13: warning: Using variable 'ptr2' without checking for null pointer int val1 = (ptr1 && !ptr2) ? ptr1->val : ptr2->val; ^ -test12.cpp:23:13: warning: Using field 'ptr2' without checking for null pointer test12.cpp:23:13: warning: Using variable 'ptr2' without checking for null pointer -test12.cpp:23:13: warning: Using field 'ptr2' without checking for null pointer test12.cpp:23:13: warning: Using variable 'ptr2' without checking for null pointer -test12.cpp:23:13: warning: Using field 'ptr2' without checking for null pointer +test12.cpp:23:13: warning: Using variable 'ptr2' without checking for null pointer +test12.cpp:23:13: warning: Using variable 'ptr2' without checking for null pointer +test12.cpp:23:13: warning: Using variable 'ptr2' without checking for null pointer test12.cpp: In member function 'void Object1::func4(Data1*, Data1*)': -test12.cpp:28:35: warning: Using parameter 'ptr2' without checking for null pointer +test12.cpp:28:35: warning: Using variable 'ptr2' without checking for null pointer if ((ptr1 ? ptr1 : ptr2)->val == 100) ^ -test12.cpp:30:28: warning: Using parameter 'ptr1' without checking for null pointer +test12.cpp:30:28: warning: Using variable 'ptr1' without checking for null pointer ptr1->val = 200; ^ -test12.cpp:30:28: warning: Using field 'ptr1' without checking for null pointer -test12.cpp:34:28: warning: Using parameter 'ptr2' without checking for null pointer +test12.cpp:30:28: warning: Using variable 'ptr1' without checking for null pointer +test12.cpp:34:28: warning: Using variable 'ptr2' without checking for null pointer ptr2->val = 300; ^ -test12.cpp:34:28: warning: Using field 'ptr2' without checking for null pointer +test12.cpp:34:28: warning: Using variable 'ptr2' without checking for null pointer test12.cpp: In member function 'void Object1::func5(Data1*, Data1*)': -test12.cpp:40:41: warning: Using parameter 'ptr2' without checking for null pointer +test12.cpp:40:41: warning: Using variable 'ptr2' without checking for null pointer int tmp = (ptr1 ? ptr1 : ptr2)->val; ^ test12.cpp: In member function 'void Object1::func7(Data1*, Data1*)': test12.cpp:50:13: warning: Using variable 'ptr2' without checking for null pointer int tmp = ptr1 ? ptr1->val : (!ptr2 ? ptr2->val : 0); ^ -test12.cpp:50:13: warning: Using field 'ptr2' without checking for null pointer test12.cpp:50:13: warning: Using variable 'ptr2' without checking for null pointer -test12.cpp:50:13: warning: Using field 'ptr2' without checking for null pointer test12.cpp:50:13: warning: Using variable 'ptr2' without checking for null pointer -test12.cpp:50:13: warning: Using field 'ptr2' without checking for null pointer +test12.cpp:50:13: warning: Using variable 'ptr2' without checking for null pointer +test12.cpp:50:13: warning: Using variable 'ptr2' without checking for null pointer +test12.cpp:50:13: warning: Using variable 'ptr2' without checking for null pointer |