Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

nidium-server has compile warning for linenoise. #50

Open
verpeteren opened this issue Feb 8, 2017 · 0 comments
Open

nidium-server has compile warning for linenoise. #50

verpeteren opened this issue Feb 8, 2017 · 0 comments
Assignees
Labels

Comments

@verpeteren
Copy link
Contributor

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.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
2 participants