From 16c0a92790c991fee0a3e6c33fa9a13911444ad7 Mon Sep 17 00:00:00 2001 From: Giulio Eulisse <10544+ktf@users.noreply.github.com> Date: Thu, 3 Feb 2022 11:00:07 +0100 Subject: [PATCH 1/3] Fix warning `boost::property_tree::ini_parser::ini_parser_error` is polymorphic, so the compiler complains (with -Wcatch-value, which is enabled by default on some platforms / newer compilers), because you are basically restricting yourself to the base class. --- src/Configuration.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Configuration.cxx b/src/Configuration.cxx index c4a7440..99d3137 100644 --- a/src/Configuration.cxx +++ b/src/Configuration.cxx @@ -74,7 +74,7 @@ void ConfigFile::load(const std::string path) if (boost::algorithm::ends_with(filename, suffix)) { try { boost::property_tree::ini_parser::read_ini(filename, dPtr->pt); - } catch (boost::property_tree::ini_parser::ini_parser_error perr) { + } catch (boost::property_tree::ini_parser::ini_parser_error const &perr) { std::stringstream ss; if (perr.line()) { ss << perr.message() << " in " << perr.filename() << " line " << perr.line(); From 4413baab8d8da3e65b933fee733282816256c39e Mon Sep 17 00:00:00 2001 From: Sergio Date: Fri, 1 Nov 2024 09:01:52 +0100 Subject: [PATCH 2/3] Force CI rerun From 3773062d55fa0bff647ed5e2f3aef31dca7ec946 Mon Sep 17 00:00:00 2001 From: Sergio Garcia <47090312+singiamtel@users.noreply.github.com> Date: Tue, 3 Dec 2024 10:24:02 +0100 Subject: [PATCH 3/3] Fix linter --- src/Configuration.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Configuration.cxx b/src/Configuration.cxx index 3b75535..b0f1d01 100644 --- a/src/Configuration.cxx +++ b/src/Configuration.cxx @@ -74,7 +74,7 @@ void ConfigFile::load(const std::string path) if (boost::algorithm::ends_with(filename, suffix)) { try { boost::property_tree::ini_parser::read_ini(filename, dPtr->pt); - } catch (boost::property_tree::ini_parser::ini_parser_error const &perr) { + } catch (boost::property_tree::ini_parser::ini_parser_error const& perr) { std::stringstream ss; if (perr.line()) { ss << perr.message() << " in " << perr.filename() << " line " << perr.line();