aboutsummaryrefslogtreecommitdiffstats
path: root/lib/stdlib
diff options
context:
space:
mode:
authorSiri Hansen <[email protected]>2014-09-30 10:07:55 +0200
committerSiri Hansen <[email protected]>2014-09-30 10:08:30 +0200
commit506c3ca1f1481d722576fd59887bc5f06581528d (patch)
tree626a394a1907f92114f6593bf842e78d1395462d /lib/stdlib
parent88d5c0edbd08e069bc20cf13fa90bca59eb43e86 (diff)
downloadotp-506c3ca1f1481d722576fd59887bc5f06581528d.tar.gz
otp-506c3ca1f1481d722576fd59887bc5f06581528d.tar.bz2
otp-506c3ca1f1481d722576fd59887bc5f06581528d.zip
Fix dialyzer warnings for unmatched return in gen_event
This was introduced by PR 445, commit 2e78c5f3e7f9991484ceb5d56e5b0086331101be.
Diffstat (limited to 'lib/stdlib')
-rw-r--r--lib/stdlib/src/gen_event.erl5
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/stdlib/src/gen_event.erl b/lib/stdlib/src/gen_event.erl
index 40c5a93d59..469acdc37c 100644
--- a/lib/stdlib/src/gen_event.erl
+++ b/lib/stdlib/src/gen_event.erl
@@ -1,7 +1,7 @@
%%
%% %CopyrightBegin%
%%
-%% Copyright Ericsson AB 1996-2013. All Rights Reserved.
+%% Copyright Ericsson AB 1996-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
@@ -302,7 +302,8 @@ terminate_server(Reason, Parent, MSL, ServerName) ->
exit(Reason).
reply({From, Ref}, Msg) ->
- From ! {Ref, Msg}.
+ From ! {Ref, Msg},
+ ok.
%% unlink the supervisor process of all supervised handlers.
%% We do not want a handler supervisor to EXIT due to the