Skip to content

clean up @ocaml.warning -> @warning #6027

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Mar 3, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion jscomp/core/lam_primitive.ml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
* along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. *)

[@@@ocaml.warning "+9"]
[@@@warning "+9"]

type ident = Ident.t

Expand Down
2 changes: 1 addition & 1 deletion jscomp/ext/hash_set.cppo.ml
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ module Make (H: Hashtbl.HashedType) : (Hash_set_gen.S with type key = H.t) = str
type t = key Hash_set_gen.t

#elif defined TYPE_POLY
[@@@ocaml.warning "-3"]
[@@@warning "-3"]
(* we used cppo the mixture does not work*)
external seeded_hash_param :
int -> int -> int -> 'a -> int = "caml_hash" "noalloc"
Expand Down
2 changes: 1 addition & 1 deletion jscomp/frontend/ast_external_process.ml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
* along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. *)

[@@@ocaml.warning "+9"]
[@@@warning "+9"]
(* record pattern match complete checker*)

let rec variant_can_unwrap_aux (row_fields : Parsetree.row_field list) : bool =
Expand Down
2 changes: 1 addition & 1 deletion jscomp/frontend/bs_ast_mapper.ml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
(* A generic Parsetree mapping class *)

(*
[@@@ocaml.warning "+9"]
[@@@warning "+9"]
(* Ensure that record patterns don't miss any field. *)
*)

Expand Down
2 changes: 1 addition & 1 deletion jscomp/js_parser/loc.mli
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ type position = {
[@@deriving_inline equal]
include
sig
[@@@ocaml.warning "-32"]
[@@@warning "-32"]
val equal_position : position -> position -> bool
end[@@ocaml.doc "@inline"]
[@@@end]
Expand Down
2 changes: 1 addition & 1 deletion jscomp/ml/ast_iterator.ml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
(* A generic Parsetree mapping class *)

(*
[@@@ocaml.warning "+9"]
[@@@warning "+9"]
(* Ensure that record patterns don't miss any field. *)
*)

Expand Down
2 changes: 1 addition & 1 deletion jscomp/ml/ast_mapper.ml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
(* A generic Parsetree mapping class *)

(*
[@@@ocaml.warning "+9"]
[@@@warning "+9"]
(* Ensure that record patterns don't miss any field. *)
*)

Expand Down
2 changes: 1 addition & 1 deletion jscomp/test/gpr_2614_test.ml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@

[@@@ocaml.warning "-a"]
[@@@warning "-a"]

type t = {

Expand Down
4 changes: 2 additions & 2 deletions jscomp/test/gpr_3209_test.ml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@

(* [@@@ocaml.warning "a-11-8-4-a"] *)
[@@@ocaml.warning "a+11+8-8"]
(* [@@@warning "a-11-8-4-a"] *)
[@@@warning "a+11+8-8"]
type t6 =
| T60
| T61
Expand Down
2 changes: 1 addition & 1 deletion jscomp/test/gpr_3595_test.ml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ let test_id = ref 0
let eq loc x y = Mt.eq_suites ~test_id ~suites loc x y


[@@@ocaml.warning "-a"]
[@@@warning "-a"]


(* let [|a|] = [|1|] *)
Expand Down
2 changes: 1 addition & 1 deletion jscomp/test/gpr_return_type_unused_attribute.ml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@


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

external mk : int ->
(
Expand Down