Skip to content

Commit 1ce75bf

Browse files
committed
fix a old bug: -w a deactivate some error check
note there are some other ways introducing nativeint: - type nativeint - specialization ``` let f (x:nativeint) y = x > y ``` - format style printf
1 parent 561e142 commit 1ce75bf

File tree

6 files changed

+2392
-2412
lines changed

6 files changed

+2392
-2412
lines changed

jscomp/syntax/bs_ast_invariant.ml

+2-7
Original file line numberDiff line numberDiff line change
@@ -57,9 +57,6 @@ let mark_used_bs_attribute ((x,_) : Parsetree.attribute) =
5757
if not x.loc.loc_ghost then
5858
Hash_set_poly.add used_attributes x
5959

60-
let dummy_unused_attribute : Warnings.t = (Bs_unused_attribute "")
61-
62-
6360

6461
let warn_unused_attribute
6562
(({txt; loc} as sloc, _) : Parsetree.attribute) =
@@ -201,9 +198,7 @@ let rec iter_warnings_on_sigi (stru : Parsetree.signature) =
201198

202199

203200
let emit_external_warnings_on_structure (stru : Parsetree.structure) =
204-
if Warnings.is_active dummy_unused_attribute then
205-
emit_external_warnings.structure emit_external_warnings stru
201+
emit_external_warnings.structure emit_external_warnings stru
206202

207203
let emit_external_warnings_on_signature (sigi : Parsetree.signature) =
208-
if Warnings.is_active dummy_unused_attribute then
209-
emit_external_warnings.signature emit_external_warnings sigi
204+
emit_external_warnings.signature emit_external_warnings sigi

0 commit comments

Comments
 (0)