diff options
author | Henrik Nord <[email protected]> | 2011-09-13 12:15:25 +0200 |
---|---|---|
committer | Henrik Nord <[email protected]> | 2011-09-13 12:15:25 +0200 |
commit | ae7e9b6d23c63bf73d9e22ea0b21b79b51900655 (patch) | |
tree | 014a38031436168347d42d9fe906a5abda114fd7 /lib/sasl/src/systools_lib.erl | |
parent | 7b5a8a65d1f4e8070fd1d771a79b7b5237100c63 (diff) | |
parent | e9e118a25ee822e4568d785844d249e083cd88cf (diff) | |
download | otp-ae7e9b6d23c63bf73d9e22ea0b21b79b51900655.tar.gz otp-ae7e9b6d23c63bf73d9e22ea0b21b79b51900655.tar.bz2 otp-ae7e9b6d23c63bf73d9e22ea0b21b79b51900655.zip |
Merge branch 'dev' into major
Conflicts:
lib/asn1/doc/src/asn1ct.xml
Diffstat (limited to 'lib/sasl/src/systools_lib.erl')
-rw-r--r-- | lib/sasl/src/systools_lib.erl | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/lib/sasl/src/systools_lib.erl b/lib/sasl/src/systools_lib.erl index f951647b79..1b6ea125d9 100644 --- a/lib/sasl/src/systools_lib.erl +++ b/lib/sasl/src/systools_lib.erl @@ -24,7 +24,7 @@ %% -export([file_term2binary/2, read_term/1, read_term_from_stream/2, - get_dirs/1, get_path/1]). + get_dirs/1, get_path/1, werror/2]). -include_lib("kernel/include/file.hrl"). @@ -219,6 +219,7 @@ flat([H|T], Ack) -> flat(T, [H|Ack]); flat([], Ack) -> lists:reverse(Ack). - - + +werror(Options, Warnings) -> + lists:member(warnings_as_errors, Options) andalso Warnings =/= []. |