Closed
Description
Looks like error contributed in e9a102a.
https://github.com/davisp/jiffy/blob/master/c_src/util.c#L47
cmd: cc -c -g -Wall -Werror -O3 -fno-strict-aliasing -g -Wall -fPIC -I/usr/lib/erlang/lib/erl_interface-3.7.16/include -I/usr/lib/erlang/erts-6.0/include c_src/util.c -o c_src/util.o
Compiling c_src/util.c
c_src/util.c: В функции «get_bytes_per_iter»:
c_src/util.c:47:5: ошибка: в передаче аргумента 3 «enif_get_uint64»: несовместимый тип указателя [-Werror]
In file included from /usr/lib/erlang/erts-6.0/include/erl_nif.h:224:0,
from c_src/jiffy.h:7,
from c_src/util.c:4:
/usr/lib/erlang/erts-6.0/include/erl_nif_api_funcs.h:134:1: замечание: expected «ErlNifUInt64 *» but argument is of type «size_t *»
(sorry for russian, I don't know how to change locale for rebar)
Note, that, according to docs, 3'rd parameter of enif_get_uint64 should be ErlNifUInt64 *
seriy:jiffy/ (307c383) $ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 13.04
Release: 13.04
Codename: raring
seriy:jiffy/ (307c383) $ uname -a
Linux seriy-ostrovok 3.8.0-35-generic #50-Ubuntu SMP Tue Dec 3 01:25:33 UTC 2013 i686 i686 i686 GNU/Linux
seriy:jiffy/ (307c383) $ rebar -V
rebar 2.1.0-pre R15B01 20130325_132426 git 2.1.0-pre-46-g78fa8fc
seriy:jiffy/ (307c383) $ erl
Erlang/OTP 17 [erts-6.0] [source-07b8f44] [smp:8:8] [async-threads:10] [hipe] [kernel-poll:false]
Metadata
Metadata
Assignees
Labels
No labels