This is the mail archive of the elfutils-devel@sourceware.org mailing list for the elfutils 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]

__attribute__((unused)) on function


Hi,

In libdw/dwarf_error.c, I've noticed a work-around for gcc supposedly 
not respecting __attribute__((unused)) when used on function.  I don't 
know how did previous code look like, that's even pre-monotone code, but 
attaching __attribute__((unused)) at function declaration site does work 
for me on F-9.

(For function definition, I think it used to work differently: the 
attribute would be placed between the function type and the function 
name.  Now I have to place it before the function type.  I'm guessing 
this might have been the one change that triggered this workaround.)

pmachata/pending has a single commit that implements this.  Please 
consider for merge.

PM

Attachment: signature.asc
Description: PGP signature


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