From 9990e4a86be55436fa153284a2791abd7f642a30 Mon Sep 17 00:00:00 2001 From: Hans Bolinder Date: Mon, 6 Oct 2014 15:59:23 +0200 Subject: 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. --- lib/dialyzer/src/dialyzer_utils.erl | 2 ++ 1 file changed, 2 insertions(+) (limited to 'lib/dialyzer/src') 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]) -> -- cgit v1.2.3