Bug #1480
RichPara -Wfor-loop-analysis warning i is incremented at te begining and at the end
Status: | Approved | Start date: | 06/25/2016 | |
---|---|---|---|---|
Priority: | Normal | Due date: | ||
Assignee: | Miroslav Fidler | % Done: | 0% | |
Category: | RichText | Spent 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