From b4e3736e31d8bc70ac75ca1522db9c0f28f4fa4d Mon Sep 17 00:00:00 2001 From: "Alexander A. Klimov" Date: Mon, 23 Sep 2019 15:09:57 +0200 Subject: [PATCH] WarnOnImplicitlySetGlobalVar(): warn only on sins inside actual DSL code --- lib/config/expression.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/config/expression.cpp b/lib/config/expression.cpp index b02f2b73c..93d3dfa98 100644 --- a/lib/config/expression.cpp +++ b/lib/config/expression.cpp @@ -560,7 +560,7 @@ void WarnOnImplicitlySetGlobalVar(const std::unique_ptr& setLhs, con if (var && setLhsParent.IsObject()) { auto ns (dynamic_pointer_cast(setLhsParent.Get())); - if (ns && ns == ScriptGlobal::GetGlobals()) { + if (ns && ns == ScriptGlobal::GetGlobals() && debug.Path.GetLength()) { const char *opStr = nullptr; switch (setOp) { -- 2.40.0