Skip to content

Fix most of the new warnings in g++ version 8.3.

Janek Kozicki requested to merge fixSomeWarnings into master

Here I fix most of the warnings that appear in debian buster. Compilation is much less noisy now.

I don't fix all of them because some are harder to fix and we will see later what to do. They are in the macro YADE_CLASS_BASE_DOC_ATTRS_INIT_CTOR_PY

  1. pkg/dem/HertzMindlin.hpp:147 warning: ‘*((void*)&<anonymous> +32)’ may be used uninitialized
  2. pkg/dem/ViscoelasticCapillarPM.hpp:81 warning: ‘*((void*)&<anonymous> +32)’ may be used uninitialized

And some are in the eigen library. We have no way of suppressing them, like we could not get rid of the "multi line comment in vtkMath.h" warning.

  1. /usr/include/eigen3/Eigen/src/Core/AssignEvaluator.h:637 warning: ‘*((void*)&<anonymous> +8)’ may be used uninitialized
  2. /usr/include/eigen3/Eigen/src/Core/DenseStorage.h:194 DenseStorage<double, 3, 3, 1, 0>::m_data’ may be used uninitialized

Fixing warnings in OpenSuse 15 is another story, see !202 (merged) for that.

Edited by Janek Kozicki

Merge request reports