chore: fix dialyzer warning

This commit is contained in:
zhongwencool 2024-06-17 12:51:27 +08:00
parent a49e5877ec
commit 17809a5803
2 changed files with 4 additions and 1 deletions

View File

@ -6,7 +6,7 @@
{vsn, "0.3.1"}, {vsn, "0.3.1"},
{modules, []}, {modules, []},
{registered, []}, {registered, []},
{applications, [kernel, stdlib, emqx_ctl]}, {applications, [kernel, stdlib, emqx_ctl, redbug]},
{mod, {emqx_machine_app, []}}, {mod, {emqx_machine_app, []}},
{env, []}, {env, []},
{licenses, ["Apache-2.0"]}, {licenses, ["Apache-2.0"]},

View File

@ -35,6 +35,9 @@
-export([lock/0, unlock/0]). -export([lock/0, unlock/0]).
-export([trace/0, t/0, t/1, t/2, t_msg/0, t_msg/1, t_stop/0]). -export([trace/0, t/0, t/1, t/2, t_msg/0, t_msg/1, t_stop/0]).
-dialyzer({nowarn_function, start_trace/3}).
-dialyzer({no_return, [t/0, t/1, t/2]}).
lock() -> emqx_restricted_shell:lock(). lock() -> emqx_restricted_shell:lock().
unlock() -> emqx_restricted_shell:unlock(). unlock() -> emqx_restricted_shell:unlock().