https://gcc.gnu.org/bugzilla/show_bug.cgi?id=92563
Richard Biener <rguenth at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |RESOLVED Resolution|--- |INVALID --- Comment #2 from Richard Biener <rguenth at gcc dot gnu.org> --- It's really an odd warning - the argument is passed by value, changing such parameters never has an effect outside of the function. So is this really asking to make by-value passing useless and asks for always putting 'const' on such parameters?