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


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


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