Compilation warnings with GCC13
When compiling with GCC 13, I get loads of warnings of the form:
In file included from /home/daniel/documents/uni/phd/code/hyteg/eigen/Eigen/Core:295,
from /home/daniel/documents/uni/phd/code/hyteg/eigen/Eigen/Dense:1,
from /home/daniel/documents/uni/phd/code/hyteg/src/hyteg/eigen/EigenWrapper.hpp:25,
from /home/daniel/documents/uni/phd/code/hyteg/src/hyteg/types/PointND.hpp:32,
from /home/daniel/documents/uni/phd/code/hyteg/src/hyteg/dgfunctionspace/DGBasisInfo.hpp:25,
from /home/daniel/documents/uni/phd/code/hyteg/src/hyteg/dgfunctionspace/DGBasisLinearLagrange_Example.hpp:27,
from /home/daniel/documents/uni/phd/code/hyteg/src/hyteg/egfunctionspace/EGFunction.hpp:23,
from /home/daniel/documents/uni/phd/code/hyteg/src/hyteg/communication/Syncing.hpp:24,
from /home/daniel/documents/uni/phd/code/hyteg/src/hyteg/elementwiseoperators/P1ToP2ElementwiseOperator.hpp:22,
from /home/daniel/documents/uni/phd/code/hyteg/src/hyteg/elementwiseoperators/P1ToP2ElementwiseOperator.cpp:21:
In copy constructor ‘Eigen::PlainObjectBase<Derived>::PlainObjectBase(const Eigen::PlainObjectBase<Derived>&) [with Derived = Eigen::Matrix<double, 6, 3, 1, 6, 3>]’,
inlined from ‘Eigen::Matrix<_Scalar, _Rows, _Cols, _Options, _MaxRows, _MaxCols>::Matrix(const Eigen::Matrix<_Scalar, _Rows, _Cols, _Options, _MaxRows, _MaxCols>&) [with _Scalar = double; int _Rows = 6; int _Cols = 3; int _Options = 1; int _MaxRows = 6; int _MaxCols = 3]’ at /home/daniel/documents/uni/phd/code/hyteg/eigen/Eigen/src/Core/Matrix.h:414:65,
inlined from ‘void hyteg::P1ToP2FenicsForm<UFCOperator2D, UFCOperator3D>::computeLocalStiffnessMatrix(const std::array<hyteg::PointND<double, 3>, 3>&, hyteg::Matrixr<6, 3>&) const [with UFCOperator2D = p1_to_p2_divt_cell_integral_0_otherwise; UFCOperator3D = p1_to_p2_tet_divt_tet_cell_integral_0_otherwise]’ at /home/daniel/documents/uni/phd/code/hyteg/src/hyteg/forms/form_fenics_base/P1ToP2FenicsForm.hpp:137:37,
inlined from ‘void hyteg::P1ToP2FenicsForm<UFCOperator2D, UFCOperator3D>::integrateAll(const std::array<hyteg::PointND<double, 3>, 3>&, hyteg::Matrixr<6, 3>&) const [with UFCOperator2D = p1_to_p2_divt_cell_integral_0_otherwise; UFCOperator3D = p1_to_p2_tet_divt_tet_cell_integral_0_otherwise]’ at /home/daniel/documents/uni/phd/code/hyteg/src/hyteg/forms/form_fenics_base/P1ToP2FenicsForm.hpp:109:34,
inlined from ‘void hyteg::P1ToP2ElementwiseOperator<P1toP2Form>::localMatrixAssembly2D(const std::shared_ptr<hyteg::SparseMatrixProxy>&, const hyteg::Face&, walberla::uint_t, hyteg::idx_t, hyteg::idx_t, const hyteg::P2Elements::P2Element&, const hyteg::idx_t*, const hyteg::idx_t*, const hyteg::idx_t*) const [with P1toP2Form = hyteg::P1ToP2FenicsForm<p1_to_p2_divt_cell_integral_0_otherwise, p1_to_p2_tet_divt_tet_cell_integral_0_otherwise>]’ at /home/daniel/documents/uni/phd/code/hyteg/src/hyteg/elementwiseoperators/P1ToP2ElementwiseOperator.cpp:556:21:
/home/daniel/documents/uni/phd/code/hyteg/eigen/Eigen/src/Core/PlainObjectBase.h:512:17: warning: ‘elMat.Eigen::Matrix<double, 6, 3, 1, 6, 3>::<unnamed>.Eigen::PlainObjectBase<Eigen::Matrix<double, 6, 3, 1, 6, 3> >::m_storage’ is used uninitialized [-Wuninitialized]
512 | : Base(), m_storage(other.m_storage) { }
| ^~~~~~~~~~~~~~~~~~~~~~~~~~
/home/daniel/documents/uni/phd/code/hyteg/src/hyteg/elementwiseoperators/P1ToP2ElementwiseOperator.cpp: In member function ‘void hyteg::P1ToP2ElementwiseOperator<P1toP2Form>::localMatrixAssembly2D(const std::shared_ptr<hyteg::SparseMatrixProxy>&, const hyteg::Face&, walberla::uint_t, hyteg::idx_t, hyteg::idx_t, const hyteg::P2Elements::P2Element&, const hyteg::idx_t*, const hyteg::idx_t*, const hyteg::idx_t*) const [with P1toP2Form = hyteg::P1ToP2FenicsForm<p1_to_p2_divt_cell_integral_0_otherwise, p1_to_p2_tet_divt_tet_cell_integral_0_otherwise>]’:
/home/daniel/documents/uni/phd/code/hyteg/src/hyteg/elementwiseoperators/P1ToP2ElementwiseOperator.cpp:539:29: note: ‘elMat’ declared here
539 | Matrixr< 6, 3 > elMat;
| ^~~~~