aboutsummaryrefslogtreecommitdiffstats
path: root/lib/stdlib/src
diff options
context:
space:
mode:
authorSiri Hansen <[email protected]>2013-04-25 11:07:25 +0200
committerHans Bolinder <[email protected]>2013-05-06 12:14:12 +0200
commit406413f90cc5d45e17df158b9e742112e9f7657e (patch)
treedb3190c95ab4229890f374b4a33b8c26fce473a2 /lib/stdlib/src
parent21a7806986d58480367cff8d385a12f9659c7754 (diff)
downloadotp-406413f90cc5d45e17df158b9e742112e9f7657e.tar.gz
otp-406413f90cc5d45e17df158b9e742112e9f7657e.tar.bz2
otp-406413f90cc5d45e17df158b9e742112e9f7657e.zip
Fix unmatched_return warnings in stdlib
Diffstat (limited to 'lib/stdlib/src')
-rw-r--r--lib/stdlib/src/ets.erl2
-rw-r--r--lib/stdlib/src/supervisor.erl5
-rw-r--r--lib/stdlib/src/sys.erl2
3 files changed, 6 insertions, 3 deletions
diff --git a/lib/stdlib/src/ets.erl b/lib/stdlib/src/ets.erl
index 87e6502668..33ff14aa58 100644
--- a/lib/stdlib/src/ets.erl
+++ b/lib/stdlib/src/ets.erl
@@ -978,7 +978,7 @@ file2tab(File, Opts) ->
erlang:raise(error,ErReason,erlang:get_stacktrace())
end
after
- disk_log:close(Name)
+ _ = disk_log:close(Name)
end
catch
throw:TReason2 ->
diff --git a/lib/stdlib/src/supervisor.erl b/lib/stdlib/src/supervisor.erl
index 26821e0e09..d18387568d 100644
--- a/lib/stdlib/src/supervisor.erl
+++ b/lib/stdlib/src/supervisor.erl
@@ -758,7 +758,10 @@ restart(Child, State) ->
[self(),Id]),
{ok,NState2};
{try_again, NState2, #child{name=ChName}} ->
- timer:apply_after(0,?MODULE,try_again_restart,[self(),ChName]),
+ {ok, _TRef} = timer:apply_after(0,
+ ?MODULE,
+ try_again_restart,
+ [self(),ChName]),
{ok,NState2};
Other ->
Other
diff --git a/lib/stdlib/src/sys.erl b/lib/stdlib/src/sys.erl
index 5359a6d5bc..04f8dfb61b 100644
--- a/lib/stdlib/src/sys.erl
+++ b/lib/stdlib/src/sys.erl
@@ -317,7 +317,7 @@ handle_system_msg(Msg, From, Parent, Mod, Debug, Misc, Hib) ->
handle_system_msg(SysState, Msg, From, Parent, Mod, Debug, Misc, Hib) ->
case do_cmd(SysState, Msg, Parent, Mod, Debug, Misc) of
{suspended, Reply, NDebug, NMisc} ->
- gen:reply(From, Reply),
+ _ = gen:reply(From, Reply),
suspend_loop(suspended, Parent, Mod, NDebug, NMisc, Hib);
{running, Reply, NDebug, NMisc} ->
_ = gen:reply(From, Reply),