File tree 2 files changed +9
-7
lines changed
2 files changed +9
-7
lines changed Original file line number Diff line number Diff line change @@ -406,9 +406,10 @@ let emitWarning ~decl ~message deadWarning =
406
406
WriteDeadAnnotations. addLineAnnotation ~decl
407
407
else None
408
408
in
409
- decl.path
410
- |> Path. toModuleName ~is Type:(decl.declKind |> DeclKind. isType)
411
- |> DeadModules. checkModuleDead ~file Name:decl.pos.pos_fname;
409
+ if Config. reportTransitive then
410
+ decl.path
411
+ |> Path. toModuleName ~is Type:(decl.declKind |> DeclKind. isType)
412
+ |> DeadModules. checkModuleDead ~file Name:decl.pos.pos_fname;
412
413
Log_. warning ~loc
413
414
(DeadWarning
414
415
{
@@ -555,9 +556,10 @@ module Decl = struct
555
556
&& (Config. reportTransitive || not (hasRefBelow () ))
556
557
in
557
558
if shouldEmitWarning then (
558
- decl.path
559
- |> Path. toModuleName ~is Type:(decl.declKind |> DeclKind. isType)
560
- |> DeadModules. checkModuleDead ~file Name:decl.pos.pos_fname;
559
+ if Config. reportTransitive then
560
+ decl.path
561
+ |> Path. toModuleName ~is Type:(decl.declKind |> DeclKind. isType)
562
+ |> DeadModules. checkModuleDead ~file Name:decl.pos.pos_fname;
561
563
emitWarning ~decl ~message name)
562
564
end
563
565
Original file line number Diff line number Diff line change 1
1
DCE src/Dce.res
2
- issues:2
2
+ issues:0
3
3
You can’t perform that action at this time.
0 commit comments