Neopallium / nixio

System, Networking and I/O library for Lua. This is an unoffical fork of NIXO from: http://luci.subsignal.org/
http://neopallium.github.io/nixio/
Apache License 2.0
58 stars 23 forks source link

build failures with gcc5+? #13

Closed karlp closed 1 month ago

karlp commented 9 years ago

Not sure what this is trying to do even

src/process.c: In function ‘nixio__exec’:
src/process.c:76:26: error: comparison of constant ‘4’ with boolean expression is always true [-Werror=bool-compare]
     if (!lua_type(L, -2) != LUA_TSTRING || !lua_isstring(L, -1)) {
                          ^
src/process.c:76:26: error: logical not is only applied to the left hand side of comparison [-Werror=logical-not-parentheses]
karlp commented 9 years ago

seems the first ! shouldn't be there, compared to openwrt luci sources at least.

Neopallium commented 1 month ago

Fix in release 0.4: luarocks install Neopallium/nixio