Skip to content

Commit

Permalink
Fix spurious free var warning over CONFIG macro
Browse files Browse the repository at this point in the history
  • Loading branch information
OlivierNicole committed Dec 19, 2024
1 parent 796e973 commit dded0e8
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion compiler/lib/linker.ml
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,11 @@ module Check = struct
let freename = StringSet.diff freename Reserved.keyword in
let freename = StringSet.diff freename Reserved.provided in
let freename = StringSet.remove Global_constant.global_object freename in
let freename = if has_flags then StringSet.remove "FLAG" freename else freename in
let freename =
if has_flags
then StringSet.(diff freename (of_list [ "FLAG"; "CONFIG" ]))
else freename
in
if StringSet.mem Global_constant.old_global_object freename
then
warn
Expand Down

0 comments on commit dded0e8

Please sign in to comment.