[erlang-bugs] try ... catch hidden compile warning

Anton Ryabkov anton.ryabkov@REDACTED
Tue Nov 26 03:46:20 CET 2013


Hello,

on Erlang R16B02 I've found that try ... catch constraction hidden compile
warning: "variable 'Sth' is unused". On Erlang R15B02 warning exists. The
sample at the attach. When I complile by Erlang R15B02 I have two warnings:
Eshell V5.9.1  (abort with ^G)
1> c(no_warning).
no_warning.erl:10: Warning: variable 'STh' is unused
no_warning.erl:22: Warning: variable 'STh' is unused
{ok,no_warning}

But when I compile by Erlang R16B02 I have only one warning:
Eshell V5.10.3  (abort with ^G)
1> c(no_warning).
no_warning.erl:22: Warning: variable 'STh' is unused
{ok,no_warning}

Anton
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://erlang.org/pipermail/erlang-bugs/attachments/20131126/7e6eae9b/attachment.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: no_warning.erl
Type: text/x-erlang
Size: 393 bytes
Desc: not available
URL: <http://erlang.org/pipermail/erlang-bugs/attachments/20131126/7e6eae9b/attachment.bin>


More information about the erlang-bugs mailing list