From: Mikko Rasa Date: Wed, 5 Feb 2020 21:48:46 +0000 (+0200) Subject: Recognize an assignment to an out parameter as used X-Git-Url: http://git.tdb.fi/?a=commitdiff_plain;h=c1e297b01f07be122e9909a1ae9c04f0c51dfc21;p=libs%2Fgl.git Recognize an assignment to an out parameter as used --- 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; }