comp.lang.ada
 help / color / mirror / Atom feed
From: Georg Bauhaus <rm.dash-bauhaus@futureapps.de>
Subject: Re: How to nicely distribute a simple Ada library?
Date: Thu, 08 Dec 2011 16:37:44 +0100
Date: 2011-12-08T16:37:45+01:00	[thread overview]
Message-ID: <4ee0d9c9$0$6581$9b4e6d93@newsspool3.arcor-online.net> (raw)
In-Reply-To: <wccehwfupse.fsf@shell01.TheWorld.com>

On 08.12.11 15:00, Robert A Duff wrote:

> The warnings ("Never heard of pragma Unreferenced") might be annoying,
> but that's unavoidable.  Different compilers give different warnings.
> If you're using multiple compilers, pick one whose warnings you like,
> and pay attention to them (and use "pragma Warnings(Off)" or whatever
> as appropriate).  For other compilers, just ignore the warnings.

One such warning is

p.adb: Warning: line 10 col 10 LRM:2.8(11), Unrecognized pragma name =>
"unreferenced", Continuing

With programmable IDEs, warnings can be ignored inasmuch as the IDE
allows classifying and filtering messages. One easy way to achieve
this is to ignore messages that have uniquely identifying substrings.


  To_Be_Ignored.Append ("Unrecognized pragma name => ""unreferenced""");

  Pattern := +"";
  for Warning of To_Be_Ignored loop
     Pattern := Pattern or Warning;
  end loop;

Then, something like

$ gnatmake -Pfoo 2>&1 | grep -v "${Pattern}"



  reply	other threads:[~2011-12-08 15:38 UTC|newest]

Thread overview: 31+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-12-04 11:19 How to nicely distribute a simple Ada library? Natasha Kerensikova
2011-12-04 12:06 ` Dmitry A. Kazakov
2011-12-05 11:55   ` Yannick Duchêne (Hibou57)
2011-12-05 11:58   ` Yannick Duchêne (Hibou57)
2011-12-05 13:31     ` Dmitry A. Kazakov
2011-12-05 14:11       ` Yannick Duchêne (Hibou57)
2011-12-05 15:22         ` Georg Bauhaus
2011-12-05 15:51           ` Yannick Duchêne (Hibou57)
2011-12-05 17:50             ` Dmitry A. Kazakov
2011-12-05 15:24         ` Dmitry A. Kazakov
2011-12-06  0:22   ` Randy Brukardt
2011-12-06  6:27     ` J-P. Rosen
2011-12-08  7:47       ` Randy Brukardt
2011-12-08 10:17         ` Ludovic Brenta
2011-12-09  0:00           ` Randy Brukardt
2011-12-09  8:42             ` Ludovic Brenta
2011-12-06  8:57   ` Ludovic Brenta
2011-12-06  9:47     ` Dmitry A. Kazakov
2011-12-06 10:13       ` Ludovic Brenta
2011-12-08 15:53   ` Yannick Duchêne (Hibou57)
2011-12-08 18:34     ` Dmitry A. Kazakov
2011-12-04 12:28 ` Ludovic Brenta
2011-12-04 14:39 ` Georg Bauhaus
2011-12-08 10:18   ` Natasha Kerensikova
2011-12-08 11:28     ` Ludovic Brenta
2011-12-08 14:00     ` Robert A Duff
2011-12-08 15:37       ` Georg Bauhaus [this message]
2011-12-04 17:42 ` Jeffrey Carter
2011-12-04 20:25 ` Tero Koskinen
2011-12-04 22:04 ` Simon Wright
2011-12-05 11:53 ` Yannick Duchêne (Hibou57)
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox