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

dcb314 at hotmail dot com gcc-bugzilla@gcc.gnu.org
Tue Sep 29 06:47:28 GMT 2020


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94433

--- Comment #5 from David Binderman <dcb314 at hotmail dot com> ---
(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 tell me, and how would I fix them?  (could they be false
> positives?)
> 
> Any ideas?

If the tool is telling you they can be declared with const and they
are already const, then that looks like a false positive to me.

cppcheck isn't perfect.

I checked diagnostic-manager.cc and exploded-graph.h and I think
they are false positives.


More information about the Gcc-bugs mailing list