Skip to content

Commit f376368

Browse files
committed
suppress warnings in corrected way
1 parent 6f0d835 commit f376368

File tree

2 files changed

+15
-15
lines changed

2 files changed

+15
-15
lines changed

compiler/syntax/cli/res_cli.ml

+8-8
Original file line numberDiff line numberDiff line change
@@ -26,19 +26,19 @@
2626
*)
2727
module Color = struct
2828
(* use ANSI color codes, see https://en.wikipedia.org/wiki/ANSI_escape_code *)
29-
type color =
30-
| Black [@live]
29+
type[@warning "-37"] color =
30+
| Black
3131
| Red
32-
| Green [@live]
32+
| Green
3333
| Yellow
34-
| Blue [@live]
34+
| Blue
3535
| Magenta
3636
| Cyan
37-
| White [@live]
37+
| White
3838

39-
type style =
39+
type[@warning "-37"] style =
4040
| FG of color (* foreground *)
41-
| BG of color [@live] (* background *)
41+
| BG of color (* background *)
4242
| Bold
4343
| Reset
4444
| Dim
@@ -132,7 +132,7 @@ module Color = struct
132132
let term = try Sys.getenv "TERM" with Not_found -> "" in
133133
term <> "dumb" && term <> "" && isatty stderr
134134

135-
type setting = Auto [@live] | Always [@live] | Never [@live]
135+
type[@warning "-37"] setting = Auto | Always | Never
136136

137137
let setup =
138138
let first = ref true in

tests/syntax_benchmarks/Benchmark.ml

+7-7
Original file line numberDiff line numberDiff line change
@@ -33,16 +33,16 @@ module Time : sig
3333

3434
val now : unit -> t
3535

36-
val to_uint64 : t -> int64 [@@live]
36+
val[@warning "-32"] to_uint64 : t -> int64
3737

3838
(* let of_uint64_ns ns = ns *)
3939

40-
val nanosecond : t [@@live]
41-
val microsecond : t [@@live]
42-
val millisecond : t [@@live]
43-
val second : t [@@live]
44-
val minute : t [@@live]
45-
val hour : t [@@live]
40+
val[@warning "-32"] nanosecond : t
41+
val[@warning "-32"] microsecond : t
42+
val[@warning "-32"] millisecond : t
43+
val[@warning "-32"] second : t
44+
val[@warning "-32"] minute : t
45+
val[@warning "-32"] hour : t
4646

4747
val zero : t
4848

0 commit comments

Comments
 (0)