aboutsummaryrefslogtreecommitdiffstats
path: root/lib/compiler/src/compile.erl
diff options
context:
space:
mode:
authorPatrik Nyblom <[email protected]>2010-08-30 14:17:26 +0200
committerPatrik Nyblom <[email protected]>2010-08-30 14:17:26 +0200
commit65334420f7d6e76372a8c1cf6a60ae47d3368d22 (patch)
treed0b030fd72ca0cc80e19e90b4945c335a764ace3 /lib/compiler/src/compile.erl
parent0bcb7009fe4f3bbdf630c226d7e7335f9c005cf0 (diff)
parent1737f4527545ba39de0233078a03a53442dc5fec (diff)
downloadotp-65334420f7d6e76372a8c1cf6a60ae47d3368d22.tar.gz
otp-65334420f7d6e76372a8c1cf6a60ae47d3368d22.tar.bz2
otp-65334420f7d6e76372a8c1cf6a60ae47d3368d22.zip
Merge branch 'pan/ms_transform_warnings/OTP-6759' into dev
* pan/ms_transform_warnings/OTP-6759: Add testcases for ms_transform warning and fix scoping Add warnings for shadowed variables in ms_transform funs
Diffstat (limited to 'lib/compiler/src/compile.erl')
-rw-r--r--lib/compiler/src/compile.erl4
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/compiler/src/compile.erl b/lib/compiler/src/compile.erl
index ed7a9144a8..26da3ecad2 100644
--- a/lib/compiler/src/compile.erl
+++ b/lib/compiler/src/compile.erl
@@ -824,6 +824,10 @@ foldl_transform(St, [T|Ts]) ->
{'EXIT',R} ->
Es = [{St#compile.ifile,[{none,compile,{parse_transform,T,R}}]}],
{error,St#compile{errors=St#compile.errors ++ Es}};
+ {warning, Forms, Ws} ->
+ foldl_transform(
+ St#compile{code=Forms,
+ warnings=St#compile.warnings ++ Ws}, Ts);
Forms ->
foldl_transform(St#compile{code=Forms}, Ts)
end;