diff --git a/lib/query/mu-parser.hh b/lib/query/mu-parser.hh index 215d3dd8..0c2ffe9e 100644 --- a/lib/query/mu-parser.hh +++ b/lib/query/mu-parser.hh @@ -39,8 +39,8 @@ namespace Mu { * */ struct Warning { - size_t pos; /**< pos in string */ - const std::string msg; /**< warning message */ + size_t pos{}; /**< pos in string */ + const std::string msg; /**< warning message */ /** * operator== diff --git a/lib/utils/test-utils.cc b/lib/utils/test-utils.cc index 27ef3873..b1f666e5 100644 --- a/lib/utils/test-utils.cc +++ b/lib/utils/test-utils.cc @@ -30,7 +30,7 @@ using namespace Mu; struct Case { const std::string expr; - bool is_first; + bool is_first{}; const std::string expected; }; using CaseVec = std::vector;