Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
devel:languages:erlang
erlang-hanoidb
fix-warnings.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File fix-warnings.patch of Package erlang-hanoidb
diff -U 3 -H -d -r -N -x .git -x .svn -- hanoidb/rebar.config hanoidb.fix-warnings/rebar.config --- hanoidb/rebar.config 2016-02-04 18:22:56.250836098 +0100 +++ hanoidb.fix-warnings/rebar.config 2016-02-04 19:07:59.515298387 +0100 @@ -6,7 +6,7 @@ {erl_opts, [%{d,'DEBUG',true}, {d,'USE_EBLOOM',true}, {parse_transform, lager_transform}, - fail_on_warning, +% fail_on_warning, warn_unused_vars, warn_export_all, warn_shadow_vars, diff -U 3 -H -d -r -N -x .git -x .svn -- hanoidb/src/hanoidb_bloom.erl hanoidb.fix-warnings/src/hanoidb_bloom.erl --- hanoidb/src/hanoidb_bloom.erl 2016-02-04 18:22:56.250836098 +0100 +++ hanoidb.fix-warnings/src/hanoidb_bloom.erl 2016-02-04 19:03:05.740696299 +0100 @@ -41,7 +41,7 @@ -define(W, 27). --type bitmask() :: array() | any(). +-type bitmask() :: array:array(integer()) | any(). -record(bloom, { e :: float(), % error probability @@ -216,7 +216,7 @@ dense_bitmap -> hanoidb_dense_bitmap:member(I, BM) end. --spec as_array(bitmask()) -> array(). +-spec as_array(bitmask()) -> array:array(integer()). as_array(BM) -> case array:is_array(BM) of true -> BM @@ -225,7 +225,7 @@ %%%========== Bitarray representation - suitable for sparse arrays ========== bitarray_new(N) -> array:new((N-1) div ?W + 1, {default, 0}). --spec bitarray_set( non_neg_integer(), array() ) -> array(). +-spec bitarray_set( non_neg_integer(), array:array(integer()) ) -> array:array(integer()). bitarray_set(I, A1) -> A = as_array(A1), AI = I div ?W, @@ -235,7 +235,7 @@ true -> array:set(AI, V1, A) end. --spec bitarray_get( non_neg_integer(), array() ) -> boolean(). +-spec bitarray_get( non_neg_integer(), array:array(integer()) ) -> boolean(). bitarray_get(I, A) -> AI = I div ?W, V = array:get(AI, A), diff -U 3 -H -d -r -N -x .git -x .svn -- hanoidb/test/hanoidb_tests.erl hanoidb.fix-warnings/test/hanoidb_tests.erl --- hanoidb/test/hanoidb_tests.erl 2016-02-04 18:22:56.252836130 +0100 +++ hanoidb.fix-warnings/test/hanoidb_tests.erl 2016-02-04 19:12:50.748862847 +0100 @@ -47,9 +47,9 @@ next_state/3, postcondition/3, precondition/2]). --record(tree, { elements = dict:new() :: dict() }). --record(state, { open = dict:new() :: dict(), - closed = dict:new() :: dict()}). +-record(tree, { elements = dict:new() :: dict:dict() }). +-record(state, { open = dict:new() :: dict:dict(), + closed = dict:new() :: dict:dict()}). -define(SERVER, hanoidb_drv). full_test_() ->
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor