Menu

#131 x11support.c:78: wierd increment ?

Next_release
open
nobody
None
1
2016-05-14
2016-05-14
dcb
No

roxterm-3.3.2/src/x11support.c:78:15: warning: variable 'i' is incremented both in the loop header and in the loop body [-Wfor-loop-analysis]

Code is

    for (i = 0; i < nitems; i++)
    {
        if (atoms[i] == hidden_atom)
        {
            minimized = TRUE;
            break;
        }
        ++i;
    }

This code only checks even numbered entries, which is probably
not what you want.

Suggest code rework.

Discussion

Anonymous
Anonymous

Add attachments
Cancel





MongoDB Logo MongoDB