diff options
author | Hans Bolinder <[email protected]> | 2016-02-04 12:55:15 +0100 |
---|---|---|
committer | Hans Bolinder <[email protected]> | 2016-02-17 09:17:32 +0100 |
commit | d7ec9c47050ca07d60bf2cdf1c1ab4d7ee2ef75c (patch) | |
tree | 03065f99a5843b96a9848e03a9b15f09e5f3fc23 /lib/runtime_tools/src/dbg.erl | |
parent | 03e5309b312bd1c714a3874eba1384bf5b4feff5 (diff) | |
download | otp-d7ec9c47050ca07d60bf2cdf1c1ab4d7ee2ef75c.tar.gz otp-d7ec9c47050ca07d60bf2cdf1c1ab4d7ee2ef75c.tar.bz2 otp-d7ec9c47050ca07d60bf2cdf1c1ab4d7ee2ef75c.zip |
runtime_tools: Add suppression of Dialyzer warnings
Diffstat (limited to 'lib/runtime_tools/src/dbg.erl')
-rw-r--r-- | lib/runtime_tools/src/dbg.erl | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/lib/runtime_tools/src/dbg.erl b/lib/runtime_tools/src/dbg.erl index 22b531e6ee..6eea1a0917 100644 --- a/lib/runtime_tools/src/dbg.erl +++ b/lib/runtime_tools/src/dbg.erl @@ -1,7 +1,7 @@ %% %% %CopyrightBegin% %% -%% Copyright Ericsson AB 1996-2013. 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. @@ -1276,6 +1276,8 @@ gen_reader_file(ReadFun, Filename) -> exit({client_cannot_open, Error}) end. +-dialyzer({no_improper_lists, mk_reader/2}). + %% Creates and returns a reader (lazy list). mk_reader(ReadFun, Source) -> fun() -> @@ -1301,6 +1303,8 @@ mk_reader_wrap([Hd | _] = WrapFiles) -> exit({client_cannot_open, Error}) end. +-dialyzer({no_improper_lists, mk_reader_wrap/2}). + mk_reader_wrap([_Hd | Tail] = WrapFiles, File) -> fun() -> case read_term(fun file_read/2, File) of |