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


* Alexander Kabaev (ak03@gte.com) [20030429 22:57]:

> #ifndef lint
> static const char rcsid[] =
>   "$Id: src/dir/file.c 1.12 1999/08/27 23:45:12 me Exp$";
> #endif /* not lint */

Why not just use __attribute__((__unused__))?

Philipp

-- 
Philipp Thomas <pthomas@suse.de>
SuSE Linux AG, Deutschherrnstr. 15-19, D-90429 Nuremberg, Germany


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