Skip to content

Commit

Permalink
Fix some warning when compiled with some version of gcc (need to run …
Browse files Browse the repository at this point in the history
…integrated tests) (GEOS-DEV#1929)
  • Loading branch information
acitrain authored Jun 23, 2022
1 parent 9fa5042 commit 72bf5d1
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/coreComponents/functions/TableFunction.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -575,7 +575,7 @@ TableFunction::KernelWrapper::interpolateLinear( IN_ARRAY const & input, OUT_ARR

// Determine weighted value
real64 cornerValue = m_values[tableIndex];
real64 dCornerValue_dInput[maxDimensions];
real64 dCornerValue_dInput[maxDimensions]{};
for( integer dim = 0; dim < numDimensions; ++dim )
{
dCornerValue_dInput[dim] = cornerValue;
Expand Down
2 changes: 1 addition & 1 deletion src/coreComponents/mainInterface/ProblemManager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -333,7 +333,7 @@ void ProblemManager::setSchemaDeviations( xmlWrapper::xmlNode schemaRoot,
Group & benchmarks = this->registerGroup< Group >( "Benchmarks" );
benchmarks.setInputFlags( InputFlags::OPTIONAL );

for( string const & machineName : {"quartz", "lassen"} )
for( string const machineName : {"quartz", "lassen"} )
{
Group & machine = benchmarks.registerGroup< Group >( machineName );
machine.setInputFlags( InputFlags::OPTIONAL );
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -616,7 +616,7 @@ void NeighborCommunicator::unpackBufferForSync( FieldIdentifiers const & fieldsT

for( auto const & iter : fieldsToBeSync.getFields() )
{
FieldLocation location;
FieldLocation location{};
fieldsToBeSync.getLocation( iter.first, location );
switch( location )
{
Expand Down

0 comments on commit 72bf5d1

Please sign in to comment.