Skip to content
Snippets Groups Projects
Commit 39475462 authored by wenqing's avatar wenqing Committed by Dmitri Naumov
Browse files

[Warn] Removed two compilation warnings

parent af0da576
No related branches found
No related tags found
No related merge requests found
......@@ -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"))
......
......@@ -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,
......
......@@ -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)
{
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment