Skip to content
This repository has been archived by the owner on May 16, 2020. It is now read-only.

int64_t incompatible with enif_get_int64 warning on OS X #83

Open
acautin opened this issue Jun 25, 2019 · 0 comments
Open

int64_t incompatible with enif_get_int64 warning on OS X #83

acautin opened this issue Jun 25, 2019 · 0 comments
Assignees
Labels
enhancement New feature or request

Comments

@acautin
Copy link
Contributor

acautin commented Jun 25, 2019

Ref: #79 (comment)

cd c_src/odpi && make
make[1]: Nothing to be done for `all'.
gcc -o priv/dpi_nif.so -Ic_src -I"/Users/agustin/kerl/20.2/erts-9.2/include" -I"c_src/odpi/include" -O2 -ggdb -Wall -fPIC -std=c11 -dynamiclib  c_src/dpiConn_nif.c c_src/dpiContext_nif.c c_src/dpiData_nif.c c_src/dpiQueryInfo_nif.c c_src/dpiStmt_nif.c c_src/dpiVar_nif.c c_src/dpi_nif.c -Lc_src/odpi/lib -shared -lodpic -flat_namespace -undefined suppress
c_src/dpiData_nif.c:187:39: warning: incompatible pointer types passing 'int64_t *' (aka 'long long *') to parameter of type 'long *' [-Wincompatible-pointer-types]
    if (!enif_get_int64(env, argv[1], &amount))
                                      ^~~~~~~
/Users/agustin/kerl/20.2/erts-9.2/include/erl_nif_api_funcs.h:104:79: note: passing argument to parameter 'ip' here
ERL_NIF_API_FUNC_DECL(int,enif_get_long,(ErlNifEnv*, ERL_NIF_TERM term, long* ip));
                                                                              ^
1 warning generated.
@acautin acautin added the enhancement New feature or request label Jun 25, 2019
@c-bik c-bik self-assigned this Jun 25, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants