aboutsummaryrefslogtreecommitdiffstats
path: root/lib/dialyzer/src/dialyzer_utils.erl
diff options
context:
space:
mode:
authorHans Bolinder <[email protected]>2014-10-06 15:59:23 +0200
committerHans Bolinder <[email protected]>2014-10-08 15:10:41 +0200
commit9990e4a86be55436fa153284a2791abd7f642a30 (patch)
tree0bdbd3ec4f60154a20e7fd26b0c3d8412ada5c84 /lib/dialyzer/src/dialyzer_utils.erl
parenta675467f2bba5c4e7fe643a46d3a48a3cf0b020a (diff)
downloadotp-9990e4a86be55436fa153284a2791abd7f642a30.tar.gz
otp-9990e4a86be55436fa153284a2791abd7f642a30.tar.bz2
otp-9990e4a86be55436fa153284a2791abd7f642a30.zip
dialyzer: fix bug concerning compiler option 'warnings_as_errors'
A typical scenario: the type digraph() is used in R16 (compilation with the option 'warnings_as_errors' results in no warning); then the module is analyzed by a 17 Dialyzer where digraph() is obsolete, and since the warning is turned into an error Dialyzer fails to load the module. Thanks to Michael Truog.
Diffstat (limited to 'lib/dialyzer/src/dialyzer_utils.erl')
-rw-r--r--lib/dialyzer/src/dialyzer_utils.erl2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/dialyzer/src/dialyzer_utils.erl b/lib/dialyzer/src/dialyzer_utils.erl
index 4e2ec67b35..a81670b117 100644
--- a/lib/dialyzer/src/dialyzer_utils.erl
+++ b/lib/dialyzer/src/dialyzer_utils.erl
@@ -451,6 +451,8 @@ cleanup_compile_options([asm|Opts]) ->
Opts;
cleanup_compile_options([from_core|Opts]) ->
Opts;
+cleanup_compile_options([warnings_as_errors|Opts]) ->
+ Opts;
%% The parse transform will already have been applied, may cause problems if it
%% is re-applied.
cleanup_compile_options([{parse_transform, _}|Opts]) ->