From a4fded5edd827193e8ab1ec5db4b80a6b3457672 Mon Sep 17 00:00:00 2001 From: "Dirk-Jan C. Binnema" Date: Tue, 31 Mar 2020 21:11:42 +0300 Subject: [PATCH] mu: ensure some struct members are initialized --- lib/query/mu-parser.hh | 4 ++-- lib/utils/test-utils.cc | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) 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;