Skip to content

Commit 7dc4441

Browse files
authored
Merge pull request #6027 from rescript-lang/cleanup
clean up @ocaml.warning -> @warning
2 parents e31365e + 54d2913 commit 7dc4441

11 files changed

+12
-12
lines changed

jscomp/core/lam_primitive.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-
[@@@ocaml.warning "+9"]
25+
[@@@warning "+9"]
2626

2727
type ident = Ident.t
2828

jscomp/ext/hash_set.cppo.ml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ module Make (H: Hashtbl.HashedType) : (Hash_set_gen.S with type key = H.t) = str
4949
type t = key Hash_set_gen.t
5050

5151
#elif defined TYPE_POLY
52-
[@@@ocaml.warning "-3"]
52+
[@@@warning "-3"]
5353
(* we used cppo the mixture does not work*)
5454
external seeded_hash_param :
5555
int -> int -> int -> 'a -> int = "caml_hash" "noalloc"

jscomp/frontend/ast_external_process.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-
[@@@ocaml.warning "+9"]
25+
[@@@warning "+9"]
2626
(* record pattern match complete checker*)
2727

2828
let rec variant_can_unwrap_aux (row_fields : Parsetree.row_field list) : bool =

jscomp/frontend/bs_ast_mapper.ml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
(* A generic Parsetree mapping class *)
1717

1818
(*
19-
[@@@ocaml.warning "+9"]
19+
[@@@warning "+9"]
2020
(* Ensure that record patterns don't miss any field. *)
2121
*)
2222

jscomp/js_parser/loc.mli

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ type position = {
1212
[@@deriving_inline equal]
1313
include
1414
sig
15-
[@@@ocaml.warning "-32"]
15+
[@@@warning "-32"]
1616
val equal_position : position -> position -> bool
1717
end[@@ocaml.doc "@inline"]
1818
[@@@end]

jscomp/ml/ast_iterator.ml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
(* A generic Parsetree mapping class *)
1717

1818
(*
19-
[@@@ocaml.warning "+9"]
19+
[@@@warning "+9"]
2020
(* Ensure that record patterns don't miss any field. *)
2121
*)
2222

jscomp/ml/ast_mapper.ml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
(* A generic Parsetree mapping class *)
1717

1818
(*
19-
[@@@ocaml.warning "+9"]
19+
[@@@warning "+9"]
2020
(* Ensure that record patterns don't miss any field. *)
2121
*)
2222

jscomp/test/gpr_2614_test.ml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11

2-
[@@@ocaml.warning "-a"]
2+
[@@@warning "-a"]
33

44
type t = {
55

jscomp/test/gpr_3209_test.ml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11

2-
(* [@@@ocaml.warning "a-11-8-4-a"] *)
3-
[@@@ocaml.warning "a+11+8-8"]
2+
(* [@@@warning "a-11-8-4-a"] *)
3+
[@@@warning "a+11+8-8"]
44
type t6 =
55
| T60
66
| T61

jscomp/test/gpr_3595_test.ml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ let test_id = ref 0
33
let eq loc x y = Mt.eq_suites ~test_id ~suites loc x y
44

55

6-
[@@@ocaml.warning "-a"]
6+
[@@@warning "-a"]
77

88

99
(* let [|a|] = [|1|] *)

jscomp/test/gpr_return_type_unused_attribute.ml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11

22

3-
(* [@@@ocaml.warning "-101"] *)
3+
(* [@@@warning "-101"] *)
44

55
external mk : int ->
66
(

0 commit comments

Comments
 (0)