diff options
author | Loïc Hoguin <[email protected]> | 2018-08-14 07:47:32 +0200 |
---|---|---|
committer | Loïc Hoguin <[email protected]> | 2018-08-14 07:47:32 +0200 |
commit | 2a19b0fab81e4f4aec444ab37caff34c18d51017 (patch) | |
tree | b768e1f3b711ffd5646dcaec4d3adf7f6e81db9b | |
parent | e96b15d966af2ca8ff69b1d2ade162a225407f12 (diff) | |
download | asciideck-2a19b0fab81e4f4aec444ab37caff34c18d51017.tar.gz asciideck-2a19b0fab81e4f4aec444ab37caff34c18d51017.tar.bz2 asciideck-2a19b0fab81e4f4aec444ab37caff34c18d51017.zip |
Fix compilation for OTP 21
-rw-r--r-- | src/asciideck_to_html.erl | 4 | ||||
-rw-r--r-- | src/asciideck_to_manpage.erl | 4 |
2 files changed, 8 insertions, 0 deletions
diff --git a/src/asciideck_to_html.erl b/src/asciideck_to_html.erl index 64f150d..62dfc11 100644 --- a/src/asciideck_to_html.erl +++ b/src/asciideck_to_html.erl @@ -14,6 +14,10 @@ -module(asciideck_to_html). +-ifdef(OTP_RELEASE). +-compile({nowarn_deprecated_function, [{erlang, get_stacktrace, 0}]}). +-endif. + -export([translate/2]). translate(AST, Opts) -> diff --git a/src/asciideck_to_manpage.erl b/src/asciideck_to_manpage.erl index 4c623be..23b110c 100644 --- a/src/asciideck_to_manpage.erl +++ b/src/asciideck_to_manpage.erl @@ -16,6 +16,10 @@ %% description of the format expected for man pages. -module(asciideck_to_manpage). +-ifdef(OTP_RELEASE). +-compile({nowarn_deprecated_function, [{erlang, get_stacktrace, 0}]}). +-endif. + -export([translate/2]). translate(AST, Opts) -> |