Browse thread
"Warning U: this match case is unused." -- Yes, I know
-
David Teller
- Till Varoquaux
-
Edgar Friendly
-
David Teller
- Edgar Friendly
-
David Teller
[
Home
]
[ Index:
by date
|
by threads
]
[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
| Date: | -- (:) |
| From: | Edgar Friendly <thelema314@g...> |
| Subject: | Re: [Caml-list] "Warning U: this match case is unused." -- Yes, I know |
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