This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
RE: pragma warnings
- To: "Nick Clifton" <nickc at cygnus dot com>
- Subject: RE: pragma warnings
- From: "Jody Hagins" <jody at atdesk dot com>
- Date: Wed, 21 Jul 1999 09:12:50 -0400
- Cc: <egcs at egcs dot cygnus dot com>
> Hi Jody,
>
> : A followup to my own email (but not an answer, just another question).
> :
> : I was using pragma comment to store cvs information in the
> binary. Another
> : compiler I use uses pragma ident. egcs has neither. How
> should I do this
> : with egcs?
>
> Why not use a string ?
>
> eg
>
> char * message_from_cvs = "CVS: blah blah blah";
If you have this in a header file, you get name clashes (or you have to
manage the name of this variable).
However, as noted before, #ident is the answer.
Thanks.