Skip to content

Commit f77f814

Browse files
committed
clang-tidy gets in the way.
Signed-off-by: Miod Vallat <miod.vallat@powerdns.com>
1 parent 9818c4d commit f77f814

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

pdns/auth-main.cc

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -760,7 +760,7 @@ static void triggerLoadOfLibraries()
760760
static bool updateZoneCache(Logr::log_t slog)
761761
{
762762
try {
763-
UeberBackend B;
763+
UeberBackend B; // NOLINT(readability-identifier-length)
764764
B.updateZoneCache();
765765
}
766766
catch (PDNSException& e) {
@@ -776,6 +776,7 @@ static bool updateZoneCache(Logr::log_t slog)
776776
return true;
777777
}
778778

779+
// NOLINTNEXTLINE(readability-function-cognitive-complexity)
779780
static void mainthread()
780781
{
781782
static std::shared_ptr<Logr::Logger> slog;
@@ -988,7 +989,7 @@ static void mainthread()
988989
g_zoneCache.setRefreshInterval(::arg().asNum("zone-cache-refresh-interval"));
989990
if (g_zoneCache.getRefreshInterval() != 0) {
990991
if (!updateZoneCache(slog)) {
991-
exit(1);
992+
exit(1); // NOLINT(concurrency-mt-unsafe) we're single threaded at this point
992993
}
993994
}
994995

0 commit comments

Comments
 (0)