From f3b61c70ba4a00712dcec18e9ceef6aea4c79674 Mon Sep 17 00:00:00 2001 From: Sandor Magyar Date: Mon, 17 Oct 2022 16:04:49 -0400 Subject: Catch exception by reference to fix -Wcatch-value warning --- include/spdlog/sinks/mongo_sink.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'include/spdlog') diff --git a/include/spdlog/sinks/mongo_sink.h b/include/spdlog/sinks/mongo_sink.h index 34f4ee33..d239e928 100644 --- a/include/spdlog/sinks/mongo_sink.h +++ b/include/spdlog/sinks/mongo_sink.h @@ -37,7 +37,7 @@ public: db_name_ = db_name; coll_name_ = collection_name; } - catch (const std::exception) + catch (const std::exception&) { throw spdlog_ex("Error opening database"); } -- cgit v1.2.3