mirror of https://github.com/djcb/mu.git
mu: ensure some struct members are initialized
This commit is contained in:
parent
9ef1a3c0cf
commit
a4fded5edd
|
@ -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==
|
||||
|
|
|
@ -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<Case>;
|
||||
|
|
Loading…
Reference in New Issue