Version française
Home     About     Download     Resources     Contact us    
Browse thread
change warning to error?
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: -- (:)
From: John Max Skaller <skaller@m...>
Subject: Re: change warning to error?
Norman Ramsey wrote:
> 
> Is it possible to instruct ocamlc that the `partial match' warning
> should be treated as an error, i.e., that it stop compilation and
> produce no output?  In using SML/NJ, I have found this option extremely
> useful---I don't have to worry about overlooking a warning in six
> pages of compiler output.

I agree this would be useful, although my problem is different:
when I compile some modules that get this warning, I _expect_
it due to changes in earlier type declarations, but I'm not up
to working on it. The problem is that a subsequent 'make' will not
recompile the module because it was previously successful.
So I don't even get to look through six pages of warnings: the whole
build looks clean. (I have to 'make clean' to see the problem,
which I may forget to do).

-- 
John (Max) Skaller, mailto:skaller@maxtal.com.au
10/1 Toxteth Rd Glebe NSW 2037 Australia voice: 61-2-9660-0850
checkout Vyper http://Vyper.sourceforge.net
download Interscript http://Interscript.sourceforge.net