From 08654723fdc8eeea82434171bc5f9716bda1db8c Mon Sep 17 00:00:00 2001 From: Marco Randazzo Date: Sun, 11 Feb 2024 00:56:31 +0100 Subject: [PATCH] yarpDeviceParamParserGenerator: fix for clang compiler --- src/yarpDeviceParamParserGenerator/generate_h_functions.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/yarpDeviceParamParserGenerator/generate_h_functions.cpp b/src/yarpDeviceParamParserGenerator/generate_h_functions.cpp index ac20821bc0..932f45ca84 100644 --- a/src/yarpDeviceParamParserGenerator/generate_h_functions.cpp +++ b/src/yarpDeviceParamParserGenerator/generate_h_functions.cpp @@ -81,7 +81,7 @@ public:\n"; s << S_TAB1 << " int major = "<< std::to_string(MACRO_PARSER_VERSION_MAJOR) << ";\n"; s << S_TAB1 << " int minor = "<< std::to_string(MACRO_PARSER_VERSION_MINOR) << ";\n"; s << S_TAB1 << "};\n"; - s << S_TAB1 << "const parser_version_type m_parser_version;\n"; + s << S_TAB1 << "const parser_version_type m_parser_version = {};\n"; for (const auto& param : m_params) {