GCC warnings for unused global variables

Zack Weinberg zack@codesourcery.com
Thu May 1 22:40:00 GMT 2003


Neil Booth <neil@daikokuya.co.uk> writes:

>> #define __RCSID(str) _Pragma("GCC ident " #str)
>
> Um, no, string concat doesn't and won't happen in #pragma.
>
> _Pragma takes a single literal.

Oh, right.  Well, that makes it only marginally more work:

#define __RCSID(str) __XRCSID(GCC ident str)
#define __XRCSID(str) _Pragma(#str)

zw



More information about the Gcc mailing list