caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
From: Josh Berdine <josh@berdine.net>
To: OCaml Mailing List <caml-list@inria.fr>
Subject: Re: [Caml-list] enabling warnings using compiler-libs
Date: Tue, 30 May 2017 00:17:34 +0100	[thread overview]
Message-ID: <jk60ig1sr7tfqp.fsf@fb.com> (raw)
In-Reply-To: <CADK7aFNOg=AObhv88TjYbio5Sv3BhjWcgTQerGGROiKF74axKw@mail.gmail.com>

Hi Nicolas,

>   Warnings.parse_options true "+50"
>
> would activate Warning 50 as an error, etc.

I see, thanks, that's helpful.  I was trusting the documentation (that does not mention Warnings) too much it seems.

Curiously, it only works with

    Warnings.parse_options false "+50"

but not

    Warnings.parse_options true "+50"

because the code in Docstrings.warn_bad_docstrings only checks Warnings.is_active but not Warnings.is_error.  But

    Warnings.parse_options false "@50"

followed later by

    Warnings.check_fatal ()

does both print the warning and raise Warnings.Errors.

Cheers, Josh

      reply	other threads:[~2017-05-29 23:17 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-05-29 21:59 Josh Berdine
2017-05-29 22:18 ` Nicolás Ojeda Bär
2017-05-29 23:17   ` Josh Berdine [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=jk60ig1sr7tfqp.fsf@fb.com \
    --to=josh@berdine.net \
    --cc=caml-list@inria.fr \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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 NNTP newsgroup(s).