From e76afaaa668a64e5af575b4082f39b87d72933e7 Mon Sep 17 00:00:00 2001 From: Jochen Topf Date: Tue, 19 Aug 2025 10:26:05 +0200 Subject: [PATCH] Disable clang-tidy error message due to empty catch --- src/pgsql-capabilities.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pgsql-capabilities.cpp b/src/pgsql-capabilities.cpp index d568f2eac..4b45f7c02 100644 --- a/src/pgsql-capabilities.cpp +++ b/src/pgsql-capabilities.cpp @@ -103,7 +103,7 @@ void init_postgis_version(pg_conn_t const &db_connection) capabilities().postgis = {std::stoi(std::string{res.get(0, 0)}), std::stoi(std::string{res.get(1, 0)})}; } - } catch (...) { + } catch (...) { // NOLINT(bugprone-empty-catch) // Fall through if std::stoi() fails in which case the version // is reported as 0. }