From 685f14ef609d686c67997d14b376a932cdfa0adb Mon Sep 17 00:00:00 2001 From: "Paul J. Davis" Date: Tue, 30 Jun 2020 12:20:18 -0500 Subject: [PATCH] Silence compiler warnings for tests --- .travis.yml | 1 + test/jiffy_17_copy_strings_tests.erl | 2 +- test/jiffy_util.hrl | 3 +++ 3 files changed, 5 insertions(+), 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index f63225f..53bb22d 100644 --- a/.travis.yml +++ b/.travis.yml @@ -3,6 +3,7 @@ notifications: email: paul.joseph.davis@gmail.com script: make check otp_release: + - 23.0 - 22.2.4 - 21.3.8.1 - 20.3.8.22 diff --git a/test/jiffy_17_copy_strings_tests.erl b/test/jiffy_17_copy_strings_tests.erl index 645ad96..359b997 100644 --- a/test/jiffy_17_copy_strings_tests.erl +++ b/test/jiffy_17_copy_strings_tests.erl @@ -17,7 +17,7 @@ check_binaries(Values) when is_list(Values) -> check_binaries(Bin) when is_binary(Bin) -> io:format("~s :: ~p ~p", [Bin, byte_size(Bin), binary:referenced_byte_size(Bin)]), byte_size(Bin) == binary:referenced_byte_size(Bin); -check_binaries(Bin) -> +check_binaries(_Bin) -> true. diff --git a/test/jiffy_util.hrl b/test/jiffy_util.hrl index 6002543..983f7e3 100644 --- a/test/jiffy_util.hrl +++ b/test/jiffy_util.hrl @@ -1,6 +1,9 @@ % This file is part of Jiffy released under the MIT license. % See the LICENSE file for more information. +-compile(export_all). +-compile(nowarn_export_all). + msg(Fmt, Args) -> M1 = io_lib:format(Fmt, Args), M2 = re:replace(M1, <<"\r">>, <<"\\\\r">>, [global]),