Article View: gnu.gcc.help
Article #52206Re: SCCS strings embedded in code with -Wall
From: Harald Fuchs
Date: Tue, 19 Jan 1993 15:25
Date: Tue, 19 Jan 1993 15:25
15 lines
1565 bytes
1565 bytes
In article <1993Jan18.171516.19966@picker.com>, parma@picker.com (Mike Parma) writes: > The problem with the above solution is that now 'print_version' is > a global function that might conflict with another '.c' file that > contained the same construct. This is not much different from removing > the 'static' declaration from 'rcsid'. And of course if you declare > 'print_version' as 'static' then the function is not used :). How about compiling with -Wall -Dlint and putting #ifdef lint around the static definition? Since gcc -Wall makes most of lint obsolete, it might even be a reasonable idea to let gcc define lint when called with -Wall. -- Harald Fuchs <hf@tk.telematik.informatik.uni-karlsruhe.de>
Technical Details
Message-ID:
<HF.93Jan19152555@whyaduck.tk.telematik.informatik.uni-karlsruhe.de>Path:
arc1-ca.pugleaf.net!sparky!uunet!spool.mu.edu!yale.edu!ira.uka.de!rz.uni-karlsruhe.de!news.rz.uni-karlsruhe.de!hfReferences:
<1993Jan15.201556.9105@picker.com> <bkFYsLbr@twinsun.com> <1993Jan18.171516.19966@picker.com>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 11318c,cb44527f7ddf772a X-Google-Attributes: gid11318c,public X-Google-ArrivalTime: 1993-01-19 09:42:49 PST Path: arc1-ca.pugleaf.net!sparky!uunet!spool.mu.edu!yale.edu!ira.uka.de!rz.uni-karlsruhe.de!news.rz.uni-karlsruhe.de!hf From: hf@tk.telematik.informatik.uni-karlsruhe.de (Harald Fuchs) Newsgroups: gnu.gcc.help Subject: Re: SCCS strings embedded in code with -Wall Date: 19 Jan 93 15:25:55 Organization: Karlsruhe University, Germany Lines: 15 Message-ID: <HF.93Jan19152555@whyaduck.tk.telematik.informatik.uni-karlsruhe.de> References: <1993Jan15.201556.9105@picker.com> <bkFYsLbr@twinsun.com> <1993Jan18.171516.19966@picker.com> NNTP-Posting-Host: whyaduck.telematik.informatik.uni-karlsruhe.de In-reply-to: parma@picker.com's message of Mon, 18 Jan 1993 17:15:16 GMT