zycv / OpenSpeaker

OpenSpeaker is a completely independent and open source speaker recognition project. It provides the entire process of speaker recognition including multi-platform deployment and model optimization.
Apache License 2.0
60 stars 10 forks source link

error: 'dummy’ may be used uninitialized [-Werror=maybe-uninitialized] #11

Open StuartIanNaylor opened 1 year ago

StuartIanNaylor commented 1 year ago
In file included from /home/stuart/OpenSpeaker/build/_deps/googletest-src/googletest/src/gtest-all.cc:42:
/home/stuart/OpenSpeaker/build/_deps/googletest-src/googletest/src/gtest-death-test.cc: In function ‘bool testing::internal::StackGrowsDown()’:
/home/stuart/OpenSpeaker/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);
      |   ~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~

https://github.com/zycv/OpenSpeaker/blob/bbf0a43fdf259c029275ce6c2309fe16f328b64d/CMakeLists.txt#L13

appended -Wno-maybe-uninitialized then compiles