This is the mail archive of the binutils@sources.redhat.com mailing list for the binutils 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: gas warning fixes 8


Alexandre Oliva <aoliva@redhat.com> writes:

> That said, perhaps we should have a variant of the unused attribute
> that asks gcc to warn if it turns out to be used.  There are times
> when this is actually what one would want from it.

I think a sane way to do that would be to add the C++
unnamed-parameter notation to C as an extension:

void foo (char *, char *)
{
}

is valid and defines foo with the signature void (char *, char *), but
the parameters are inaccessible within the function.

zw


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