summaryrefslogtreecommitdiff
path: root/src/rabbit.erl
diff options
context:
space:
mode:
authorMichael Klishin <mklishin@pivotal.io>2018-05-30 14:09:54 +0300
committerJean-Sébastien Pédron <jean-sebastien.pedron@dumbbell.fr>2018-06-07 11:40:56 +0200
commite3b2830647caa29add5df77438335294baa99e2d (patch)
tree02a68d650b13b4a7f4b6ae334cb8262944122160 /src/rabbit.erl
parent37075b6fd6779aeb5b76a3c3deb6d171b0256368 (diff)
downloadrabbitmq-server-git-e3b2830647caa29add5df77438335294baa99e2d.tar.gz
Compile Erlang/OTP 21
OTP 21 deprecated erlang:get_stacktrace/0 in favor of a new try/catch syntax. Unfortunately that's not realistic for projects that support multiple Erlang versions (like us) until OTP 21 can be the minimum version requirement. In order to compile we have to ignore the warning. The broad compiler option seems to be the most common way to support compilation on multiple OTP versions with warnings_as_errors. [#157964874]
Diffstat (limited to 'src/rabbit.erl')
-rw-r--r--src/rabbit.erl4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/rabbit.erl b/src/rabbit.erl
index cde1d0ad07..394ae699e3 100644
--- a/src/rabbit.erl
+++ b/src/rabbit.erl
@@ -16,6 +16,10 @@
-module(rabbit).
+%% Transitional step until we can require Erlang/OTP 21 and
+%% use the now recommended try/catch syntax for obtaining the stack trace.
+-compile(nowarn_deprecated_function).
+
-behaviour(application).
-export([start/0, boot/0, stop/0,