cppcheck
cppcheck copied to clipboard
Fix false negative with multi-dimensional array
void f() {
char foo[2][2];
char *bar[2];
bar[0] = foo[0];
bar[1] = foo[1];
bar[0][0] = 'a';
}
would give a FP:
[test.cpp:2]: (style) Variable 'foo' can be declared with const\n"
@danmar Any feedback on this PR?
There appears to be merge conflicts for this PR.