aboutsummaryrefslogtreecommitdiffstats
path: root/src/cowboy_http2.erl
diff options
context:
space:
mode:
authorLoïc Hoguin <[email protected]>2018-06-27 17:52:25 +0200
committerLoïc Hoguin <[email protected]>2018-06-27 17:52:25 +0200
commit68ede9cfe4b9dc1199405c981e160dd9edffcced (patch)
tree37fb7b8045ea13feccd8ce6ab0407158c7e0712c /src/cowboy_http2.erl
parent6b1db885d1b07f675e00daa641eeae2e36dbb1ba (diff)
downloadcowboy-68ede9cfe4b9dc1199405c981e160dd9edffcced.tar.gz
cowboy-68ede9cfe4b9dc1199405c981e160dd9edffcced.tar.bz2
cowboy-68ede9cfe4b9dc1199405c981e160dd9edffcced.zip
Disable warnings for erlang:get_stacktrace/0 in OTP-21+
Diffstat (limited to 'src/cowboy_http2.erl')
-rw-r--r--src/cowboy_http2.erl4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/cowboy_http2.erl b/src/cowboy_http2.erl
index 8a235af..70a5e46 100644
--- a/src/cowboy_http2.erl
+++ b/src/cowboy_http2.erl
@@ -14,6 +14,10 @@
-module(cowboy_http2).
+-ifdef(OTP_RELEASE).
+-compile({nowarn_deprecated_function, [{erlang, get_stacktrace, 0}]}).
+-endif.
+
-export([init/5]).
-export([init/9]).
-export([init/11]).