mirror of
https://github.com/ninenines/cowboy.git
synced 2025-07-15 20:50:24 +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
|
@ -17,6 +17,10 @@
|
|||
-module(cowboy_websocket).
|
||||
-behaviour(cowboy_sub_protocol).
|
||||
|
||||
-ifdef(OTP_RELEASE).
|
||||
-compile({nowarn_deprecated_function, [{erlang, get_stacktrace, 0}]}).
|
||||
-endif.
|
||||
|
||||
-export([is_upgrade_request/1]).
|
||||
-export([upgrade/4]).
|
||||
-export([upgrade/5]).
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue