From c1e297b01f07be122e9909a1ae9c04f0c51dfc21 Mon Sep 17 00:00:00 2001 From: Mikko Rasa Date: Wed, 5 Feb 2020 23:48:46 +0200 Subject: [PATCH] Recognize an assignment to an out parameter as used --- source/programcompiler.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/programcompiler.cpp b/source/programcompiler.cpp index 4c08a0c1..d021ab4f 100644 --- a/source/programcompiler.cpp +++ b/source/programcompiler.cpp @@ -1681,7 +1681,7 @@ void ProgramCompiler::UnusedVariableLocator::merge_down_variables() { if(!i->second.referenced) unused_nodes.insert(i->first); - clear_assignments(i->second, true); + clear_assignments(i->second, i->first->interface!="out"); continue; } -- 2.45.2