nidium/Nidium

nidium-server has compile warning for linenoise.

verpeteren opened this issue · 0 comments

While building 'nidium-server' the compiler raises several warnings.
Is this because we are using an old version of linenoise or are our modifications causing this?

CC(target) out/Release/obj.target/nidium-server/third-party/linenoise/linenoise.o
../third-party/linenoise/linenoise.c:775:38: warning: if statement has empty body [-Wempty-body]
    if (pipe(linenoise_pipefds) < 0) ;
                                     ^
../third-party/linenoise/linenoise.c:775:38: note: put the semicolon on a separate line to silence this warning
../third-party/linenoise/linenoise.c:785:48: warning: if statement has empty body [-Wempty-body]
        if (write(1, "\x1b[0G\x1b[0K", 8) < 0) ;
                                               ^
../third-party/linenoise/linenoise.c:785:48: note: put the semicolon on a separate line to silence this warning
../third-party/linenoise/linenoise.c:797:53: warning: if statement has empty body [-Wempty-body]
        if (write(linenoise_pipefds[1], &x, 1) < 0) ;
                                                    ^
../third-party/linenoise/linenoise.c:797:53: note: put the semicolon on a separate line to silence this warning
../third-party/linenoise/linenoise.c:840:56: warning: if statement has empty body [-Wempty-body]
            if (read(linenoise_pipefds[0], &x, 1) < 0) ;
                                                       ^
../third-party/linenoise/linenoise.c:840:56: note: put the semicolon on a separate line to silence this warning
4 warnings generated.