blob: cdb13502c147412644dc4b4ee1a5ae13f4e842ab (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
|
test39.cpp: In member function 'void Object1::func1(Data1*) const':
test39.cpp:63:24: warning: Using variable 'ptr1' without checking for null pointer
ptr1->val = 100;
^
test39.cpp:63:24: warning: Using variable 'ptr1' without checking for null pointer
test39.cpp:73:22: warning: Using variable 'ptr1' without checking for null pointer
ptr1->val = 0;
^
test39.cpp:73:22: warning: Using variable 'ptr1' without checking for null pointer
test39.cpp: In member function 'void Object1::func2(Data1*) const':
test39.cpp:96:51: warning: Using variable 'ptr1' without checking for null pointer
ptr1->ptrval = reinterpret_cast<Data1*>(1);
^
test39.cpp:96:15: warning: Using variable 'ptr1' without checking for null pointer
ptr1->ptrval = reinterpret_cast<Data1*>(1);
^
test39.cpp: In member function 'void Object1::func3(Data1*) const':
test39.cpp:119:25: warning: Using variable 'ptr1' without checking for null pointer
ptr1->ptrval = 0;
^
test39.cpp:119:15: warning: Using variable 'ptr1' without checking for null pointer
ptr1->ptrval = 0;
^
test39.cpp: In member function 'void Object1::func4() const':
test39.cpp:152:16: warning: unused variable 'ptr1' [-Wunused-variable]
Data1 *ptr1 = &data2;
^
test39.cpp: In member function 'void Object1::func5() const':
test39.cpp:175:15: warning: unused variable 'data2' [-Wunused-variable]
Data1 data2;
^
test39.cpp:195:16: warning: unused variable 'ptr1' [-Wunused-variable]
Data1 *ptr1 = reinterpret_cast<Data1*>(&data1);
^
test39.cpp: In member function 'int Object1::func6(Data1*) const':
test39.cpp:218:13: warning: variable 'arr' set but not used [-Wunused-but-set-variable]
int arr[10];
^
test39.cpp:228:27: warning: Using variable 'ptr1' without checking for null pointer
arr[1] = ptr1->val;
^
test39.cpp:238:22: warning: Using variable 'ptr1' without checking for null pointer
return ptr1->val;
^
test39.cpp: In member function 'void Object1::func7(Data1*, Data1*) const':
test39.cpp:252:23: warning: Using variable 'ptr1' without checking for null pointer
if (ptr1->val == ptr2->val)
^
test39.cpp:252:23: warning: Using variable 'ptr2' without checking for null pointer
|