Article View: gnu.gcc.help
Article #51335Want to override -Wunused for one variable
From: Bob Weissman
Date: Fri, 04 Jun 1993 21:01
Date: Fri, 04 Jun 1993 21:01
18 lines
1214 bytes
1214 bytes
I typically have SCCS ids in static strings in my C modules. These all
look the same, like this;
static const char * const sccsid = "%W% %E% %U% Procase";
The problem is that I like to use -Wunused (actually -Wall), but I'd
like to somehow suppress the "defined but not used" warning for this
one variable. I do want the strings preserved in the object and
executable output files (that's the whole point).
Is there any way to do this?
Thanks,
--
-- Bob Weissman, Procase Corp.
-- Internet: bobw@procase.com
-- UUCP: ...!{uunet, voder, veritas}!procase!bobw
--
Technical Details
Message-ID:
<580@procase.UUCP>Path:
arc1-ca.pugleaf.net!gmd.de!Germany.EU.net!mcsun!uknet!pipex!doc.ic.ac.uk!agate!spool.mu.edu!olivea!hal.com!decwrl!nsc!voder!procase!procase.comShow Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 11318c,8334eb9c3e89b21,start X-Google-Attributes: gid11318c,public X-Google-ArrivalTime: 1993-06-04 21:30:39 PST Path: arc1-ca.pugleaf.net!gmd.de!Germany.EU.net!mcsun!uknet!pipex!doc.ic.ac.uk!agate!spool.mu.edu!olivea!hal.com!decwrl!nsc!voder!procase!procase.com From: bobw@procase.com (Bob Weissman) Newsgroups: gnu.gcc.help Subject: Want to override -Wunused for one variable Message-ID: <580@procase.UUCP> Date: 4 Jun 93 21:01:18 GMT Sender: bobw@procase.UUCP Reply-To: bobw@procase.com Distribution: gnu Organization: Procase Corporation, San Jose, CA, USA Lines: 18