Commit c7b9260
COMP: Fix unused parameter warnings in
Fix unused parameter warnings in `vtkParallelTransportTest1.cxx`:
- Remove the unused `lineDirection` variable.
- Make use of the `tangentsArray` variable by querying its contents
using the index and print them.
Fixes:
```
/usr/src/Slicer-build/vtkAddon/Testing/vtkParallelTransportTest1.cxx:
In function ‘int vtkParallelTransportTest1(int, char**)’:
/usr/src/Slicer-build/vtkAddon/Testing/vtkParallelTransportTest1.cxx:100:21:
warning: unused variable ‘tangentsArray’ [-Wunused-variable]
vtkDoubleArray* tangentsArray = vtkDoubleArray::SafeDownCast(pointData->GetArray("Tangents"));
^~~~~~~~~~~~~
/usr/src/Slicer-build/vtkAddon/Testing/vtkParallelTransportTest1.cxx:38:10:
warning: unused variable ‘lineDirection’ [-Wunused-variable]
double lineDirection[3] = { 0.0, 0.0, 1.0 };
^~~~~~~~~~~~~
```
https://github.com/Slicer/Slicer/actions/runs/6950843491/job/18911721210#step:4:2749vtkParallelTransportTest1.cxx
1 parent 84c1a4d commit c7b9260
1 file changed
+3
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
35 | 35 | | |
36 | 36 | | |
37 | 37 | | |
38 | | - | |
39 | 38 | | |
40 | 39 | | |
41 | 40 | | |
| |||
106 | 105 | | |
107 | 106 | | |
108 | 107 | | |
| 108 | + | |
| 109 | + | |
109 | 110 | | |
110 | 111 | | |
111 | 112 | | |
| |||
117 | 118 | | |
118 | 119 | | |
119 | 120 | | |
| 121 | + | |
120 | 122 | | |
121 | 123 | | |
122 | 124 | | |
| |||
0 commit comments