Skip to content

Commit 254f58e

Browse files
committed
Disable deprecation warning on String.lowercase
This should be replaced by String.lowercase_ascii, but that wouldn't compile with 4.02.3 anymore. Asking everyone to upgrade to 4.04.2 might be too early for now. Signed-off-by: Edwin Török <[email protected]>
1 parent ad4c135 commit 254f58e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/syslog.ml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ let facility_of_string s =
4949

5050
exception Unknown_level of string
5151
let level_of_string s =
52-
match String.lowercase s with
52+
match (String.lowercase s)[@ocaml.warning "-3"] with
5353
| "emergency" -> Emerg
5454
| "alert" -> Alert
5555
| "critical" -> Crit

0 commit comments

Comments
 (0)