diff options
author | Björn Gustavsson <[email protected]> | 2018-11-21 05:55:12 +0100 |
---|---|---|
committer | Björn Gustavsson <[email protected]> | 2018-11-21 06:10:16 +0100 |
commit | df0ce3328e4ac64c0bd82fb10a879d4f0732b261 (patch) | |
tree | c94dcb451c6ce1490641a70a5d41fa0b411e804e /lib/ssh | |
parent | c0812d51fbb550d4a53df128e4ec322746f015ca (diff) | |
download | otp-df0ce3328e4ac64c0bd82fb10a879d4f0732b261.tar.gz otp-df0ce3328e4ac64c0bd82fb10a879d4f0732b261.tar.bz2 otp-df0ce3328e4ac64c0bd82fb10a879d4f0732b261.zip |
Fix inadvertently suppressed warning for unused variable
An external fun could inadvertently suppress warnings for
unused variables, such as in this example:
bug() ->
BugVar = foo(),
if true ->
fun m:f/1
end.
There would be no warning that `BugVar` was unused.
The bug was introduced in ff432e262e652, which was the commit
that extended external funs to allow variables.
https://bugs.erlang.org/browse/ERL-762
Diffstat (limited to 'lib/ssh')
0 files changed, 0 insertions, 0 deletions