Article View: gnu.gcc.help
Article #52735How to stop GCC warning about what_id strings with -Wall?
From: Graham Stoney
Date: Fri, 29 May 1992 00:36
Date: Fri, 29 May 1992 00:36
19 lines
1317 bytes
1317 bytes
Does anyone know if it's possible to get gcc -Wunused (and hence -Wall) to not warn about static what_id strings that aren't referenced anywhere, without resorting to not using -Wunused?. For example: try.c: static char what_id[] = "@(#) Id$"; % gcc -c -Wall try.c try.c:1: warning: `what_id' defined but not used Ideally I'd like to use -Wall -Werror (warnings are evil! :-), but this spurious one makes that impossible. Any ideas?. thanks, Graham -- Graham Stoney. Ph: +61 2 805-2909 Fax: -2929 "a Perl script is correct if it's halfway readable | Larry Wall & and gets the job done before your boss fires you." | Randal Schwartz
Technical Details
Message-ID:
<1992May29.003645.21038@research.canon.oz.au>Path:
arc1-ca.pugleaf.net!sparky!uunet!usc!rpi!think.com!mips!mips!munnari.oz.au!metro!mama!greyhamShow Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 11318c,148137701fc673d0,start X-Google-Attributes: gid11318c,public X-Google-ArrivalTime: 1992-05-29 03:15:46 PST Newsgroups: gnu.gcc.help Path: arc1-ca.pugleaf.net!sparky!uunet!usc!rpi!think.com!mips!mips!munnari.oz.au!metro!mama!greyham From: greyham@research.canon.oz.au (Graham Stoney) Subject: How to stop GCC warning about what_id strings with -Wall? Message-ID: <1992May29.003645.21038@research.canon.oz.au> Sender: news@research.canon.oz.au Organization: Canon Information Systems Research Australia Distribution: gnu Date: Fri, 29 May 1992 00:36:45 GMT Lines: 19