Bug #1480

RichPara -Wfor-loop-analysis warning i is incremented at te begining and at the end

Added by Zbigniew Rebacz almost 9 years ago. Updated almost 9 years ago.

Status:ApprovedStart date:06/25/2016
Priority:NormalDue date:
Assignee:Miroslav Fidler% Done:

0%

Category:RichTextSpent time:-
Target version:Release 2017.1

Description

Warning:

/home/klugier/upp/uppsrc/RichText/ParaData.cpp:40:4: warning: variable 'i' is incremented both in the loop header and in the loop body [-Wfor-loop-analysis]
                        i++;
                        ^
/home/klugier/upp/uppsrc/RichText/ParaData.cpp:34:40: note: incremented here
                for(int i = 1; i < cache.GetCount(); i++) {
                                                     ^
In file included from /home/klugier/.upp/_out/reference/RichText/CLANG.Debug.Debug_Full.Gui.Shared.X11/$blitz.cpp:18:
/home/klugier/upp/uppsrc/RichText/ParaType.cpp:230:4: warning: variable 'i' is incremented both in the loop header and in the loop body [-Wfor-loop-analysis]
                        i++;
                        ^
/home/klugier/upp/uppsrc/RichText/ParaType.cpp:224:40: note: incremented here
                for(int i = 1; i < cache.GetCount(); i++) {

History

#1 Updated by Miroslav Fidler almost 9 years ago

  • Status changed from New to Approved

Also available in: Atom PDF