summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMatthias Radestock <matthias@lshift.net>2009-11-04 16:02:26 +0000
committerMatthias Radestock <matthias@lshift.net>2009-11-04 16:02:26 +0000
commit5b6ca852ff301c0ad9e45562d8d89ebbf23645b3 (patch)
treed2f76515eec19f7857d15fdafc93f51e56fbcdd7 /src
parent3394efabb87ad14d20a8df7bd681345658594e09 (diff)
parent852c0ba85aa3b018017911cd648fa0ad3cf3e80a (diff)
downloadrabbitmq-server-git-5b6ca852ff301c0ad9e45562d8d89ebbf23645b3.tar.gz
merge bug21570 into default
Diffstat (limited to 'src')
-rw-r--r--src/gen_server2.erl14
-rw-r--r--src/rabbit_plugin_activator.erl11
2 files changed, 25 insertions, 0 deletions
diff --git a/src/gen_server2.erl b/src/gen_server2.erl
index a2d9350c4e..53edf8deef 100644
--- a/src/gen_server2.erl
+++ b/src/gen_server2.erl
@@ -180,6 +180,20 @@
-import(error_logger, [format/2]).
%%%=========================================================================
+%%% Specs. These exist only to shut up dialyzer's warnings
+%%%=========================================================================
+
+-ifdef(use_specs).
+
+-spec(handle_common_termination/6 ::
+ (any(), any(), any(), atom(), any(), any()) -> no_return()).
+
+-spec(hibernate/7 ::
+ (pid(), any(), any(), atom(), any(), queue(), any()) -> no_return()).
+
+-endif.
+
+%%%=========================================================================
%%% API
%%%=========================================================================
diff --git a/src/rabbit_plugin_activator.erl b/src/rabbit_plugin_activator.erl
index e22d844fdf..a2ac74ef81 100644
--- a/src/rabbit_plugin_activator.erl
+++ b/src/rabbit_plugin_activator.erl
@@ -39,6 +39,17 @@
-define(BaseApps, [rabbit]).
%%----------------------------------------------------------------------------
+%% Specs
+%%----------------------------------------------------------------------------
+
+-ifdef(use_specs).
+
+-spec(start/0 :: () -> no_return()).
+-spec(stop/0 :: () -> 'ok').
+
+-endif.
+
+%%----------------------------------------------------------------------------
start() ->
%% Ensure Rabbit is loaded so we can access it's environment