From e50b62c77038d9ecb88d31b7d7b18607208d0574 Mon Sep 17 00:00:00 2001 From: Muhammed Galib Uludag Date: Sun, 27 Jun 2021 20:30:41 +0300 Subject: [PATCH] suppressed unused var --- include/spdlog/sinks/mongo_sink.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/spdlog/sinks/mongo_sink.h b/include/spdlog/sinks/mongo_sink.h index afcda1fd..41b85ecf 100644 --- a/include/spdlog/sinks/mongo_sink.h +++ b/include/spdlog/sinks/mongo_sink.h @@ -35,7 +35,7 @@ public: db_name_ = db_name; coll_name_ = collection_name; set_pattern("%v"); - } catch (const std::exception &e) { + } catch (const std::exception) { throw spdlog_ex("Error opening database"); } }