aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLoïc Hoguin <[email protected]>2018-08-14 07:47:32 +0200
committerLoïc Hoguin <[email protected]>2018-08-14 07:47:32 +0200
commit2a19b0fab81e4f4aec444ab37caff34c18d51017 (patch)
treeb768e1f3b711ffd5646dcaec4d3adf7f6e81db9b
parente96b15d966af2ca8ff69b1d2ade162a225407f12 (diff)
downloadasciideck-2a19b0fab81e4f4aec444ab37caff34c18d51017.tar.gz
asciideck-2a19b0fab81e4f4aec444ab37caff34c18d51017.tar.bz2
asciideck-2a19b0fab81e4f4aec444ab37caff34c18d51017.zip
Fix compilation for OTP 21
-rw-r--r--src/asciideck_to_html.erl4
-rw-r--r--src/asciideck_to_manpage.erl4
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) ->