[Bug analyzer/94433] enhancement: 12 * constify some parameters

2020-09-29 Thread dmalcolm at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94433 David Malcolm changed: What|Removed |Added Status|WAITING |RESOLVED Resolution|---

[Bug analyzer/94433] enhancement: 12 * constify some parameters

2020-09-28 Thread dcb314 at hotmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94433 --- Comment #5 from David Binderman --- (In reply to David Malcolm from comment #4) > However I'm confused by the "can be declared with const [constParameter]" > warnings in comment #0 - they look const to me. What are these messages > trying to

[Bug analyzer/94433] enhancement: 12 * constify some parameters

2020-09-28 Thread dmalcolm at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94433 David Malcolm changed: What|Removed |Added Status|ASSIGNED|WAITING --- Comment #4 from David Malcol

[Bug analyzer/94433] enhancement: 12 * constify some parameters

2020-09-28 Thread dmalcolm at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94433 David Malcolm changed: What|Removed |Added Last reconfirmed||2020-09-28 Status|UNCONFIRME

[Bug analyzer/94433] enhancement: 12 * constify some parameters

2020-09-28 Thread dcb314 at hotmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94433 --- Comment #2 from David Binderman --- I use something like cppcheck --enable=all --language=c++ trunk.git/gcc/analyzer/*.{h,cc} This seems to work to me, although my copy of cppcheck is a hand tweeked version of their development code.

[Bug analyzer/94433] enhancement: 12 * constify some parameters

2020-09-28 Thread dmalcolm at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94433 --- Comment #1 from David Malcolm --- Thanks for filing this. I've been attempting to reproduce this, but I'm not getting any warnings out of cppcheck. That said, looking at git show a96f1c38a787fbc847cb014d4b094e2787d539a7:gcc/analyzer/diagn