0
Fork 0
mirror of https://github.com/ninenines/cowboy.git synced 2025-07-14 12:20:24 +00:00

Disable warnings for erlang:get_stacktrace/0 in OTP-21+

This commit is contained in:
Loïc Hoguin 2018-06-27 17:52:25 +02:00
parent 6b1db885d1
commit 68ede9cfe4
No known key found for this signature in database
GPG key ID: 8A9DF795F6FED764
8 changed files with 32 additions and 0 deletions

View file

@ -15,6 +15,10 @@
-module(cowboy_req).
-ifdef(OTP_RELEASE).
-compile({nowarn_deprecated_function, [{erlang, get_stacktrace, 0}]}).
-endif.
%% Request.
-export([method/1]).
-export([version/1]).