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

fix compiling error #16

Closed chrisliu529 closed 1 year ago

chrisliu529 commented 6 years ago

To make parameters conditions consistent and fix the compiling error below : gcc -O2 --std=gnu99 -Wall -Werror -pedantic -O2 -fPIC -I/usr/local/include -fPIC -c -o src/process.o src/process.c 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] cc1: all warnings being treated as errors make: *** [src/process.o] Error 1 Makefile:68: recipe for target 'src/process.o' failed

Error: Build error: Failed building.

Neopallium commented 1 year ago

Thanks. Sorry for the very long delay in merging.