GCC warnings for unused global variables
Neil Booth
neil@daikokuya.co.uk
Thu May 1 21:34:00 GMT 2003
Zack Weinberg wrote:-
> > That lets us neatly handle multiple object formats easily while still
> > using features like placing the strings in non-loaded sections when
> > using ELF. ("Why waste the RAM?" 8-) It also means that we can apply
> > (have applied!) __attribute__((__unused__)) nearly everywhere fairly
> > easily.
>
> Hmm. I could give you #pragma GCC ident (semantically identical to
> #ident) which would let you do
>
> #define __RCSID(str) _Pragma("GCC ident " #str)
Um, no, string concat doesn't and won't happen in #pragma.
_Pragma takes a single literal.
Neil.
More information about the Gcc
mailing list