Ifpack2::BlockTriDiContainer: Build warnings
Created by: mhoemmen
Here is a sample:
.../Trilinos/packages/ifpack2/src/Ifpack2_BlockTriDiContainer_impl.hpp:1049:68: warning: typedef ‘using impl_scalar_type = typename impl_type::impl_scalar_type’ locally defined but not used [-Wunused-local-typedefs]
using impl_scalar_type = typename impl_type::impl_scalar_type;
^
.../Trilinos/packages/ifpack2/src/Ifpack2_BlockTriDiContainer_impl.hpp:1052:84: warning: typedef ‘using impl_scalar_type_4d_view = typename impl_type::impl_scalar_type_4d_view’ locally defined but not used [-Wunused-local-typedefs]
using impl_scalar_type_4d_view = typename impl_type::impl_scalar_type_4d_view;
^
.../Trilinos/packages/ifpack2/src/Ifpack2_BlockTriDiContainer_impl.hpp:3366:31: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
if (Z.getNumVectors() != num_vectors)
^
.../Trilinos/packages/ifpack2/src/Ifpack2_BlockTriDiContainer_impl.hpp:996:44: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
btdm.is_diagonal_only = (nblocks() == ntridiags);
^
.../Trilinos/packages/ifpack2/src/Ifpack2_BlockTriDiContainer_impl.hpp:1055:21: warning: unused variable ‘vector_length’ [-Wunused-variable]
constexpr int vector_length = impl_type::vector_length;
^
.../Trilinos/packages/ifpack2/src/Ifpack2_BlockTriDiContainer_impl.hpp:1474:60: warning: ‘Ifpack2::BlockTriDiContainerDetails::ExtractAndFactorizeTridiags<Tpetra::RowMatrix<double, int, int, Kokkos::Compat::KokkosDeviceWrapperNode<Kokkos::OpenMP> > >::flat_td_ptr’ will be initialized after [-Wreorder]
const ConstUnmanaged<size_type_1d_view> pack_td_ptr, flat_td_ptr;
^
.../Trilinos/packages/ifpack2/src/Ifpack2_BlockTriDiContainer_impl.hpp:1474:47: warning: ‘Ifpack2::BlockTriDiContainerDetails::ConstUnmanaged<Kokkos::View<long unsigned int*, Kokkos::Device<Kokkos::OpenMP, Kokkos::HostSpace> > > Ifpack2::BlockTriDiContainerDetails::ExtractAndFactorizeTridiags<Tpetra::RowMatrix<double, int, int, Kokkos::Compat::KokkosDeviceWrapperNode<Kokkos::OpenMP> > >::pack_td_ptr’ [-Wreorder]
const ConstUnmanaged<size_type_1d_view> pack_td_ptr, flat_td_ptr;
^
.../Trilinos/packages/ifpack2/src/Ifpack2_BlockTriDiContainer_impl.hpp:1485:7: warning: when initialized here [-Wreorder]
ExtractAndFactorizeTridiags(const BlockTridiags<MatrixType> &btdm_,
^
This blocks Sierra promotion, as they build with signed / unsigned comparison warnings enabled.