This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: GCC warnings for unused global variables
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.