mirror of
https://github.com/processone/ejabberd.git
synced 2024-12-22 17:28:25 +01:00
Disable server_host warnings
This commit is contained in:
parent
78dfb832b8
commit
79a9a0ed29
@ -701,8 +701,17 @@ filter_upsert_sh(Table, ParseRes) ->
|
||||
end, ParseRes)
|
||||
end.
|
||||
|
||||
-ifdef(ENABLE_PT_WARNINGS).
|
||||
|
||||
add_warning(Pos, Warning) ->
|
||||
Marker = erl_syntax:revert(
|
||||
erl_syntax:warning_marker({Pos, ?MODULE, Warning})),
|
||||
put(warnings, [Marker | get(warnings)]),
|
||||
ok.
|
||||
|
||||
-else.
|
||||
|
||||
add_warning(_Pos, _Warning) ->
|
||||
ok.
|
||||
|
||||
-endif.
|
||||
|
Loading…
Reference in New Issue
Block a user