diff options
author | Tuncer Ayaz <[email protected]> | 2011-08-19 17:34:40 +0200 |
---|---|---|
committer | Tuncer Ayaz <[email protected]> | 2011-09-08 14:02:18 +0200 |
commit | 5d4aadda5f63b6734b98dedf681598f065117b7a (patch) | |
tree | e34369fbd831cd409cc507edbe7ce4e52e70e9af /lib/parsetools | |
parent | 9520bbfc80f5e62ea39c921e8e2fc805857a8ca6 (diff) | |
download | otp-5d4aadda5f63b6734b98dedf681598f065117b7a.tar.gz otp-5d4aadda5f63b6734b98dedf681598f065117b7a.tar.bz2 otp-5d4aadda5f63b6734b98dedf681598f065117b7a.zip |
yecc: optimize werror/1
Diffstat (limited to 'lib/parsetools')
-rw-r--r-- | lib/parsetools/src/yecc.erl | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/parsetools/src/yecc.erl b/lib/parsetools/src/yecc.erl index e51de0da2e..354d56527d 100644 --- a/lib/parsetools/src/yecc.erl +++ b/lib/parsetools/src/yecc.erl @@ -421,8 +421,8 @@ infile(Parent, Infilex, Options) -> Parent ! {self(), yecc_ret(St)}. werror(St) -> - member(warnings_as_errors, St#yecc.options) - andalso length(St#yecc.warnings) > 0. + St#yecc.warnings =/= [] + andalso member(warnings_as_errors, St#yecc.options). outfile(St0) -> case file:open(St0#yecc.outfile, [write, delayed_write]) of |