This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/68230] Unused function parameters not reported by -Wunused-parameter when only used recursively.
- From: "j.fisher at digipen dot edu" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Tue, 03 Oct 2017 00:47:42 +0000
- Subject: [Bug c++/68230] Unused function parameters not reported by -Wunused-parameter when only used recursively.
- Auto-submitted: auto-generated
- References: <bug-68230-4@http.gcc.gnu.org/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=68230
--- Comment #8 from Joshua T, Fisher <j.fisher at digipen dot edu> ---
(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.