mirror of
https://github.com/ninenines/cowboy.git
synced 2025-07-14 20:30:23 +00:00
Disable warnings for erlang:get_stacktrace/0 in OTP-21+
This commit is contained in:
parent
6b1db885d1
commit
68ede9cfe4
8 changed files with 32 additions and 0 deletions
|
@ -20,6 +20,10 @@
|
||||||
-module(cowboy_handler).
|
-module(cowboy_handler).
|
||||||
-behaviour(cowboy_middleware).
|
-behaviour(cowboy_middleware).
|
||||||
|
|
||||||
|
-ifdef(OTP_RELEASE).
|
||||||
|
-compile({nowarn_deprecated_function, [{erlang, get_stacktrace, 0}]}).
|
||||||
|
-endif.
|
||||||
|
|
||||||
-export([execute/2]).
|
-export([execute/2]).
|
||||||
-export([terminate/4]).
|
-export([terminate/4]).
|
||||||
|
|
||||||
|
|
|
@ -14,6 +14,10 @@
|
||||||
|
|
||||||
-module(cowboy_http).
|
-module(cowboy_http).
|
||||||
|
|
||||||
|
-ifdef(OTP_RELEASE).
|
||||||
|
-compile({nowarn_deprecated_function, [{erlang, get_stacktrace, 0}]}).
|
||||||
|
-endif.
|
||||||
|
|
||||||
-export([init/5]).
|
-export([init/5]).
|
||||||
|
|
||||||
-export([system_continue/3]).
|
-export([system_continue/3]).
|
||||||
|
|
|
@ -14,6 +14,10 @@
|
||||||
|
|
||||||
-module(cowboy_http2).
|
-module(cowboy_http2).
|
||||||
|
|
||||||
|
-ifdef(OTP_RELEASE).
|
||||||
|
-compile({nowarn_deprecated_function, [{erlang, get_stacktrace, 0}]}).
|
||||||
|
-endif.
|
||||||
|
|
||||||
-export([init/5]).
|
-export([init/5]).
|
||||||
-export([init/9]).
|
-export([init/9]).
|
||||||
-export([init/11]).
|
-export([init/11]).
|
||||||
|
|
|
@ -15,6 +15,10 @@
|
||||||
-module(cowboy_loop).
|
-module(cowboy_loop).
|
||||||
-behaviour(cowboy_sub_protocol).
|
-behaviour(cowboy_sub_protocol).
|
||||||
|
|
||||||
|
-ifdef(OTP_RELEASE).
|
||||||
|
-compile({nowarn_deprecated_function, [{erlang, get_stacktrace, 0}]}).
|
||||||
|
-endif.
|
||||||
|
|
||||||
-export([upgrade/4]).
|
-export([upgrade/4]).
|
||||||
-export([upgrade/5]).
|
-export([upgrade/5]).
|
||||||
-export([loop/4]).
|
-export([loop/4]).
|
||||||
|
|
|
@ -15,6 +15,10 @@
|
||||||
|
|
||||||
-module(cowboy_req).
|
-module(cowboy_req).
|
||||||
|
|
||||||
|
-ifdef(OTP_RELEASE).
|
||||||
|
-compile({nowarn_deprecated_function, [{erlang, get_stacktrace, 0}]}).
|
||||||
|
-endif.
|
||||||
|
|
||||||
%% Request.
|
%% Request.
|
||||||
-export([method/1]).
|
-export([method/1]).
|
||||||
-export([version/1]).
|
-export([version/1]).
|
||||||
|
|
|
@ -17,6 +17,10 @@
|
||||||
-module(cowboy_rest).
|
-module(cowboy_rest).
|
||||||
-behaviour(cowboy_sub_protocol).
|
-behaviour(cowboy_sub_protocol).
|
||||||
|
|
||||||
|
-ifdef(OTP_RELEASE).
|
||||||
|
-compile({nowarn_deprecated_function, [{erlang, get_stacktrace, 0}]}).
|
||||||
|
-endif.
|
||||||
|
|
||||||
-export([upgrade/4]).
|
-export([upgrade/4]).
|
||||||
-export([upgrade/5]).
|
-export([upgrade/5]).
|
||||||
|
|
||||||
|
|
|
@ -15,6 +15,10 @@
|
||||||
-module(cowboy_stream_h).
|
-module(cowboy_stream_h).
|
||||||
-behavior(cowboy_stream).
|
-behavior(cowboy_stream).
|
||||||
|
|
||||||
|
-ifdef(OTP_RELEASE).
|
||||||
|
-compile({nowarn_deprecated_function, [{erlang, get_stacktrace, 0}]}).
|
||||||
|
-endif.
|
||||||
|
|
||||||
-export([init/3]).
|
-export([init/3]).
|
||||||
-export([data/4]).
|
-export([data/4]).
|
||||||
-export([info/3]).
|
-export([info/3]).
|
||||||
|
|
|
@ -17,6 +17,10 @@
|
||||||
-module(cowboy_websocket).
|
-module(cowboy_websocket).
|
||||||
-behaviour(cowboy_sub_protocol).
|
-behaviour(cowboy_sub_protocol).
|
||||||
|
|
||||||
|
-ifdef(OTP_RELEASE).
|
||||||
|
-compile({nowarn_deprecated_function, [{erlang, get_stacktrace, 0}]}).
|
||||||
|
-endif.
|
||||||
|
|
||||||
-export([is_upgrade_request/1]).
|
-export([is_upgrade_request/1]).
|
||||||
-export([upgrade/4]).
|
-export([upgrade/4]).
|
||||||
-export([upgrade/5]).
|
-export([upgrade/5]).
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue