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]
This commit is contained in:
alexey.lysiuk 2017-03-04 12:23:15 +02:00
parent d8cee4d3a5
commit a5edd48996

View file

@ -2453,7 +2453,7 @@ void ZCCCompiler::CompileFunction(ZCC_StructWork *c, ZCC_FuncDeclarator *f, bool
sym->Variants[0].Implementation->BarrierSide = oldfunc->BarrierSide; sym->Variants[0].Implementation->BarrierSide = oldfunc->BarrierSide;
sym->Variants[0].Flags = FScopeBarrier::ChangeSideInFlags(sym->Variants[0].Flags, oldfunc->BarrierSide); sym->Variants[0].Flags = FScopeBarrier::ChangeSideInFlags(sym->Variants[0].Flags, oldfunc->BarrierSide);
// inherit const from original function // 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; sym->Variants[0].Flags |= VARF_ReadOnly;
clstype->Virtuals[vindex] = sym->Variants[0].Implementation; clstype->Virtuals[vindex] = sym->Variants[0].Implementation;