aboutsummaryrefslogtreecommitdiffstats
path: root/lib/compiler/src/compile.erl
diff options
context:
space:
mode:
authorPatrik Nyblom <[email protected]>2010-06-04 10:16:32 +0200
committerPatrik Nyblom <[email protected]>2010-06-23 14:43:38 +0200
commit7493d97d7f8211cb60d52a5cb6af9fb9983b84fa (patch)
tree8f7b813f0ec4c21320de20220f9ac2cd540737ea /lib/compiler/src/compile.erl
parentc1e94fa9a6fe4ae717d35dfbd1b628dc2e06d26a (diff)
downloadotp-7493d97d7f8211cb60d52a5cb6af9fb9983b84fa.tar.gz
otp-7493d97d7f8211cb60d52a5cb6af9fb9983b84fa.tar.bz2
otp-7493d97d7f8211cb60d52a5cb6af9fb9983b84fa.zip
Add warnings for shadowed variables in ms_transform funs
Also changed compiler to allow for warnings in parse_transforms.
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 4642fb68b3..39c4620da1 100644
--- a/lib/compiler/src/compile.erl
+++ b/lib/compiler/src/compile.erl
@@ -819,6 +819,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;