Skip to content

Commit 1d78c45

Browse files
committed
Fix dead lines order in warning
1 parent 623f185 commit 1d78c45

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/framework/control.ml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -135,6 +135,7 @@ struct
135135
warn_range b e :: acc
136136
) xs []
137137
in
138+
let msgs = List.rev msgs in (* lines in ascending order *)
138139
M.msg_group Warning ~category:Deadcode "Function '%s' has dead code" f msgs
139140
in
140141
let warn_file f = StringMap.iter (warn_func f) in

0 commit comments

Comments
 (0)