From 77e65f8392f24b6cdaa65a4017f5728437be0c00 Mon Sep 17 00:00:00 2001 From: Sergio Date: Mon, 4 Nov 2024 11:49:14 +0100 Subject: [PATCH] test --- .github/workflows/format.yml | 3 +++ src/Configuration.cxx | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/.github/workflows/format.yml b/.github/workflows/format.yml index d1a4c0e..63044de 100644 --- a/.github/workflows/format.yml +++ b/.github/workflows/format.yml @@ -13,6 +13,9 @@ jobs: - name: Run clang-format on changed files run: | set -x + git config --global --add safe.directory + whoami + ls -la git fetch origin ${{ github.event.pull_request.base.ref }} git fetch origin pull/${{ github.event.pull_request.number }}/head:${{ github.event.pull_request.head.ref }} BASE_COMMIT=$(git rev-parse ${{ github.event.pull_request.base.sha }}) 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();