aboutsummaryrefslogtreecommitdiffstats
path: root/lib/stdlib
diff options
context:
space:
mode:
authorBjörn Gustavsson <[email protected]>2015-04-17 10:09:49 +0200
committerBjörn Gustavsson <[email protected]>2015-04-20 12:23:16 +0200
commite25cbf9bc9577b59a3e49a54f63e8ef7894e2353 (patch)
treeb0a4dccb5fdb69dce1dc1cdb77ea7d14125098d0 /lib/stdlib
parentddfbbcbbd489913120a55b2a054b046c68b40a8a (diff)
downloadotp-e25cbf9bc9577b59a3e49a54f63e8ef7894e2353.tar.gz
otp-e25cbf9bc9577b59a3e49a54f63e8ef7894e2353.tar.bz2
otp-e25cbf9bc9577b59a3e49a54f63e8ef7894e2353.zip
zip: Suppress a dialyzer warning for an unmatched return
A warning for an unmatched return was introduced in aaa7c917. The caller of openzip_close/1 ignores the return value, which could be an error tuple. In this situation, handling a fatal error, it is OK to ignore the return value; thus, we only need to make it explicit that we are ignoring the return value.
Diffstat (limited to 'lib/stdlib')
-rw-r--r--lib/stdlib/src/zip.erl2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/stdlib/src/zip.erl b/lib/stdlib/src/zip.erl
index 44e75ff15b..3c67bd67c6 100644
--- a/lib/stdlib/src/zip.erl
+++ b/lib/stdlib/src/zip.erl
@@ -1150,7 +1150,7 @@ server_loop(Parent, OpenZip) ->
From ! {self(), OpenZip},
server_loop(Parent, OpenZip);
{'EXIT', Parent, Reason} ->
- openzip_close(OpenZip),
+ _ = openzip_close(OpenZip),
exit({parent_died, Reason});
_ ->
{error, bad_msg}