diff options
author | Patrik Nyblom <[email protected]> | 2010-06-04 10:16:32 +0200 |
---|---|---|
committer | Patrik Nyblom <[email protected]> | 2010-06-23 14:43:38 +0200 |
commit | 7493d97d7f8211cb60d52a5cb6af9fb9983b84fa (patch) | |
tree | 8f7b813f0ec4c21320de20220f9ac2cd540737ea /lib/compiler/src/compile.erl | |
parent | c1e94fa9a6fe4ae717d35dfbd1b628dc2e06d26a (diff) | |
download | otp-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.erl | 4 |
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; |