Stratimikos: "declaration shadows a typedef" warnings from Apple clang 10.0.0
Created by: CamelliaDPG
@trilinos/stratimikos
Expectations
Builds with clang that use the -Wshadow
flag should not emit warnings.
Current Behavior
One warning is emitted by clang when building BelosThyraAdapter.hpp
.
.../include/BelosThyraAdapter.hpp:301:49: warning: declaration shadows a typedef in 'MultiVecTraits<type-parameter-0-0, MultiVectorBase<type-parameter-0-0> >' [-Wshadow]
typedef Teuchos::ScalarTraits<ScalarType> ST;
^
.../include/BelosThyraAdapter.hpp:87:47: note: previous declaration is here
typedef Teuchos::ScalarTraits<ScalarType> ST;
Possible Solution
Since the shadowing typedef is identical to the shadowed typedef, likely the correct solution is simply to delete the shadowing typedef (delete line 301).
Environment
I'm building on a Mac using Apple clang 10.0.0.