Commit d670ceb
committed
[tmva] Fix Clang 21 compiler warnings in RBatchLoader
Follow up on root-project#20071.
Fix the following compiler warnings:
```txt
/home/rembserj/code/root/root_src/tmva/tmva/inc/TMVA/BatchGenerator/RBatchLoader.hxx:46:16: warning: private field 'fChunkSize' is not used [-Wunused-private-field]
46 | std::size_t fChunkSize;
| ^
/home/rembserj/code/root/root_src/tmva/tmva/inc/TMVA/BatchGenerator/RBatchLoader.hxx:49:16: warning: private field 'fMaxBatches' is not used [-Wunused-private-field]
49 | std::size_t fMaxBatches;
| ^
/home/rembserj/code/root/root_src/tmva/tmva/inc/TMVA/BatchGenerator/RBatchLoader.hxx:50:16: warning: private field 'fTrainingRemainderRow' is not used [-Wunused-private-field]
50 | std::size_t fTrainingRemainderRow = 0;
| ^
/home/rembserj/code/root/root_src/tmva/tmva/inc/TMVA/BatchGenerator/RBatchLoader.hxx:51:16: warning: private field 'fValidationRemainderRow' is not used [-Wunused-private-field]
51 | std::size_t fValidationRemainderRow = 0;
| ^
```
Also, use inline namespaces for code brevity and remove some comments
that trigger clang-format to not run on the doc string, although it only
suggests harmless line breaks that don't change how the rendered doxygen
looks like.1 parent 0f34653 commit d670ceb
File tree
2 files changed
+13
-27
lines changed- tmva/tmva/inc/TMVA/BatchGenerator
2 files changed
+13
-27
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
144 | 144 | | |
145 | 145 | | |
146 | 146 | | |
147 | | - | |
| 147 | + | |
148 | 148 | | |
149 | 149 | | |
150 | 150 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
27 | 27 | | |
28 | 28 | | |
29 | 29 | | |
30 | | - | |
31 | | - | |
32 | | - | |
| 30 | + | |
33 | 31 | | |
34 | | - | |
35 | 32 | | |
36 | 33 | | |
37 | 34 | | |
38 | 35 | | |
39 | 36 | | |
40 | | - | |
| 37 | + | |
| 38 | + | |
41 | 39 | | |
42 | 40 | | |
43 | 41 | | |
44 | 42 | | |
45 | | - | |
46 | | - | |
47 | 43 | | |
48 | 44 | | |
49 | | - | |
50 | | - | |
51 | | - | |
52 | 45 | | |
53 | 46 | | |
54 | 47 | | |
| |||
63 | 56 | | |
64 | 57 | | |
65 | 58 | | |
66 | | - | |
| 59 | + | |
67 | 60 | | |
68 | 61 | | |
69 | 62 | | |
| |||
74 | 67 | | |
75 | 68 | | |
76 | 69 | | |
77 | | - | |
78 | | - | |
| 70 | + | |
79 | 71 | | |
80 | 72 | | |
81 | 73 | | |
| |||
95 | 87 | | |
96 | 88 | | |
97 | 89 | | |
98 | | - | |
99 | | - | |
100 | | - | |
101 | 90 | | |
102 | 91 | | |
103 | 92 | | |
| |||
132 | 121 | | |
133 | 122 | | |
134 | 123 | | |
135 | | - | |
136 | 124 | | |
137 | 125 | | |
138 | 126 | | |
| |||
220 | 208 | | |
221 | 209 | | |
222 | 210 | | |
223 | | - | |
| 211 | + | |
224 | 212 | | |
225 | 213 | | |
226 | 214 | | |
| |||
231 | 219 | | |
232 | 220 | | |
233 | 221 | | |
234 | | - | |
| 222 | + | |
235 | 223 | | |
236 | 224 | | |
237 | 225 | | |
238 | 226 | | |
239 | 227 | | |
240 | 228 | | |
241 | | - | |
| 229 | + | |
242 | 230 | | |
243 | 231 | | |
244 | | - | |
245 | | - | |
| 232 | + | |
| 233 | + | |
246 | 234 | | |
247 | 235 | | |
248 | 236 | | |
| |||
269 | 257 | | |
270 | 258 | | |
271 | 259 | | |
272 | | - | |
| 260 | + | |
273 | 261 | | |
274 | 262 | | |
275 | 263 | | |
| |||
359 | 347 | | |
360 | 348 | | |
361 | 349 | | |
362 | | - | |
363 | | - | |
364 | | - | |
| 350 | + | |
365 | 351 | | |
366 | 352 | | |
0 commit comments