Skip to content

Commit 9e5f210

Browse files
Fix uninitialized values (#1745)
1 parent 53c0512 commit 9e5f210

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

include/openPMD/IO/JSON/JSONIOHandlerImpl.hpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -307,8 +307,8 @@ class JSONIOHandlerImpl : public AbstractIOHandlerImpl
307307
{
308308
// Initialized in init()
309309
DatasetMode m_mode{};
310-
SpecificationVia m_specificationVia;
311-
bool m_skipWarnings;
310+
SpecificationVia m_specificationVia = SpecificationVia::DefaultValue;
311+
bool m_skipWarnings = false;
312312

313313
template <typename A, typename B, typename C>
314314
operator std::tuple<A, B, C>()

src/IO/JSON/JSONIOHandlerImpl.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -603,7 +603,6 @@ void JSONIOHandlerImpl::createDataset(
603603
parameter.options, /* considerFiles = */ false);
604604
// Retrieves mode from dataset-specific configuration, falls back to global
605605
// value if not defined
606-
DatasetMode_s dm;
607606
auto [localMode, _, skipWarnings] = retrieveDatasetMode(config);
608607
(void)_;
609608
// No use in introducing logic to skip warnings only for one particular

0 commit comments

Comments
 (0)