aboutsummaryrefslogtreecommitdiffstats
path: root/lib/stdlib/src/digraph.erl
diff options
context:
space:
mode:
authorHans Bolinder <[email protected]>2016-02-03 14:44:16 +0100
committerHans Bolinder <[email protected]>2016-02-17 09:17:32 +0100
commit03e5309b312bd1c714a3874eba1384bf5b4feff5 (patch)
treefe67f7c8a61f0c77118574b079d3929249809006 /lib/stdlib/src/digraph.erl
parent811d6f7c9d9f86a388b8ba555b42934b9ed1c180 (diff)
downloadotp-03e5309b312bd1c714a3874eba1384bf5b4feff5.tar.gz
otp-03e5309b312bd1c714a3874eba1384bf5b4feff5.tar.bz2
otp-03e5309b312bd1c714a3874eba1384bf5b4feff5.zip
stdlib: Add suppression of Dialyzer warnings
Diffstat (limited to 'lib/stdlib/src/digraph.erl')
-rw-r--r--lib/stdlib/src/digraph.erl6
1 files changed, 5 insertions, 1 deletions
diff --git a/lib/stdlib/src/digraph.erl b/lib/stdlib/src/digraph.erl
index e51e560542..8a4df95027 100644
--- a/lib/stdlib/src/digraph.erl
+++ b/lib/stdlib/src/digraph.erl
@@ -1,7 +1,7 @@
%%
%% %CopyrightBegin%
%%
-%% Copyright Ericsson AB 1996-2014. All Rights Reserved.
+%% Copyright Ericsson AB 1996-2016. All Rights Reserved.
%%
%% Licensed under the Apache License, Version 2.0 (the "License");
%% you may not use this file except in compliance with the License.
@@ -338,6 +338,8 @@ edge(G, E) ->
%%
-spec new_edge_id(graph()) -> edge().
+-dialyzer({no_improper_lists, new_edge_id/1}).
+
new_edge_id(G) ->
NT = G#digraph.ntab,
[{'$eid', K}] = ets:lookup(NT, '$eid'),
@@ -350,6 +352,8 @@ new_edge_id(G) ->
%%
-spec new_vertex_id(graph()) -> vertex().
+-dialyzer({no_improper_lists, new_vertex_id/1}).
+
new_vertex_id(G) ->
NT = G#digraph.ntab,
[{'$vid', K}] = ets:lookup(NT, '$vid'),