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

Warnings when compiling with NGINX #13

Closed
RaeesBhatti opened this issue Jul 7, 2016 · 0 comments
Closed

Warnings when compiling with NGINX #13

RaeesBhatti opened this issue Jul 7, 2016 · 0 comments

Comments

@RaeesBhatti
Copy link

RaeesBhatti commented Jul 7, 2016

Hey there, I'm trying to compile NGINX with neverbleed using this patch but getting these warnings.

src/event/neverbleed.c: In function 'expbuf_reserve':
src/event/neverbleed.c:159:15: error: comparison between signed and unsigned integer expressions [-Werror=sign-compare]
     if (extra <= buf->buf + buf->capacity - buf->end)
               ^
src/event/neverbleed.c:164:48: error: comparison between signed and unsigned integer expressions [-Werror=sign-compare]
     while (buf->buf + buf->capacity - buf->end < extra)
                                                ^
src/event/neverbleed.c: In function 'expbuf_write':
src/event/neverbleed.c:245:28: error: comparison between signed and unsigned integer expressions [-Werror=sign-compare]
         while (r != 0 && r >= vecs[vecindex].iov_len) {
                            ^
src/event/neverbleed.c:250:37: error: pointer of type 'void *' used in arithmetic [-Werror=pointer-arith]
             vecs[vecindex].iov_base += r;
                                     ^
src/event/neverbleed.c: At top level:
src/event/neverbleed.c:353:1: error: missing initializer for field 'size' of 'struct <anonymous>' [-Werror=missing-field-initializers]
 } daemon_vars = {{PTHREAD_MUTEX_INITIALIZER}};
 ^
src/event/neverbleed.c:349:16: note: 'size' declared here
         size_t size;
                ^
src/event/neverbleed.c:353:1: error: missing initializer for field 'nb' of 'struct <anonymous>' [-Werror=missing-field-initializers]
 } daemon_vars = {{PTHREAD_MUTEX_INITIALIZER}};
 ^
src/event/neverbleed.c:352:19: note: 'nb' declared here
     neverbleed_t *nb;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant