aboutsummaryrefslogtreecommitdiffstats
path: root/lib/diameter/doc/src/diameter_sctp.xml
diff options
context:
space:
mode:
authorHaitao Li <[email protected]>2011-08-26 10:21:41 +0800
committerHenrik Nord <[email protected]>2011-09-08 09:39:56 +0200
commit29610af8d3db844568cffc4218f79fc68bfd8094 (patch)
tree3367a75b78c1cb336443b4043a92e98961eb3b81 /lib/diameter/doc/src/diameter_sctp.xml
parent22dae863060e0d66fa268f6d1cd4d6f084b850ab (diff)
downloadotp-29610af8d3db844568cffc4218f79fc68bfd8094.tar.gz
otp-29610af8d3db844568cffc4218f79fc68bfd8094.tar.bz2
otp-29610af8d3db844568cffc4218f79fc68bfd8094.zip
ms_transform: Fix incorrect `variable shadowed' warnings
Compile below module resulting incorrect warning: $ cat tmp.erl -module(tmp). -export([tmp/1]). -include_lib("stdlib/include/ms_transform.hrl"). tmp(X) when X > 100 -> Y=X, Y; tmp(X) -> ets:fun2ms(fun(Y) -> {X, Y} end). $ erlc tmp.erl ./tmp.erl:8: Warning: variable 'Y' shadowed in ms_transform fun head The scope for a variable is its function clause. Variables bound in one function clause should not interfere with other function clauses. This patch removes incorrect passing of variable bindings from one function clause to another. Signed-off-by: Haitao Li <[email protected]>
Diffstat (limited to 'lib/diameter/doc/src/diameter_sctp.xml')
0 files changed, 0 insertions, 0 deletions