From b275aa44754331495b24b46430e1a3eb3eb020d6 Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Fri, 28 Oct 2022 16:34:02 +0200 Subject: [PATCH] Don't use warnOnce() for the toString warning --- src/libexpr/paths.cc | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/libexpr/paths.cc b/src/libexpr/paths.cc index e2101858d..56e22a7f6 100644 --- a/src/libexpr/paths.cc +++ b/src/libexpr/paths.cc @@ -49,8 +49,7 @@ SourcePath EvalState::decodePath(std::string_view s, PosIdx pos) SourcePath path {accessor->second, CanonPath(s)}; - static bool warned = false; - warnOnce(warned, "applying 'toString' to path '%s' and then accessing it is deprecated, at %s", path, positions[pos]); + warn("applying 'toString' to path '%s' and then accessing it is deprecated, at %s", path, positions[pos]); return path; } catch (std::invalid_argument & e) {