diff options
author | Tuncer Ayaz <[email protected]> | 2011-08-19 17:35:45 +0200 |
---|---|---|
committer | Tuncer Ayaz <[email protected]> | 2011-09-08 14:02:19 +0200 |
commit | 130f34e9dece00f9f0ff785921cdded1914b69de (patch) | |
tree | 24530634e5786dadd324e7b21bd158bc38aa95ea /lib/sasl/src/systools_lib.erl | |
parent | fa90ce72d5df40de7d70c1d6a7b2be1451c7fc9a (diff) | |
download | otp-130f34e9dece00f9f0ff785921cdded1914b69de.tar.gz otp-130f34e9dece00f9f0ff785921cdded1914b69de.tar.bz2 otp-130f34e9dece00f9f0ff785921cdded1914b69de.zip |
systools: add warnings_as_errors option
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 =/= []. |