Commit 2f3d4e1
COMP: Silence nodiscard warnings for Future.get() in PoolMultiThreader
Cast Future.get() return values to void where the call is only used
for its side effect of waiting for thread completion and propagating
exceptions.
Fixes the following warnings:
```
ITK/Modules/Core/Common/src/itkPoolMultiThreader.cxx:148:55: warning:
ignoring return value of function declared with 'nodiscard'
attribute [-Wunused-result]
ITK/Modules/Core/Common/src/itkPoolMultiThreader.cxx:303:11: warning:
ignoring return value of function declared with 'nodiscard'
attribute [-Wunused-result]
This is for clang-22 compilers.
```
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>1 parent 7ed3dab commit 2f3d4e1
1 file changed
Lines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
145 | 145 | | |
146 | 146 | | |
147 | 147 | | |
148 | | - | |
| 148 | + | |
149 | 149 | | |
150 | 150 | | |
151 | 151 | | |
| |||
300 | 300 | | |
301 | 301 | | |
302 | 302 | | |
303 | | - | |
| 303 | + | |
304 | 304 | | |
305 | 305 | | |
306 | 306 | | |
| |||
0 commit comments