From ca77ef716e51ebec1be2bd2c28a02838cb8a4c32 Mon Sep 17 00:00:00 2001 From: Florian Eich Date: Mon, 24 Sep 2018 01:40:53 +0200 Subject: [PATCH] Fix -Wmaybe-uninitialized warning (#600) --- src/regex_yaml.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/regex_yaml.h b/src/regex_yaml.h index 8f28b85..1611cb2 100644 --- a/src/regex_yaml.h +++ b/src/regex_yaml.h @@ -77,10 +77,11 @@ class YAML_CPP_API RegEx { private: REGEX_OP m_op; - char m_a, m_z; + char m_a{}; + char m_z{}; std::vector m_params; }; -} +} // namespace YAML #include "regeximpl.h"