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

[20.8.0] unable to build the lib (may be used uninitialized in this function) #397

Closed
tuxmaster5000 opened this issue Aug 31, 2020 · 2 comments · Fixed by #446
Closed

[20.8.0] unable to build the lib (may be used uninitialized in this function) #397

tuxmaster5000 opened this issue Aug 31, 2020 · 2 comments · Fixed by #446
Labels

Comments

@tuxmaster5000
Copy link
Contributor

OS: CentOS 7.8
The build fails with:

/builddir/build/BUILD/gvm-libs-20.8.0/boreas/util.c: In function 'set_socket':
/builddir/build/BUILD/gvm-libs-20.8.0/boreas/util.c:533:19: error: 'soc' may be used uninitialized in this function [-Werror=maybe-uninitialized]
   *scanner_socket = soc;
                   ^
cc1: all warnings being treated as errors
make[2]: *** [boreas/CMakeFiles/gvm_boreas_shared.dir/util.c.o] Error 1
make[2]: *** Waiting for unfinished jobs....
cd /builddir/build/BUILD/gvm-libs-20.8.0/util && /usr/bin/cmake3 -E cmake_symlink_library libgvm_util.so.20.8.0 libgvm_util.so.20 libgvm_util.so
make[2]: Leaving directory `/builddir/build/BUILD/gvm-libs-20.8.0'
[ 95%] Built target gvm_util_shared
make[2]: Leaving directory `/builddir/build/BUILD/gvm-libs-20.8.0'
make[1]: *** [boreas/CMakeFiles/gvm_boreas_shared.dir/all] Error 2
make[1]: *** Waiting for unfinished jobs....
/builddir/build/BUILD/gvm-libs-20.8.0/base/networking.c: In function 'ip_islocalhost':
/builddir/build/BUILD/gvm-libs-20.8.0/base/networking.c:841:18: error: 'addr.s_addr' may be used uninitialized in this function [-Werror=maybe-uninitialized]
               if (addr_p->s_addr == sin->sin_addr.s_addr)
                  ^
cc1: all warnings being treated as errors
make[2]: *** [base/CMakeFiles/gvm_base_shared.dir/networking.c.o] Error 1
@y0urself
Copy link
Member

y0urself commented Feb 2, 2022

@tuxmaster5000 can this issue be closed?

@tuxmaster5000
Copy link
Contributor Author

I think so, because as I see, the PR was merged.

@y0urself y0urself closed this as completed Feb 2, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants