Skip to content

Commit e064f7c

Browse files
committed
no warning for xx-yy, delegate it to build system instead
1 parent da643f5 commit e064f7c

File tree

2 files changed

+4
-6
lines changed

2 files changed

+4
-6
lines changed

jscomp/bin/bsdep.ml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20550,9 +20550,8 @@ let is_unit_name name =
2055020550
;;
2055120551

2055220552
let check_unit_name ppf filename name =
20553-
if not (is_unit_name name) then
20554-
Location.print_warning (Location.in_file filename) ppf
20555-
(Warnings.Bad_module_name name);;
20553+
20554+
()
2055620555

2055720556
(* Compute name of module from output file name *)
2055820557
let module_of_filename ppf inputfile outputprefix =

jscomp/bin/whole_compiler.ml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20319,9 +20319,8 @@ let is_unit_name name =
2031920319
;;
2032020320

2032120321
let check_unit_name ppf filename name =
20322-
if not (is_unit_name name) then
20323-
Location.print_warning (Location.in_file filename) ppf
20324-
(Warnings.Bad_module_name name);;
20322+
20323+
()
2032520324

2032620325
(* Compute name of module from output file name *)
2032720326
let module_of_filename ppf inputfile outputprefix =

0 commit comments

Comments
 (0)