GCC warnings for unused global variables

Philipp Thomas pthomas@suse.de
Wed Apr 30 14:51:00 GMT 2003


* 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



More information about the Gcc mailing list