Am Mittwoch, 01.01.03 um 17:17 Uhr schrieb Pascal Bourguignon:

| //static char rcsId[] = "$Id: EODatabaseContext.m,v 1.9 2002/12/29
| 15:13:05 mirko Exp $";
|
| Gcc complains a lot about this unused variable ...
No code use it. I think you can comment it.
Yes some code use it: the 'what' command!

When I use this syntax (with -Wall):

static const char rcsid[]="$Id: MTDictionary.m,v 1.11 2002/04/22 01:10:56 mppjb Exp $";

there's no warning, and the literal is included in the object files
and collected into the executable.
Indeed, the additional "const" makes the compiler quiet.

As soon as you use CVS (or  old RCS or SCCS) such a 'what' command ...
*grin* what a ...

Are there additional requirements for this to work? Like variable name, type etc? Or is it more like a "grep -a '$Id:' <binary>"?


Cheers,
Markus

- - - - - - - - - - - - - - - - - - -
Dipl. Ing. Markus Hitter
http://www.jump-ing.de/





_______________________________________________
Bug-gnustep mailing list
[EMAIL PROTECTED]
http://mail.gnu.org/mailman/listinfo/bug-gnustep

Reply via email to