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: [PATCH 18/348] Fix -Wsahdow warnings


> Date: Fri, 25 Nov 2011 17:26:04 +0100 (CET)
> From: Mark Kettenis <mark.kettenis@xs4all.nl>
> CC: brobecker@adacore.com, andrew.smirnov@gmail.com,
>         gdb-patches@sourceware.org
> 
> Since there is absolutely no problem with a local variable that has
> the same name as a library function, this is bad.

You are, in effect, saying that the wisdom of coding "down the middle
of a programming language" is wrong.  We will have to disagree on
that, sorry.  FWIW, I don't think a large project should live
dangerously just because some versions of some compiler will flag
these clashes even without -Wshadow.


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