Commit 17a62c7
committed
COMP: Add -Wno-undefined-var-template to CMAKE_CXX_FLAGS
Only needed when building the template externally with a clang compiler.
Hides the following spurious warnings:
```cpp
Modules/Core/Common/include/itkNumericTraits.h:1083:36: warning:
instantiation of variable 'itk::NumericTraits<std::__1::complex<double> >::Zero'
required here, but no definition is available [-Wundefined-var-template]
static Self ZeroValue() { return Zero; }
Modules/Core/Common/include/itkNumericTraits.h:1083:36: note: add an
explicit instantiation declaration to suppress this warning if
'itk::NumericTraits<std::__1::complex<double> >::Zero' is explicitly
instantiated in another translation unit
static Self ZeroValue() { return Zero; }
```
Fixes #1201 parent 0fed855 commit 17a62c7
1 file changed
+4
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
9 | 13 | | |
10 | 14 | | |
11 | 15 | | |
| |||
0 commit comments