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: Joy with new GCC 3.3 warnings -- HTF to shut them up?


Title: Re: Joy with new GCC 3.3 warnings -- HTF to shut them up?

>Previously one could shut up GCC complaining about unused file-scope
>variables by making them 'const', now with GCC 3.3 that doesn't work.
>
>So how is one suppose to quiet GCC about SCCS, $Id$, copyright[], and
>other identification strings?  BSD has a lot of:
>
>    #ifndef lint
>    static const char copyright[] =
>    "@(#) Copyright (c) 1992, 1993, 1994\n\
>        The Regents of the University of California.  All rights
>        reserved.\n";
>    static const char sccsid[] = "@(#)chflags.c   8.5 (Berkeley) 4/1/94";
>    #endif
>
>I tried adding "__attribute__((__unused__))" in various places in the
>definition, but that didn't work.
>

Probably because it should have been "__attribute__((unused))". :)

R. Kelley Cook
Ford Edison Project
Distributed Readiness and Project Assurance
313.337.5246
kcook34@ford.com

Attachment: smime.p7s
Description: S/MIME cryptographic signature


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