Skip to content

Commit

Permalink
Remove context from noloc and final messages
Browse files Browse the repository at this point in the history
  • Loading branch information
sim642 committed Sep 28, 2023
1 parent e780a83 commit 3c7555b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/util/messages.ml
Original file line number Diff line number Diff line change
Expand Up @@ -294,7 +294,7 @@ let msg_noloc severity ?(tags=[]) ?(category=Category.Unknown) fmt =
if !AnalysisState.should_warn && Severity.should_warn severity && (Category.should_warn category || Tags.should_warn tags) then (
let finish doc =
let text = GobPretty.show doc in
add {tags = Category category :: tags; severity; multipiece = Single {loc = None; text; context = msg_context ()}} (* TODO: why context? *)
add {tags = Category category :: tags; severity; multipiece = Single {loc = None; text; context = None}}
in
Pretty.gprintf finish fmt
)
Expand Down Expand Up @@ -332,7 +332,7 @@ let msg_final severity ?(tags=[]) ?(category=Category.Unknown) fmt =
if !AnalysisState.should_warn then (
let finish doc =
let text = GobPretty.show doc in
add_final {tags = Category category :: tags; severity; multipiece = Single {loc = None; text; context = msg_context ()}} (* TODO: why context? *)
add_final {tags = Category category :: tags; severity; multipiece = Single {loc = None; text; context = None}}
in
Pretty.gprintf finish fmt
)
Expand Down

0 comments on commit 3c7555b

Please sign in to comment.