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

build error in http_get sample #4162

Closed
andrewboie opened this issue Oct 3, 2017 · 3 comments · Fixed by #4167
Closed

build error in http_get sample #4162

andrewboie opened this issue Oct 3, 2017 · 3 comments · Fixed by #4167
Assignees
Labels
area: Networking bug The issue is a bug, or the PR is fixing a bug

Comments

@andrewboie
Copy link
Contributor

  CC      subsys/net/lib/sockets/sockets.o
/projects/zephyr2/subsys/net/lib/sockets/sockets.c: In function ‘zsock_sendto’:
/projects/zephyr2/subsys/net/lib/sockets/sockets.c:277:11: error: ‘err’ may be used uninitialized in this function [-Werror=maybe-uninitialized]
   errno = -err;
           ^~~~
cc1: all warnings being treated as errors
make[7]: *** [/projects/zephyr2/scripts/Makefile.build:183: subsys/net/lib/sockets/sockets.o] Error 1
  CC      subsys/net/lib/sockets/getaddrinfo.o
make[7]: Target '__build' not remade because of errors.
make[6]: *** [/projects/zephyr2/scripts/Makefile.build:357: subsys/net/lib/sockets] Error 2
make[6]: Target '__build' not remade because of errors.
make[5]: *** [/projects/zephyr2/scripts/Makefile.build:357: subsys/net/lib] Error 2

This is when building for qemu_x86.
Not sure why CI hasn't caught this.

@andrewboie
Copy link
Contributor Author

@pfalcon feel free to reassign as appropriate

@nashif
Copy link
Member

nashif commented Oct 3, 2017

@askawu introduced by 9ec6077

@nashif nashif added the bug The issue is a bug, or the PR is fixing a bug label Oct 3, 2017
@pfalcon
Copy link
Contributor

pfalcon commented Oct 3, 2017

I'm on it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area: Networking bug The issue is a bug, or the PR is fixing a bug
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants