From a5edd4899674ec34c836815b338a0e3eac72ccf5 Mon Sep 17 00:00:00 2001 From: "alexey.lysiuk" Date: Sat, 4 Mar 2017 12:23:15 +0200 Subject: [PATCH] Fixed remaining warning reported by Clang src/scripting/zscript/zcc_compile.cpp:2456:54: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] --- src/scripting/zscript/zcc_compile.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/scripting/zscript/zcc_compile.cpp b/src/scripting/zscript/zcc_compile.cpp index d1cb78282..2d5838b06 100644 --- a/src/scripting/zscript/zcc_compile.cpp +++ b/src/scripting/zscript/zcc_compile.cpp @@ -2453,7 +2453,7 @@ void ZCCCompiler::CompileFunction(ZCC_StructWork *c, ZCC_FuncDeclarator *f, bool sym->Variants[0].Implementation->BarrierSide = oldfunc->BarrierSide; sym->Variants[0].Flags = FScopeBarrier::ChangeSideInFlags(sym->Variants[0].Flags, oldfunc->BarrierSide); // inherit const from original function - if (sym->Variants[0].Implementation->FuncConst = oldfunc->FuncConst) + if ((sym->Variants[0].Implementation->FuncConst = oldfunc->FuncConst)) sym->Variants[0].Flags |= VARF_ReadOnly; clstype->Virtuals[vindex] = sym->Variants[0].Implementation;