Skip to content

Commit 0487044

Browse files
committed
fix ffi warnings
1 parent 06467a6 commit 0487044

File tree

5 files changed

+5
-4
lines changed

5 files changed

+5
-4
lines changed

jscomp/test/exception_raise_test.ml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
1+
[@@@warning "-22"]
22

33
exception Local
44
exception B of int list

jscomp/test/ffi_arity_test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -170,7 +170,7 @@ function bar(fn) {
170170
return Curry._1(fn, /* () */0);
171171
}
172172

173-
(Curry._1(function (){console.log("forgiving arity")}, /* () */0));
173+
(Curry._1((function(){console.log("forgiving arity")}), /* () */0));
174174

175175
exports.f = f;
176176
exports.v = v;

jscomp/test/ffi_arity_test.ml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,4 +61,4 @@ let () = g () [@bs]
6161
let bar fn = fn ()
6262
(* let hh0001 = fun%raw a b -> {| a + b|}
6363
let hh0002 = fun%raw () -> {| console.log ("forgiving arity")|} *)
64-
;; bar (fun%raw () -> {|console.log("forgiving arity")|} )
64+
;; bar [%raw {|function(){console.log("forgiving arity")}|}]

jscomp/test/gpr_2682_test.ml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
1+
[@@@warning "-22"]
22
(* [@@@bs.config no_export] *)
33
(* let for_each n =
44
([%raw{|

jscomp/test/raw_output_test.ml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
[@@@warning "-22"]
12
let mk fn = fn ()
23

34

0 commit comments

Comments
 (0)