caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
From: Edgar Friendly <thelema314@gmail.com>
To: David Teller <David.Teller@univ-orleans.fr>
Cc: OCaml <caml-list@inria.fr>
Subject: Re: [Caml-list] "Warning U: this match case is unused." -- Yes, I know
Date: Wed, 27 Feb 2008 16:30:21 -0600	[thread overview]
Message-ID: <47C5E47D.4070107@gmail.com> (raw)
In-Reply-To: <1204150897.7005.44.camel@Blefuscu>

David Teller wrote:
> So I need to be able to specify what happens in case of match failure.
> Doing that is a one-liner, I can just add 
>   | _ -> foobar
> after my last match case. Now, I just want to get rid of Warning U.
> 
> Cheers,
>  David

The 'when true' trick seems as reasonable as you'll get to disable that
warning, unless you have the ability to pass -Wu to the compiler to
disable that warning.

E


      reply	other threads:[~2008-02-27 22:30 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-02-27 21:32 David Teller
2008-02-27 21:48 ` [Caml-list] " Till Varoquaux
2008-02-27 21:56   ` David Teller
2008-02-27 22:09 ` Edgar Friendly
2008-02-27 22:21   ` David Teller
2008-02-27 22:30     ` Edgar Friendly [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=47C5E47D.4070107@gmail.com \
    --to=thelema314@gmail.com \
    --cc=David.Teller@univ-orleans.fr \
    --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).