Version française
Home     About     Download     Resources     Contact us    

This site is updated infrequently. For up-to-date information, please visit the new OCaml website at

Browse thread
Warning options
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: 2005-02-14 (17:17)
From: Damien Doligez <damien.doligez@i...>
Subject: Re: [Caml-list] Warning options
On Feb 11, 2005, at 01:48, skaller wrote:

> Ocaml appears to be following the same path as gcc with
> respect to warnings: if a warning option isn't recognized
> it is reported as a hard error.
> This feature creates an unnecessary upwards compatibility
> barrier, and I request the INRIA team consider fixing it.
> The correct strategy is to generate a warning, but
> continue compiling anyhow.

You're right, I will remove the check and silently ignore the
bad warning flags.

> (d) I put -w y to disable the warning

In the meantime, you can use "-w aCDFMPSUVX" to disable the Y
warning in a compatible way.  Not very elegant, but it should

> or provide a new warning like -w W w which disables/enables
> the warning about bad warning flags depending on the
> default (kind of complex ..)

I don't think we want to go that far.

-- Damien