You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I was trying to build KENSv3 and got the same error on both Fedora 35 and Ubuntu 21.10, where a variable is used uninitialized.
[ 26%] Built target routing
In file included from /home/mmaile/git/Computer-Networks/KENSv3-master/build/_deps/googletest-src/googletest/src/gtest-all.cc:42:
/home/mmaile/git/Computer-Networks/KENSv3-master/build/_deps/googletest-src/googletest/src/gtest-death-test.cc: In function ‘bool testing::internal::StackGrowsDown()’:
/home/mmaile/git/Computer-Networks/KENSv3-master/build/_deps/googletest-src/googletest/src/gtest-death-test.cc:1301:24: error: ‘dummy’ may be used uninitialized [-Werror=maybe-uninitialized]
1301 | StackLowerThanAddress(&dummy, &result);
| ~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~
/home/mmaile/git/Computer-Networks/KENSv3-master/build/_deps/googletest-src/googletest/src/gtest-death-test.cc:1290:13: note: by argument 1 of type ‘const void*’ to ‘void testing::internal::StackLowerThanAddress(const void*, bool*)’ declared here
1290 | static void StackLowerThanAddress(const void* ptr, bool* result) {
| ^~~~~~~~~~~~~~~~~~~~~
/home/mmaile/git/Computer-Networks/KENSv3-master/build/_deps/googletest-src/googletest/src/gtest-death-test.cc:1299:7: note: ‘dummy’ declared here
1299 | int dummy;
My lazy fix was to change line 1299 in the file from int dummy;
to int dummy = 0;
however since those are build files it is only a temporary fix.
The text was updated successfully, but these errors were encountered:
I was trying to build KENSv3 and got the same error on both Fedora 35 and Ubuntu 21.10, where a variable is used uninitialized.
My lazy fix was to change line 1299 in the file from
int dummy;
to
int dummy = 0;
however since those are build files it is only a temporary fix.
The text was updated successfully, but these errors were encountered: