Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
firewave opened this issue Aug 13, 2022 · 1 comment
Open

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

firewave opened this issue Aug 13, 2022 · 1 comment
Labels

Comments

@firewave
Copy link
Collaborator

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.

@firewave firewave added the bug label Aug 13, 2022
@firewave
Copy link
Collaborator Author

Possibly related to #35 and #65 as well.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant