Fix all compiler warnings (#7992)

This commit is contained in:
Michał Muskała
2018-07-27 16:42:24 +02:00
committed by GitHub
parent 72e642634d
commit ffb931a5ac
8 changed files with 19 additions and 23 deletions
+1 -1
View File
@@ -145,6 +145,6 @@ raise(none, File, Kind, Message) ->
raise({Line, _, _}, File, Kind, Message) when is_integer(Line) ->
raise(Line, File, Kind, Message);
raise(Line, File, Kind, Message) when is_integer(Line), is_binary(File), is_binary(Message) ->
Stacktrace = try throw(ok) catch ok -> erlang:get_stacktrace() end,
Stacktrace = try throw(ok) catch ?WITH_STACKTRACE(_, _, Stack) Stack end,
Exception = Kind:exception([{description, Message}, {file, File}, {line, Line}]),
erlang:raise(error, Exception, tl(Stacktrace)).