This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC 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: [wwwdocs] document -Wshadow change in 4.8


On 10 February 2013 08:45, Gerald Pfeifer <gerald@pfeifer.com> wrote:
> On Sat, 9 Feb 2013, Manuel López-Ibáñez wrote:
>> OK to commit?
>>
>>  * htdocs/gcc-4.8/changes.html: Document -Wshadow change.
>
> Thanks!
>
> The only question I have is about "unless the variable is a function".
> How can a variable be a function?

True. What about: "if a declaration shadows a function declaration,
unless the former declares a function or a pointer to function."

I also realized that Wshadow is not C-only, so I will move the item to C family.

Cheers,

Manuel.


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