Skip to content

Commit 4fefca1

Browse files
authored
Merge pull request #37 from rabbitmq/silence-warning-when-testing-catch-explicitly
test/erlang_blocks: Silence warning when testing `catch` explicitly
2 parents 960e883 + 2c62a0f commit 4fefca1

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

test/erlang_blocks.erl

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,10 @@
1212
-feature(maybe_expr,enable).
1313
-endif.
1414

15+
-if(?OTP_RELEASE >= 29).
16+
-compile(nowarn_deprecated_catch).
17+
-endif.
18+
1519
-include_lib("eunit/include/eunit.hrl").
1620

1721
-include("test/helpers.hrl").

0 commit comments

Comments
 (0)