https://gcc.gnu.org/bugzilla/show_bug.cgi?id=68230
--- Comment #9 from Eric Gallager <egallager at gcc dot gnu.org> --- (In reply to Joshua T, Fisher from comment #8) > (In reply to Jonathan Wakely from comment #7) > > (In reply to Joshua T, Fisher from comment #5) > > > and my blog where I first encountered this in a closed source codebase: > > > > > > http://www.nullterminatedstrings.com/c++/recursive-warning > > > > I'm a bit more persuaded having read this. If it points out you forgot to > > use it (for anything except the recursion) that could help find real bugs. > > That's what I was hoping! I feel like it's definitely something that could > hit some real code bases. I find it unlikely I'm the only person ever to run > into this. Maybe it'd be possible to put it under a separate flag (e.g. -Wparameter-only-used-recursively) so that it'd be easier to focus on just that kind of warning individually? There are some codebases that turn off -Wunused-parameter specifically that still might want this warning.