chore: make xref happy

This commit is contained in:
JimMoen 2023-03-13 17:29:20 +08:00
parent 5e67508033
commit 1b53274fbc
No known key found for this signature in database
GPG Key ID: 87A520B4F76BA86D
1 changed files with 2 additions and 1 deletions

View File

@ -124,7 +124,7 @@ maybe_start_schema_registry(_) ->
ok.
-endif.
-compile([{nowarn_unused_function, [{do_when_vsn_lte, 4}]}]).
-ifdef(EMQX_ENTERPRISE).
do_when_vsn_lte(SrcVsnStr, TargetVsn, ActionName, Action) ->
try
case list_to_integer(SrcVsnStr) of
@ -139,3 +139,4 @@ do_when_vsn_lte(SrcVsnStr, TargetVsn, ActionName, Action) ->
?INFO("~p failed: ~p", [ActionName, {Err, Reason, ST}]),
ok
end.
-endif.