diff options
author | Antonio Sanchez <cantonios@google.com> | 2020-11-18 08:02:15 -0800 |
---|---|---|
committer | Antonio Sánchez <cantonios@google.com> | 2020-11-18 20:23:20 +0000 |
commit | 41d5d5334b8a4e364dfd88dcd91f6cd38834b8ed (patch) | |
tree | 7bad87057ca47b4911ac4ede5f6a11cf2916748f /unsupported/Eigen/CXX11 | |
parent | 3669498f5a7cce29935386ab5380537b06a58edb (diff) |
Initialize primitives to fix -Wuninitialized-const-reference.
The `meta` test generates warnings with the latest version of clang due
to passing uninitialized variables as const reference arguments.
```
test/meta.cpp:102:45: error: variable 'f' is uninitialized when passed as a const reference argument here [-Werror,-Wuninitialized-const-reference]
VERIFY(( check_is_convertible(a.dot(b), f) ));
```
We don't actually use the variables, but initializing them eliminates the
new warning.
Fixes #2067.
Diffstat (limited to 'unsupported/Eigen/CXX11')
0 files changed, 0 insertions, 0 deletions