diff options
author | Tuncer Ayaz <[email protected]> | 2011-09-01 13:49:52 +0200 |
---|---|---|
committer | Tuncer Ayaz <[email protected]> | 2011-09-08 14:02:17 +0200 |
commit | 899dbcf1cae11318ee1617eca4b61311e83f5ec5 (patch) | |
tree | 7d8f714abed0febcafa0bf31ebc0fd37fa3a1705 /lib/compiler/src | |
parent | 25f32f4683d0692afeda4b0cbf03a1c67f2f25ab (diff) | |
download | otp-899dbcf1cae11318ee1617eca4b61311e83f5ec5.tar.gz otp-899dbcf1cae11318ee1617eca4b61311e83f5ec5.tar.bz2 otp-899dbcf1cae11318ee1617eca4b61311e83f5ec5.zip |
compile: optimize werror/1
Diffstat (limited to 'lib/compiler/src')
-rw-r--r-- | lib/compiler/src/compile.erl | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/compiler/src/compile.erl b/lib/compiler/src/compile.erl index d013d440e1..e46c667e47 100644 --- a/lib/compiler/src/compile.erl +++ b/lib/compiler/src/compile.erl @@ -343,7 +343,7 @@ comp_ret_err(#compile{warnings=Warn0,errors=Err0,options=Opts}=St) -> not_werror(St) -> not werror(St). werror(#compile{options=Opts,warnings=Ws}) -> - member(warnings_as_errors, Opts) andalso Ws =/= []. + Ws =/= [] andalso member(warnings_as_errors, Opts). %% messages_per_file([{File,[Message]}]) -> [{File,[Message]}] messages_per_file(Ms) -> |