From 899dbcf1cae11318ee1617eca4b61311e83f5ec5 Mon Sep 17 00:00:00 2001 From: Tuncer Ayaz Date: Thu, 1 Sep 2011 13:49:52 +0200 Subject: compile: optimize werror/1 --- lib/compiler/src/compile.erl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib') 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) -> -- cgit v1.2.3