Giter Site home page Giter Site logo

epqueue's People

Contributors

silviucpp avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

epqueue's Issues

Doesn't compile with GCC 8.1+

Hi,
we are using this lib in our Elixir project and the dependency doesn't compile since GCC 8.1. I get the following error when compiling the lib.
Previously I was downgrading gcc to older versions, but this workaround is getting less and less convenient as GCC 8.2 is now the default in Fedora 29 (which I use).

Any chance for a fix?

===> Compiling epqueue
make: Entering directory '/home/xxx/workspace/yyy/deps/epqueue/c_src'
 CPP    epqueue.cc
In file included from /usr/local/lib/erlang/erts-10.0.2/include/erl_nif.h:306,
                 from /home/xxx/workspace/yyy/deps/epqueue/c_src/epqueue.h:4,
                 from /home/xxx/workspace/yyy/deps/epqueue/c_src/epqueue.cc:1:
/home/xxx/workspace/yyy/deps/epqueue/c_src/epqueue.cc: In function ‘bool is_owner(ErlNifEnv*, epqueue*)’:
/usr/local/lib/erlang/erts-10.0.2/include/erl_nif_api_funcs.h:625:79: error: type qualifiers ignored on cast result type [-Werror=ignored-qualifiers]
 #  define enif_make_pid(ENV, PID) ((void)(ENV),(const ERL_NIF_TERM)((PID)->pid))
                                                                               ^
/home/xxx/workspace/yyy/deps/epqueue/c_src/epqueue.cc:59:66: note: in expansion of macro ‘enif_make_pid’
     if(enif_self(env, &self) && !enif_is_identical(q->owner_pid, enif_make_pid(env, &self)))
                                                                  ^~~~~~~~~~~~~
/home/xxx/workspace/yyy/deps/epqueue/c_src/epqueue.cc: In function ‘ERL_NIF_TERM nif_epqueue_new(ErlNifEnv*, int, const ERL_NIF_TERM*)’:
/usr/local/lib/erlang/erts-10.0.2/include/erl_nif_api_funcs.h:625:79: error: type qualifiers ignored on cast result type [-Werror=ignored-qualifiers]
 #  define enif_make_pid(ENV, PID) ((void)(ENV),(const ERL_NIF_TERM)((PID)->pid))
                                                                               ^
/home/xxx/workspace/yyy/deps/epqueue/c_src/epqueue.cc:110:28: note: in expansion of macro ‘enif_make_pid’
         qinst->owner_pid = enif_make_pid(env, &self);
                            ^~~~~~~~~~~~~
cc1plus: all warnings being treated as errors
make: *** [nif.mk:78: /home/xxx/workspace/yyy/deps/epqueue/c_src/epqueue.o] Error 1
make: Leaving directory '/home/xxx/workspace/yyy/deps/epqueue/c_src'
===> Hook for compile failed!

Errror in file : src/epqueue_nif.erl

Hello.
I installed your library and saw a small defect on line 25 :
case code:priv_dir(ezlib)

And taking this opportunity, I want to ask whether there is a queue without priorities, FIFO ?

Thank you.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.