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.9 required=5.0 tests=BAYES_00,FREEMAIL_FROM autolearn=unavailable autolearn_force=no version=3.4.4 X-Received: by 10.157.1.234 with SMTP id e97mr4610062ote.33.1464804799026; Wed, 01 Jun 2016 11:13:19 -0700 (PDT) X-Received: by 10.157.56.116 with SMTP id r49mr102839otd.19.1464804798927; Wed, 01 Jun 2016 11:13:18 -0700 (PDT) Path: eternal-september.org!reader01.eternal-september.org!reader02.eternal-september.org!news.eternal-september.org!mx02.eternal-september.org!feeder.eternal-september.org!usenet.blueworldhosting.com!feeder01.blueworldhosting.com!peer01.iad.highwinds-media.com!news.highwinds-media.com!feed-me.highwinds-media.com!border1.nntp.dca1.giganews.com!nntp.giganews.com!q32no2367632qgq.0!news-out.google.com!z5ni148qge.0!nntp.google.com!q32no2367629qgq.0!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail Newsgroups: comp.lang.ada Date: Wed, 1 Jun 2016 11:13:18 -0700 (PDT) Complaints-To: groups-abuse@google.com Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=78.224.49.155; posting-account=uO_vzwoAAAAM7jhNZDkCkZpIghqP_5r8 NNTP-Posting-Host: 78.224.49.155 User-Agent: G2/1.0 MIME-Version: 1.0 Message-ID: <99182741-11ea-4892-96e9-3e086bdb93a1@googlegroups.com> Subject: Warning "others choice is redundant" on tagged object initialization From: pascal.malaise@gmail.com Injection-Date: Wed, 01 Jun 2016 18:13:18 +0000 Content-Type: text/plain; charset=UTF-8 X-Received-Bytes: 1566 X-Received-Body-CRC: 4193141272 Xref: news.eternal-september.org comp.lang.ada:30543 Date: 2016-06-01T11:13:18-07:00 List-Id: Gnat GPL 2016 is out... and raises a new warning for me. Here is the code: type Timer_Id is new Smart_Timer_Mng.Handle with null record; No_Timer : constant Timer_Id := (Smart_Timer_Mng.Null_Handle with others => <>); And the warning: timers.ads:140:56: warning: others choice is redundant timers.ads:140:56: warning: previous choices cover all components I thought that this was the only way to initialize a sub-object "with null". Am I missing something? Thank you