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=-0.3 required=5.0 tests=BAYES_00, REPLYTO_WITHOUT_TO_CC autolearn=no autolearn_force=no version=3.4.4 X-Google-Thread: 103376,29523eff834b8169 X-Google-NewGroupId: yes X-Google-Attributes: gida07f3367d7,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!news3.google.com!proxad.net!feeder1-2.proxad.net!newsfeed.straub-nv.de!news.ett.com.ua!not-for-mail From: anon@anon.org Newsgroups: comp.lang.ada Subject: Re: Warnings about hiding Date: Sat, 9 Oct 2010 20:11:07 +0000 (UTC) Organization: ETT newsserver Message-ID: References: <44e7dff1-04f5-46ad-8521-e4fe030c9c29@26g2000yqv.googlegroups.com> Reply-To: anon@anon.org NNTP-Posting-Host: dialup-4.225.170.218.dial1.dallas1.level3.net X-Complaints-To: usenet@news.ett.com.ua X-Notice: Filtered by postfilter v. 0.6.1 X-Newsreader: IBM NewsReader/2 2.0 Xref: g2news1.google.com comp.lang.ada:14468 Date: 2010-10-09T20:11:07+00:00 List-Id: In , Simon Wright writes: >anon@anon.org writes: > >> So, drop the requirement of using "-gnatwh" is the only answer. >> Unless you want or need to see what caused the first routine or >> variable to be hidden. > >In similar vein I use -gnatwaL because I don't want to know about all >the elaboration-order checks one might need if not using GNAT's static >elaboration. > >On the other hand, I really would have thought that an overriding >subprogram shouldn't provoke the warning... You could say its a built-in debugging/learning tools, just like the spell checker that GNAT contains. Adacore has spent a great deal of time to help programmers understand were errors can and do occur using the source code. Just like they did by aiding programmers with syntax errors by including the spell checker with the best guess on the misspelled word.