diff --git a/Applications/ApplicationsLib/ProjectData.cpp b/Applications/ApplicationsLib/ProjectData.cpp index bcc18d26a468ac0ea1d0dc7be38eacb5e4bb4352..2933658f3e23b8502b922419ea680094c604be0d 100644 --- a/Applications/ApplicationsLib/ProjectData.cpp +++ b/Applications/ApplicationsLib/ProjectData.cpp @@ -316,6 +316,9 @@ void ProjectData::parseProcesses(BaseLib::ConfigTree const& processes_config, std::string const& project_directory, std::string const& output_directory) { + (void)project_directory; // to avoid compilation warning + (void)output_directory; // to avoid compilation warning + DBUG("Reading processes:"); //! \ogs_file_param{prj__processes__process} for (auto process_config : processes_config.getConfigSubtreeList("process")) diff --git a/NumLib/Extrapolation/LocalLinearLeastSquaresExtrapolator.cpp b/NumLib/Extrapolation/LocalLinearLeastSquaresExtrapolator.cpp index 656051d76b55e84fd9c54398f0dcc654fcd5fe16..c7527be13b24dc25e1d77c848d305b7937b0a870 100644 --- a/NumLib/Extrapolation/LocalLinearLeastSquaresExtrapolator.cpp +++ b/NumLib/Extrapolation/LocalLinearLeastSquaresExtrapolator.cpp @@ -70,12 +70,11 @@ void LocalLinearLeastSquaresExtrapolator::extrapolate( if (!_nodal_values || #ifdef USE_PETSC - static_cast<std::size_t>(_nodal_values->getLocalSize() + - _nodal_values->getGhostSize()) + _nodal_values->getLocalSize() + _nodal_values->getGhostSize() #else _nodal_values->size() #endif - != num_nodal_dof_result) + != static_cast<GlobalIndexType>(num_nodal_dof_result)) { _nodal_values = MathLib::MatrixVectorTraits<GlobalVector>::newInstance( {num_nodal_dof_result, num_nodal_dof_result, &ghost_indices, diff --git a/Tests/NumLib/NaturalNodeCoordinates.cpp b/Tests/NumLib/NaturalNodeCoordinates.cpp index 18d6f1a8ede62f290e0d0334bd62a4b2efe62548..ad74c36eb5706e3e3165d442a97246778956509d 100644 --- a/Tests/NumLib/NaturalNodeCoordinates.cpp +++ b/Tests/NumLib/NaturalNodeCoordinates.cpp @@ -58,7 +58,7 @@ bool test(MeshLib::Element const& element) shape_matrices, GlobalDim, false /* axial symmetry */); auto const& N = shape_matrices.N; - for (int p = 0; p < ShapeFunction::NPOINTS; ++p) + for (int p = 0; p < static_cast<int>(ShapeFunction::NPOINTS); ++p) { if (p == n) {