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: Tue, 6 Jul 2021 18:07:38 -0500 Organization: JSA Research & Innovation Message-ID: References: <69a59fdc-72bb-4202-99fc-d776530de653n@googlegroups.com><58bbf3ca-6252-4543-a50e-0483181d1b37n@googlegroups.com><9ce930a5-d63e-4985-8371-1fc2836b554an@googlegroups.com> Injection-Date: Tue, 6 Jul 2021 23:07:40 -0000 (UTC) Injection-Info: franka.jacob-sparre.dk; posting-host="rrsoftware.com:24.196.82.226"; logging-data="32420"; 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:62335 List-Id: "Simon Wright" wrote in message news:lya6n32oxi.fsf@pushface.org... ... > I think any compiler needs some facility like this, at least if it has > any pretensions to interfacing to foreign languages; but it probably > won't be the same as Ada's. Perhaps "any compiler that tries to warn about unused objects". Janus/Ada doesn't do that, so it doesn't need some facility to turn it off, either. But I grant that if it did have such a warning, then some method to turn it off is needed. (We have a pragma Warning_Level for turning off classes of warnings in selective areas, nothing for individual warnings -- my assumption has been that a warning message mught change when the compiler gets upgraded, but the class of warning will not [unless of course there is something else wrong].) Randy.