English version
Accueil     À propos     Téléchargement     Ressources     Contactez-nous    

Ce site est rarement mis à jour. Pour les informations les plus récentes, rendez-vous sur le nouveau site OCaml à l'adresse ocaml.org.

Browse thread
ocamlbuild: Enabling all warnings
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: 2007-05-19 (09:54)
From: Nicolas Pouillard <nicolas.pouillard@g...>
Subject: Re: [Caml-list] ocamlbuild: Enabling all warnings
On 5/18/07, Joel Reymont <joelr1@gmail.com> wrote:
> What is the easiest way to tell ocamlbuild to always invoke ocamlc
> with "-w a"?
> I understand that I can set up flags in myocamlbuild.ml but I would
> then have to apply them to files in my _tags, right?
> Overall, I'm not sure how to do this and welcome any suggestions.

Yes, but warnings flags are predeclared.

ocamlbuild -documentation

You will see that there is a bunch of tags concerning warnings

In your _tags file:
true: warn_a

Nicolas Pouillard