Skip to content

Commit 4e2a51a

Browse files
committed
fix warning concat
1 parent fa4bd61 commit 4e2a51a

File tree

5 files changed

+13
-4
lines changed

5 files changed

+13
-4
lines changed

jscomp/bsb/bsb_warning.ml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,9 @@ let prepare_warning_concat ~(beg : bool) s =
4545
match s.[0] with
4646
| '0' .. '9' -> if beg then "-w +" ^ s else "+" ^ s
4747
| 'a' .. 'z' ->
48-
if beg then "-w " ^ s else "+" ^ s
48+
if beg then "-w " ^ s else "-" ^ s
49+
| 'A' .. 'Z' ->
50+
if beg then "-w " ^ s else "+" ^ s
4951
| _ ->
5052
if beg then "-w " ^ s else s
5153

jscomp/others/belt.ml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,6 @@
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-
[@@@warning "-49"]
2625
(** A stdlib shipped with BuckleScript
2726
2827
This stdlib is still in {i beta} but we encourage you to try it out and
@@ -119,6 +118,8 @@
119118
120119
*)
121120

121+
[@@@warning "-49"]
122+
122123
(** {!Belt.Id}
123124
124125
Provide utilities to create identified comparators or hashes for

jscomp/others/node.ml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,8 @@
2424

2525
(** Placeholder for Node bindings *)
2626

27+
[@@@warning "-49"]
28+
2729
module Path = Node_path
2830

2931
module Fs = Node_fs

lib/4.06.1/bsb.ml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7068,7 +7068,9 @@ let prepare_warning_concat ~(beg : bool) s =
70687068
match s.[0] with
70697069
| '0' .. '9' -> if beg then "-w +" ^ s else "+" ^ s
70707070
| 'a' .. 'z' ->
7071-
if beg then "-w " ^ s else "+" ^ s
7071+
if beg then "-w " ^ s else "-" ^ s
7072+
| 'A' .. 'Z' ->
7073+
if beg then "-w " ^ s else "+" ^ s
70727074
| _ ->
70737075
if beg then "-w " ^ s else s
70747076

lib/4.06.1/unstable/bsb_native.ml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7068,7 +7068,9 @@ let prepare_warning_concat ~(beg : bool) s =
70687068
match s.[0] with
70697069
| '0' .. '9' -> if beg then "-w +" ^ s else "+" ^ s
70707070
| 'a' .. 'z' ->
7071-
if beg then "-w " ^ s else "+" ^ s
7071+
if beg then "-w " ^ s else "-" ^ s
7072+
| 'A' .. 'Z' ->
7073+
if beg then "-w " ^ s else "+" ^ s
70727074
| _ ->
70737075
if beg then "-w " ^ s else s
70747076

0 commit comments

Comments
 (0)