aboutsummaryrefslogtreecommitdiffstats
path: root/src/cowboy_http.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_http.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_http.erl')
-rw-r--r--src/cowboy_http.erl4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/cowboy_http.erl b/src/cowboy_http.erl
index 157f246..818a88a 100644
--- a/src/cowboy_http.erl
+++ b/src/cowboy_http.erl
@@ -14,6 +14,10 @@
-module(cowboy_http).
+-ifdef(OTP_RELEASE).
+-compile({nowarn_deprecated_function, [{erlang, get_stacktrace, 0}]}).
+-endif.
+
-export([init/5]).
-export([system_continue/3]).