This is the mail archive of the gdb-patches@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [RFC] Compile GDB with -Wshadow?


Mark Kettenis wrote:
Date: Mon, 28 Feb 2011 11:39:49 +0400
From: Joel Brobecker <brobecker@adacore.com>

That would be great but it produces now 627 errors, I am not going to fix
them, they look each one needs a specific fix.
:-(. Completely impractical at this stage. It's really surprising
that we would have so many errors of this kind...

Well they're not errors per-se. Bad style perhaps, but that of course can be argued.

The ones I pointed out were all shadowing of a parameter. These are probably shadowing of an outer scope. As you say, not really errors in either case, but surely a potential source of confusion for maintainers.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]