unofficial mirror of guile-devel@gnu.org 
 help / color / mirror / Atom feed
* Let's fix how warnings are specified
@ 2012-02-12  3:57 Mark H Weaver
  2012-02-14 14:00 ` Ludovic Courtès
  0 siblings, 1 reply; 6+ messages in thread
From: Mark H Weaver @ 2012-02-12  3:57 UTC (permalink / raw)
  To: guile-devel

Hello all,

At present, compile-time warnings can only be enabled, not disabled, and
there is no way to enable all warnings.  This means that the set of
warnings has to be hard-coded into every build system.  This is terrible
because it means that every time we add a new warning type, users won't
benefit from it unless they update their Makefiles.

We need a way for users to ask for a reasonable default set of warnings
(which should be almost all of them), possibly with some warnings
explicitly enabled or disabled.  We should also have a way to enable all
warnings.

It would also be nice if this could be done in such a way that external
build systems can do this without breaking compatibility with Guile
2.0.[0-5].

I'm looking for ideas of how to adjust our 'compile' and 'guild compile'
interfaces to accomplish these objectives.

Here's a preliminary proposal:

* Add new pseudo-warning types 'all' and 'default'.
* For each specific warning type 'FOO', we add 'no-FOO'.
* These new pseudo-warning types would be honored by both
  'compile' and 'guild compile'.

What do you think?

    Mark



^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2013-01-16 10:34 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-02-12  3:57 Let's fix how warnings are specified Mark H Weaver
2012-02-14 14:00 ` Ludovic Courtès
2012-02-14 16:56   ` Mark H Weaver
2012-02-15 22:09     ` Andy Wingo
2012-02-16 21:22     ` Ludovic Courtès
2013-01-16 10:34       ` Andy Wingo

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).