diff --git a/rebar.config b/rebar.config index 8977b9c..43c930b 100644 --- a/rebar.config +++ b/rebar.config @@ -1,10 +1,11 @@ -{minimum_otp_vsn, "22.0"}. +{minimum_otp_vsn, "22.3"}. -{erl_opts, - [warnings_as_errors, - {platform_define, "^2[2-5]{1}", if_check}]}. +{erl_opts, [warnings_as_errors]}. -{xref_checks, [undefined_function_calls,undefined_functions]}. +{xref_checks, + [undefined_function_calls,undefined_functions, + locals_not_used, + deprecated_function_calls, deprecated_functions]}. {cover_excl_mods, [testutil, @@ -25,7 +26,7 @@ ]}. {deps, [ - {lz4, ".*", {git, "https://github.com/martinsumner/erlang-lz4", {branch, "develop-3.1"}}}, + {lz4, ".*", {git, "https://github.com/nhs-riak/erlang-lz4", {branch, "nhse-develop"}}}, {zstd, ".*", {git, "https://github.com/nhs-riak/zstd-erlang", {branch, "nhse-develop"}}} ]}. diff --git a/rebar3 b/rebar3 index a592824..2497f39 100755 Binary files a/rebar3 and b/rebar3 differ diff --git a/src/leveled_pmanifest.erl b/src/leveled_pmanifest.erl index 7f05122..3edf081 100644 --- a/src/leveled_pmanifest.erl +++ b/src/leveled_pmanifest.erl @@ -74,7 +74,7 @@ % At o(10) trillion keys behaviour may become increasingly % difficult to predict. --ifdef(if_check). +-if(OTP_RELEASE >= 25). -if(length(?LEVEL_SCALEFACTOR) /= ?MAX_LEVELS). -error("length ?LEVEL_SCALEFACTOR differs from ?MAX_LEVELS"). -endif.