mirror of
https://github.com/processone/ejabberd
synced 2025-10-03 01:39:35 +02:00
Disable server_host warnings
This commit is contained in:
parent
78dfb832b8
commit
79a9a0ed29
1 changed files with 9 additions and 0 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue