From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on ip-172-31-74-118.ec2.internal X-Spam-Level: X-Spam-Status: No, score=-0.9 required=3.0 tests=BAYES_00,XPRIO autolearn=no autolearn_force=no version=3.4.6 Path: eternal-september.org!reader02.eternal-september.org!gandalf.srv.welterde.de!news.jacob-sparre.dk!franka.jacob-sparre.dk!pnx.dk!.POSTED.rrsoftware.com!not-for-mail From: "Randy Brukardt" Newsgroups: comp.lang.ada Subject: Re: calling function but ignoring results Date: Wed, 30 Jun 2021 22:55:12 -0500 Organization: JSA Research & Innovation Message-ID: References: <69a59fdc-72bb-4202-99fc-d776530de653n@googlegroups.com> <867diayk1o.fsf@stephe-leake.org> Injection-Date: Thu, 1 Jul 2021 03:55:14 -0000 (UTC) Injection-Info: franka.jacob-sparre.dk; posting-host="rrsoftware.com:24.196.82.226"; logging-data="16055"; mail-complaints-to="news@jacob-sparre.dk" X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2900.5931 X-RFC2646: Format=Flowed; Original X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.7246 Xref: reader02.eternal-september.org comp.lang.ada:62313 List-Id: "Stephen Leake" wrote in message news:867diayk1o.fsf@stephe-leake.org... ... > declare > dont_care : BOOLEAN := foo( x, y ); > pragma Unreferenced (dont_care); > begin > null; > end; > > which makes the intent clear. I don't know if Unreferenced was proposed > as a language addition; it's not in Ada 202x. Unreferenced controls warnings, which (with one exception) are not an Ada concept. So how would we describe what it does? Aspect unreferenced does nothing at all?? :-) One could imagine an aspect that caused a Legality Rule against an actual reference, but I don't think that is what the GNAT aspect does. Randy.