comp.lang.ada
 help / color / mirror / Atom feed
From: Robert A Duff <bobduff@shell01.TheWorld.com>
Subject: Re: How to nicely distribute a simple Ada library?
Date: Thu, 08 Dec 2011 09:00:17 -0500
Date: 2011-12-08T09:00:17-05:00	[thread overview]
Message-ID: <wccehwfupse.fsf@shell01.TheWorld.com> (raw)
In-Reply-To: slrnje13m8.1lme.lithiumcat@sigil.instinctive.eu

Natasha Kerensikova <lithiumcat@gmail.com> writes:

> It seems I do use a GNAT-specific pragma, which is pragma Unreferenced.
> I find it very useful (with the associated "unreferenced" warning), but
> only during active development. I guess once released, and used without
> modification, it becomes useless?

Note that a compiler that doesn't support pragma Unreferenced will
ignore it (with a warning).  Same for any other unrecognized pragmas.
So if a pragma doesn't do anything important at run time (like
Unreferenced), then it's safe to leave it in.

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.

- Bob



  parent reply	other threads:[~2011-12-08 14:00 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 [this message]
2011-12-08 15:37       ` Georg Bauhaus
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