aboutsummaryrefslogtreecommitdiffstats
path: root/lib/dialyzer/src/dialyzer.hrl
diff options
context:
space:
mode:
authorHans Bolinder <[email protected]>2014-03-20 16:08:34 +0100
committerHans Bolinder <[email protected]>2014-03-20 16:08:34 +0100
commita50d7e892e3b2b3c8241eabd6bd0121672a6720f (patch)
treefa2b740128eb544fdcb7afcdac81a7f10c8ab215 /lib/dialyzer/src/dialyzer.hrl
parent164b0bb8b6ad3f065b520996296253b5dbe25f6b (diff)
parentad8bf9b974ed80bf4efcb4c2be606b482c6293a1 (diff)
downloadotp-a50d7e892e3b2b3c8241eabd6bd0121672a6720f.tar.gz
otp-a50d7e892e3b2b3c8241eabd6bd0121672a6720f.tar.bz2
otp-a50d7e892e3b2b3c8241eabd6bd0121672a6720f.zip
Merge branch 'hb/dialyzer/unknown_warnings'
* hb/dialyzer/unknown_warnings: Introduce a new warning option, 'no_unknown' Return warnings for unknown types and functions in Erlang Mode
Diffstat (limited to 'lib/dialyzer/src/dialyzer.hrl')
-rw-r--r--lib/dialyzer/src/dialyzer.hrl5
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/dialyzer/src/dialyzer.hrl b/lib/dialyzer/src/dialyzer.hrl
index 105a174e31..6cb4af6a46 100644
--- a/lib/dialyzer/src/dialyzer.hrl
+++ b/lib/dialyzer/src/dialyzer.hrl
@@ -2,7 +2,7 @@
%%%
%%% %CopyrightBegin%
%%%
-%%% Copyright Ericsson AB 2006-2012. All Rights Reserved.
+%%% Copyright Ericsson AB 2006-2014. All Rights Reserved.
%%%
%%% The contents of this file are subject to the Erlang Public License,
%%% Version 1.1, (the "License"); you may not use this file except in
@@ -58,6 +58,7 @@
-define(WARN_RACE_CONDITION, warn_race_condition).
-define(WARN_BEHAVIOUR, warn_behaviour).
-define(WARN_UNDEFINED_CALLBACK, warn_undefined_callbacks).
+-define(WARN_UNKNOWN, warn_unknown).
%%
%% The following type has double role:
@@ -73,7 +74,7 @@
| ?WARN_CONTRACT_SUPERTYPE | ?WARN_CALLGRAPH
| ?WARN_UNMATCHED_RETURN | ?WARN_RACE_CONDITION
| ?WARN_BEHAVIOUR | ?WARN_CONTRACT_RANGE
- | ?WARN_UNDEFINED_CALLBACK.
+ | ?WARN_UNDEFINED_CALLBACK | ?WARN_UNKNOWN.
%%
%% This is the representation of each warning as they will be returned