Skip to content

Changed warning not displayed when line wasn't changed #78

@firewave

Description

@firewave
static int bar(int t)
{
    const int buf[3]= {0};
    return buf[t];
}
static int f(void)
{
    int t;
    return bar((t=5));
}
int main(void)
{
    f();
}

The code above will show

image

If you change the line with the t assignment to 3 it will report

image

Both messages should be adjusted for the index but only the one where we changed the line is.

If you add a newline at the end of the file the other message is updated as well.

image

Note: I tested this with a standalone file (i.e. not belonging to any project).

I wonder if this might be related to #37.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions