Skip to content

Commit fa4bd61

Browse files
committed
strict warnings/ fix ci
1 parent fcb353f commit fa4bd61

File tree

9 files changed

+12
-12
lines changed

9 files changed

+12
-12
lines changed

jscomp/ext/bsc_warnings.ml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,5 +72,5 @@
7272
7373
- 102 Bs_polymorphic_comparison
7474
*)
75-
let defaults_w = "+a-4-9-40-41-42-50-102"
75+
let defaults_w = "+a-4-40-41-42-50-102"
7676
let defaults_warn_error = "-a+5+101";;

jscomp/others/belt.ml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
* along with this program; if not, write to the Free Software
2323
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. *)
2424

25-
25+
[@@@warning "-49"]
2626
(** A stdlib shipped with BuckleScript
2727
2828
This stdlib is still in {i beta} but we encourage you to try it out and

jscomp/runtime/caml_int64.ml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -168,8 +168,8 @@ let rec mul this
168168
| Int64 {lo = 0n ; hi = 0n}, _
169169
| _, Int64 {lo = 0n; hi = 0n}
170170
-> zero
171-
| Int64 {lo = 0n; hi = - 0x80000000n}, Int64 {lo }
172-
| Int64 {lo}, Int64 {lo = 0n; hi = - 0x80000000n}
171+
| Int64 {lo = 0n; hi = - 0x80000000n}, Int64 {lo;_ }
172+
| Int64 {lo;_}, Int64 {lo = 0n; hi = - 0x80000000n}
173173
->
174174
if (lo & 0x1n) = 0n then
175175
zero
@@ -329,7 +329,7 @@ let rec div self other =
329329
if eq other one || eq other neg_one then self
330330
else if eq other min_int then one
331331
else
332-
let (Int64 {hi = other_hi}) = other in
332+
let (Int64 {hi = other_hi;_}) = other in
333333
(* now |other| >= 2, so |this/other| < |MIN_VALUE|*)
334334
let half_this = asr_ self 1 in
335335
let approx = lsl_ (div half_this other) 1 in
@@ -365,7 +365,7 @@ let rec div self other =
365365
else 2. ** (log2 -. 48.) in
366366
let approxRes = ref (of_float approx.contents) in
367367
let approxRem = ref (mul approxRes.contents other) in
368-
while (match approxRem.contents with Int64 {hi}-> hi) < 0n || gt approxRem.contents rem.contents do
368+
while (match approxRem.contents with Int64 {hi;_}-> hi) < 0n || gt approxRem.contents rem.contents do
369369
approx.contents <- approx.contents -. delta;
370370
approxRes.contents <- of_float approx.contents;
371371
approxRem.contents <- mul approxRes.contents other

lib/4.06.1/bsb.ml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6969,7 +6969,7 @@ module Bsc_warnings
69696969

69706970
- 102 Bs_polymorphic_comparison
69716971
*)
6972-
let defaults_w = "+a-4-9-40-41-42-50-102"
6972+
let defaults_w = "+a-4-40-41-42-50-102"
69736973
let defaults_warn_error = "-a+5+101";;
69746974

69756975
end

lib/4.06.1/bsdep.ml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,7 @@ module Bsc_warnings
138138

139139
- 102 Bs_polymorphic_comparison
140140
*)
141-
let defaults_w = "+a-4-9-40-41-42-50-102"
141+
let defaults_w = "+a-4-40-41-42-50-102"
142142
let defaults_warn_error = "-a+5+101";;
143143

144144
end

lib/4.06.1/unstable/bsb_native.ml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6969,7 +6969,7 @@ module Bsc_warnings
69696969

69706970
- 102 Bs_polymorphic_comparison
69716971
*)
6972-
let defaults_w = "+a-4-9-40-41-42-50-102"
6972+
let defaults_w = "+a-4-40-41-42-50-102"
69736973
let defaults_warn_error = "-a+5+101";;
69746974

69756975
end

lib/4.06.1/unstable/js_compiler.ml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25485,7 +25485,7 @@ module Bsc_warnings
2548525485

2548625486
- 102 Bs_polymorphic_comparison
2548725487
*)
25488-
let defaults_w = "+a-4-9-40-41-42-50-102"
25488+
let defaults_w = "+a-4-40-41-42-50-102"
2548925489
let defaults_warn_error = "-a+5+101";;
2549025490

2549125491
end

lib/4.06.1/unstable/js_refmt_compiler.ml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25485,7 +25485,7 @@ module Bsc_warnings
2548525485

2548625486
- 102 Bs_polymorphic_comparison
2548725487
*)
25488-
let defaults_w = "+a-4-9-40-41-42-50-102"
25488+
let defaults_w = "+a-4-40-41-42-50-102"
2548925489
let defaults_warn_error = "-a+5+101";;
2549025490

2549125491
end

lib/4.06.1/whole_compiler.ml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7473,7 +7473,7 @@ module Bsc_warnings
74737473

74747474
- 102 Bs_polymorphic_comparison
74757475
*)
7476-
let defaults_w = "+a-4-9-40-41-42-50-102"
7476+
let defaults_w = "+a-4-40-41-42-50-102"
74777477
let defaults_warn_error = "-a+5+101";;
74787478

74797479
end

0 commit comments

Comments
 (0)