]> git.ipfire.org Git - thirdparty/pdns.git/commitdiff
Appease clang-tidy 16245/head
authorMiod Vallat <miod.vallat@powerdns.com>
Fri, 10 Oct 2025 12:16:04 +0000 (14:16 +0200)
committerMiod Vallat <miod.vallat@powerdns.com>
Fri, 10 Oct 2025 13:11:59 +0000 (15:11 +0200)
Signed-off-by: Miod Vallat <miod.vallat@powerdns.com>
pdns/backends/gsql/gsqlbackend.cc

index d2e78b189274634d984c3f81f7e3ebc4c30e6570..d1a4d19c438cfcfbfe598d149be4a6a949905174 100644 (file)
@@ -571,8 +571,8 @@ void GSQLBackend::getUpdatedPrimaries(vector<DomainInfo>& updatedDomains, std::u
     try {
       pdns::checked_stoi_into(di.id, row[0]);
     }
-    catch (const std::exception& e) {
-      g_log << Logger::Warning << __PRETTY_FUNCTION__ << " could not convert id '" << row[0] << "' for zone '" << di.zone << "' into an integer: " << e.what() << endl;
+    catch (const std::exception& exp) {
+      g_log << Logger::Warning << static_cast<const char *>(__PRETTY_FUNCTION__) << " could not convert id '" << row[0] << "' for zone '" << di.zone << "' into an integer: " << exp.what() << endl;
       continue;
     }