Opened 13 months ago

#14216 new bug

Keymap: warning: variable incremented both in the loop header and in the loop body

Reported by: waddlesplash Owned by: nobody
Priority: normal Milestone: Unscheduled
Component: Kits Version: R1/Development
Keywords: Cc:
Blocked By: Blocking:
Has a Patch: no Platform: All

Description

src/kits/shared/Keymap.cpp:438: warning: variable 'i' is incremented both in the loop header and in the loop body [-Wfor-loop-analysis]
                i++;
                ^

http://xref.plausible.coop/source/xref/haiku/src/kits/shared/Keymap.cpp#438

I'm not too familiar with this code. A bug? Or should the loop header be doing += 2?

Change History (0)

Note: See TracTickets for help on using tickets.