From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.3 required=5.0 tests=BAYES_00,INVALID_MSGID autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,7f1e0b399cd01cb0 X-Google-Attributes: gid103376,public From: tmoran@bix.com (Tom Moran) Subject: Re: Unreferenced lock variables Date: 1999/04/11 Message-ID: <37111fb2.17220531@news.pacbell.net>#1/1 X-Deja-AN: 465249073 References: X-Complaints-To: abuse@pacbell.net X-Trace: typhoon-sf.pbi.net 923869361 207.214.211.176 (Sun, 11 Apr 1999 15:22:41 PDT) Organization: SBC Internet Services NNTP-Posting-Date: Sun, 11 Apr 1999 15:22:41 PDT Newsgroups: comp.lang.ada Date: 1999-04-11T00:00:00+00:00 List-Id: >Now, GNAT quite properly warns me that Lock is unused There are also other perfectly legal cases where GNAT warns you about something that doesn't need a warning. > pragma Volatile (Lock); >will eliminate the warning. I myself wouldn't clutter good Ada code with spurious and misleading things like this just to turn off overly conservative compiler warnings. If you can do that in an inocuous way, great, but this particular one is likely to confuse some poor maintainer down the road.,