Task #1637 - libzypp-17.31.32-1.fc40/scan-results.err
back to task #1637download
Error: CPPCHECK_WARNING: libzypp-17.31.32-build/libzypp-17.31.32/redhat-linux-build/zypp-proto/core/envelope.pb.cc: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. Error: CPPCHECK_WARNING: libzypp-17.31.32-build/libzypp-17.31.32/redhat-linux-build/zypp-proto/media/provider.pb.cc: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. Error: CPPCHECK_WARNING (CWE-570): libzypp-17.31.32-build/libzypp-17.31.32/redhat-linux-build/zypp-proto/media/provider.pb.cc:876: error[subtractPointers]: Subtracting pointers that point to different objects # 874| _internal_metadata_.MergeFrom<std::string>(from._internal_metadata_); # 875| ::memcpy(&request_id_, &from.request_id_, # 876|-> static_cast<size_t>(reinterpret_cast<char*>(&message_code_) - # 877| reinterpret_cast<char*>(&request_id_)) + sizeof(message_code_)); # 878| // @@protoc_insertion_point(copy_constructor:zypp.proto.ProvideMessage) Error: CPPCHECK_WARNING (CWE-570): libzypp-17.31.32-build/libzypp-17.31.32/redhat-linux-build/zypp-proto/media/provider.pb.cc:884: error[subtractPointers]: Subtracting pointers that point to different objects # 882| ::memset(reinterpret_cast<char*>(this) + static_cast<size_t>( # 883| reinterpret_cast<char*>(&request_id_) - reinterpret_cast<char*>(this)), # 884|-> 0, static_cast<size_t>(reinterpret_cast<char*>(&message_code_) - # 885| reinterpret_cast<char*>(&request_id_)) + sizeof(message_code_)); # 886| } Error: CPPCHECK_WARNING (CWE-570): libzypp-17.31.32-build/libzypp-17.31.32/redhat-linux-build/zypp-proto/media/provider.pb.cc:917: error[subtractPointers]: Subtracting pointers that point to different objects # 915| fields_.Clear(); # 916| ::memset(&request_id_, 0, static_cast<size_t>( # 917|-> reinterpret_cast<char*>(&message_code_) - # 918| reinterpret_cast<char*>(&request_id_)) + sizeof(message_code_)); # 919| _internal_metadata_.Clear<std::string>(); Error: CPPCHECK_WARNING (CWE-570): libzypp-17.31.32-build/libzypp-17.31.32/redhat-linux-build/zypp-proto/media/provider.pb.cc:1357: error[subtractPointers]: Subtracting pointers that point to different objects # 1355| } # 1356| ::memcpy(&protocol_version_, &from.protocol_version_, # 1357|-> static_cast<size_t>(reinterpret_cast<char*>(&cfg_flags_) - # 1358| reinterpret_cast<char*>(&protocol_version_)) + sizeof(cfg_flags_)); # 1359| // @@protoc_insertion_point(copy_constructor:zypp.proto.Capabilities) Error: CPPCHECK_WARNING (CWE-570): libzypp-17.31.32-build/libzypp-17.31.32/redhat-linux-build/zypp-proto/media/provider.pb.cc:1369: error[subtractPointers]: Subtracting pointers that point to different objects # 1367| ::memset(reinterpret_cast<char*>(this) + static_cast<size_t>( # 1368| reinterpret_cast<char*>(&protocol_version_) - reinterpret_cast<char*>(this)), # 1369|-> 0, static_cast<size_t>(reinterpret_cast<char*>(&cfg_flags_) - # 1370| reinterpret_cast<char*>(&protocol_version_)) + sizeof(cfg_flags_)); # 1371| } Error: CPPCHECK_WARNING (CWE-570): libzypp-17.31.32-build/libzypp-17.31.32/redhat-linux-build/zypp-proto/media/provider.pb.cc:1404: error[subtractPointers]: Subtracting pointers that point to different objects # 1402| worker_name_.ClearToEmpty(); # 1403| ::memset(&protocol_version_, 0, static_cast<size_t>( # 1404|-> reinterpret_cast<char*>(&cfg_flags_) - # 1405| reinterpret_cast<char*>(&protocol_version_)) + sizeof(cfg_flags_)); # 1406| _internal_metadata_.Clear<std::string>(); Error: CPPCHECK_WARNING: libzypp-17.31.32-build/libzypp-17.31.32/redhat-linux-build/zypp-proto/target/commit.pb.cc: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. Error: CPPCHECK_WARNING (CWE-570): libzypp-17.31.32-build/libzypp-17.31.32/redhat-linux-build/zypp-proto/target/commit.pb.cc:1231: error[subtractPointers]: Subtracting pointers that point to different objects # 1229| } # 1230| ::memcpy(&flags_, &from.flags_, # 1231|-> static_cast<size_t>(reinterpret_cast<char*>(&ignorearch_) - # 1232| reinterpret_cast<char*>(&flags_)) + sizeof(ignorearch_)); # 1233| // @@protoc_insertion_point(copy_constructor:zypp.proto.target.Commit) Error: CPPCHECK_WARNING (CWE-570): libzypp-17.31.32-build/libzypp-17.31.32/redhat-linux-build/zypp-proto/target/commit.pb.cc:1255: error[subtractPointers]: Subtracting pointers that point to different objects # 1253| ::memset(reinterpret_cast<char*>(this) + static_cast<size_t>( # 1254| reinterpret_cast<char*>(&flags_) - reinterpret_cast<char*>(this)), # 1255|-> 0, static_cast<size_t>(reinterpret_cast<char*>(&ignorearch_) - # 1256| reinterpret_cast<char*>(&flags_)) + sizeof(ignorearch_)); # 1257| } Error: CPPCHECK_WARNING (CWE-570): libzypp-17.31.32-build/libzypp-17.31.32/redhat-linux-build/zypp-proto/target/commit.pb.cc:1296: error[subtractPointers]: Subtracting pointers that point to different objects # 1294| lockfilepath_.ClearToEmpty(); # 1295| ::memset(&flags_, 0, static_cast<size_t>( # 1296|-> reinterpret_cast<char*>(&ignorearch_) - # 1297| reinterpret_cast<char*>(&flags_)) + sizeof(ignorearch_)); # 1298| _internal_metadata_.Clear<std::string>(); Error: CPPCHECK_WARNING (CWE-570): libzypp-17.31.32-build/libzypp-17.31.32/redhat-linux-build/zypp-proto/target/commit.pb.cc:2770: error[subtractPointers]: Subtracting pointers that point to different objects # 2768| _internal_metadata_.MergeFrom<std::string>(from._internal_metadata_); # 2769| ::memcpy(&stepid_, &from.stepid_, # 2770|-> static_cast<size_t>(reinterpret_cast<char*>(&amount_) - # 2771| reinterpret_cast<char*>(&stepid_)) + sizeof(amount_)); # 2772| // @@protoc_insertion_point(copy_constructor:zypp.proto.target.PackageProgress) Error: CPPCHECK_WARNING (CWE-570): libzypp-17.31.32-build/libzypp-17.31.32/redhat-linux-build/zypp-proto/target/commit.pb.cc:2778: error[subtractPointers]: Subtracting pointers that point to different objects # 2776| ::memset(reinterpret_cast<char*>(this) + static_cast<size_t>( # 2777| reinterpret_cast<char*>(&stepid_) - reinterpret_cast<char*>(this)), # 2778|-> 0, static_cast<size_t>(reinterpret_cast<char*>(&amount_) - # 2779| reinterpret_cast<char*>(&stepid_)) + sizeof(amount_)); # 2780| } Error: CPPCHECK_WARNING (CWE-570): libzypp-17.31.32-build/libzypp-17.31.32/redhat-linux-build/zypp-proto/target/commit.pb.cc:2810: error[subtractPointers]: Subtracting pointers that point to different objects # 2808| # 2809| ::memset(&stepid_, 0, static_cast<size_t>( # 2810|-> reinterpret_cast<char*>(&amount_) - # 2811| reinterpret_cast<char*>(&stepid_)) + sizeof(amount_)); # 2812| _internal_metadata_.Clear<std::string>(); Error: CPPCHECK_WARNING (CWE-570): libzypp-17.31.32-build/libzypp-17.31.32/redhat-linux-build/zypp-proto/target/commit.pb.cc:4055: error[subtractPointers]: Subtracting pointers that point to different objects # 4053| _internal_metadata_.MergeFrom<std::string>(from._internal_metadata_); # 4054| ::memcpy(&stepid_, &from.stepid_, # 4055|-> static_cast<size_t>(reinterpret_cast<char*>(&fatal_) - # 4056| reinterpret_cast<char*>(&stepid_)) + sizeof(fatal_)); # 4057| // @@protoc_insertion_point(copy_constructor:zypp.proto.target.ScriptError) Error: CPPCHECK_WARNING (CWE-570): libzypp-17.31.32-build/libzypp-17.31.32/redhat-linux-build/zypp-proto/target/commit.pb.cc:4063: error[subtractPointers]: Subtracting pointers that point to different objects # 4061| ::memset(reinterpret_cast<char*>(this) + static_cast<size_t>( # 4062| reinterpret_cast<char*>(&stepid_) - reinterpret_cast<char*>(this)), # 4063|-> 0, static_cast<size_t>(reinterpret_cast<char*>(&fatal_) - # 4064| reinterpret_cast<char*>(&stepid_)) + sizeof(fatal_)); # 4065| } Error: CPPCHECK_WARNING (CWE-570): libzypp-17.31.32-build/libzypp-17.31.32/redhat-linux-build/zypp-proto/target/commit.pb.cc:4095: error[subtractPointers]: Subtracting pointers that point to different objects # 4093| # 4094| ::memset(&stepid_, 0, static_cast<size_t>( # 4095|-> reinterpret_cast<char*>(&fatal_) - # 4096| reinterpret_cast<char*>(&stepid_)) + sizeof(fatal_)); # 4097| _internal_metadata_.Clear<std::string>(); Error: CPPCHECK_WARNING: libzypp-17.31.32-build/libzypp-17.31.32/redhat-linux-build/zypp-proto/test/tvm.pb.cc: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. Error: COMPILER_WARNING (CWE-252): libzypp-17.31.32-build/libzypp-17.31.32/tests/lib/FtpServer.cc: scope_hint: In constructor ‘FtpServer::Impl::Impl(const zypp::filesystem::Pathname&, unsigned int, bool)’ libzypp-17.31.32-build/libzypp-17.31.32/tests/lib/FtpServer.cc:90:12: warning[-Wunused-result]: ignoring return value of ‘int pipe(int*)’ declared with attribute ‘warn_unused_result’ # 90 | pipe ( _wakeupPipe ); # | ~~~~~^~~~~~~~~~~~~~~ # 88| { # 89| // wake up pipe to interrupt poll() # 90|-> pipe ( _wakeupPipe ); # 91| fcntl( _wakeupPipe[0], F_SETFL, O_NONBLOCK ); # 92| Error: COMPILER_WARNING (CWE-252): libzypp-17.31.32-build/libzypp-17.31.32/tests/lib/FtpServer.cc: scope_hint: In member function ‘void FtpServer::Impl::stop()’ libzypp-17.31.32-build/libzypp-17.31.32/tests/lib/FtpServer.cc:280:14: warning[-Wunused-result]: ignoring return value of ‘ssize_t write(int, const void*, size_t)’ declared with attribute ‘warn_unused_result’ # 280 | write( _wakeupPipe[1], "\n", 1); # | ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~ # 278| # 279| //signal the thread to wake up # 280|-> write( _wakeupPipe[1], "\n", 1); # 281| # 282| _thrd->join(); Error: COMPILER_WARNING (CWE-252): libzypp-17.31.32-build/libzypp-17.31.32/tests/lib/WebServer.cc: scope_hint: In constructor ‘WebServer::Impl::Impl(const zypp::filesystem::Pathname&, unsigned int, bool)’ libzypp-17.31.32-build/libzypp-17.31.32/tests/lib/WebServer.cc:121:12: warning[-Wunused-result]: ignoring return value of ‘int pipe(int*)’ declared with attribute ‘warn_unused_result’ # 121 | pipe ( _wakeupPipe ); # | ~~~~~^~~~~~~~~~~~~~~ # 119| # 120| // wake up pipe to interrupt poll() # 121|-> pipe ( _wakeupPipe ); # 122| fcntl( _wakeupPipe[0], F_SETFL, O_NONBLOCK ); # 123| Error: COMPILER_WARNING (CWE-252): libzypp-17.31.32-build/libzypp-17.31.32/tests/lib/WebServer.cc: scope_hint: In member function ‘void WebServer::Impl::stop()’ libzypp-17.31.32-build/libzypp-17.31.32/tests/lib/WebServer.cc:414:14: warning[-Wunused-result]: ignoring return value of ‘ssize_t write(int, const void*, size_t)’ declared with attribute ‘warn_unused_result’ # 414 | write( _wakeupPipe[1], "\n", 1); # | ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~ # 412| # 413| //signal the thread to wake up # 414|-> write( _wakeupPipe[1], "\n", 1); # 415| # 416| _thrd->join(); Error: COMPILER_WARNING (CWE-1164): libzypp-17.31.32-build/libzypp-17.31.32/tests/zypp/PoolQuery_test.cc:909:15: warning[-Wunused-function]: ‘std::string {anonymous}::serialized(const std::string&)’ defined but not used # 909 | std::string serialized( const std::string & arg_r ) # | ^~~~~~~~~~ # 907| # 908| # 909|-> std::string serialized( const std::string & arg_r ) # 910| { return "\n" + arg_r + "\n\n"; } # 911| Error: COMPILER_WARNING (CWE-1164): libzypp-17.31.32-build/libzypp-17.31.32/tests/zypp/PtrTypes_test.cc: scope_hint: In function ‘void test()’ libzypp-17.31.32-build/libzypp-17.31.32/tests/zypp/PtrTypes_test.cc:73:45: warning[-Wunused-local-typedefs]: typedef ‘constPtr_element_type’ locally defined but not used # 73 | typedef typename constPtr::element_type constPtr_element_type; # | ^~~~~~~~~~~~~~~~~~~~~ libzypp-17.31.32-build/libzypp-17.31.32/tests/zypp/PtrTypes_test.cc: scope_hint: In instantiation of ‘void cowt() [with RW = zypp::RWCOW_pointer<NonIntrusive, zypp::rw_pointer::Shared<NonIntrusive> >]’ #/builddir/build/BUILD/libzypp-17.31.32-build/libzypp-17.31.32/tests/zypp/PtrTypes_test.cc:146:78: required from here # 146 | cowt<RWCOW_pointer<NonIntrusive, rw_pointer::Shared<NonIntrusive> > >(); # | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ # 71| typedef typename RW::constPtrType constPtr; # 72| typedef typename Ptr::element_type Ptr_element_type; # 73|-> typedef typename constPtr::element_type constPtr_element_type; # 74| // initial NULL # 75| RW ptr; Error: CLANG_WARNING: libzypp-17.31.32-build/libzypp-17.31.32/tests/zypp/PtrTypes_test.cc:100:5: warning[cplusplus.NewDeleteLeaks]: Potential leak of memory pointed to by 'ptr2._dptr.px' # 98| } # 99| // assign # 100|-> ptr.reset( 0 ); # 101| T_NULL; # 102| T_UNIQUE; Error: COMPILER_WARNING (CWE-563): libzypp-17.31.32-build/libzypp-17.31.32/tests/zypp/PtrTypes_test.cc:125:19: warning[-Wunused-variable]: unused variable ‘ptrid’ # 125 | unsigned long ptrid = ptr->numericId(); # | ^~~~~ # 123| // create # 124| RW ptr( new Ptr_element_type ); # 125|-> unsigned long ptrid = ptr->numericId(); # 126| // share # 127| RW ptr2( ptr ); Error: COMPILER_WARNING (CWE-563): libzypp-17.31.32-build/libzypp-17.31.32/tests/zypp/PtrTypes_test.cc:129:19: warning[-Wunused-variable]: unused variable ‘ptrid2’ # 129 | unsigned long ptrid2 = ptr2->numericId(); # | ^~~~~~ libzypp-17.31.32-build/libzypp-17.31.32/tests/zypp/PtrTypes_test.cc: scope_hint: In instantiation of ‘void cowt() [with RW = zypp::RWCOW_pointer<const NonIntrusive, zypp::rw_pointer::Shared<NonIntrusive> >]’ #/builddir/build/BUILD/libzypp-17.31.32-build/libzypp-17.31.32/tests/zypp/PtrTypes_test.cc:147:78: required from here # 147 | cowt<RWCOW_pointer<const NonIntrusive, rw_pointer::Shared<NonIntrusive> > >(); # | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ # 127| RW ptr2( ptr ); # 128| // clone aon access # 129|-> unsigned long ptrid2 = ptr2->numericId(); # 130| assert( ptrid != ptrid2 ); # 131| } Error: CLANG_WARNING: libzypp-17.31.32-build/libzypp-17.31.32/tests/zypp/PtrTypes_test.cc:131:3: warning[cplusplus.NewDeleteLeaks]: Potential leak of memory pointed to by 'ptr2._dptr.px' # 129| unsigned long ptrid2 = ptr2->numericId(); # 130| assert( ptrid != ptrid2 ); # 131|-> } # 132| # 133| /****************************************************************** Error: COMPILER_WARNING: libzypp-17.31.32-build/libzypp-17.31.32/tests/zypp/Url_test.cc: scope_hint: In member function ‘void plugin_scriptpath::test_method()’ libzypp-17.31.32-build/libzypp-17.31.32/tests/zypp/Url_test.cc:290:29: warning[-Wrange-loop-construct]: loop variable ‘t’ of type ‘const std::string&’ {aka ‘const std::__cxx11::basic_string<char>&’} binds to a temporary constructed from type ‘const char* const’ # 290 | for ( const std::string & t : { "script", "script/", "/script", "/script/", "./script", "./script/" } ) # | ^ libzypp-17.31.32-build/libzypp-17.31.32/tests/zypp/Url_test.cc:290:29: note: use non-reference type ‘const std::string’ {aka ‘const std::__cxx11::basic_string<char>’} to make the copy explicit or ‘const char* const&’ to prevent copying # 288| { # 289| // plugin script path must not be rewritten # 290|-> for ( const std::string & t : { "script", "script/", "/script", "/script/", "./script", "./script/" } ) # 291| { # 292| BOOST_CHECK_EQUAL( Url("plugin:"+t).getPathName(), t ); Error: COMPILER_WARNING (CWE-252): libzypp-17.31.32-build/libzypp-17.31.32/tests/zyppng/io/AsyncDataSource_test.cc: scope_hint: In lambda function libzypp-17.31.32-build/libzypp-17.31.32/tests/zyppng/io/AsyncDataSource_test.cc:52:12: warning[-Wunused-result]: ignoring return value of ‘ssize_t write(int, const void*, size_t)’ declared with attribute ‘warn_unused_result’ # 52 | ::write( writeFd, text.data(), text.length() ); # | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ # 50| # 51| std::thread writer( []( int writeFd, std::string_view text ){ # 52|-> ::write( writeFd, text.data(), text.length() ); # 53| ::close( writeFd ); # 54| }, pipeFds[1], text ); Error: COMPILER_WARNING (CWE-252): libzypp-17.31.32-build/libzypp-17.31.32/tests/zyppng/io/AsyncDataSource_test.cc: scope_hint: In lambda function libzypp-17.31.32-build/libzypp-17.31.32/tests/zyppng/io/AsyncDataSource_test.cc:119:14: warning[-Wunused-result]: ignoring return value of ‘ssize_t write(int, const void*, size_t)’ declared with attribute ‘warn_unused_result’ # 119 | ::write( writeFd, text.data(), text.length() ); # | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ # 117| { # 118| std::unique_lock l(lock); # 119|-> ::write( writeFd, text.data(), text.length() ); # 120| written = true; # 121| } Error: COMPILER_WARNING (CWE-252): libzypp-17.31.32-build/libzypp-17.31.32/tests/zyppng/io/AsyncDataSource_test.cc: scope_hint: In lambda function libzypp-17.31.32-build/libzypp-17.31.32/tests/zyppng/io/AsyncDataSource_test.cc:351:12: warning[-Wunused-result]: ignoring return value of ‘ssize_t write(int, const void*, size_t)’ declared with attribute ‘warn_unused_result’ # 351 | ::write( pipeFds[1], text[1].data(), text[1].size() ); # | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ # 349| dataSource->sigReadyRead ().connect([&](){ # 350| // now write more data without returning to the ev loop, and check if we get it all # 351|-> ::write( pipeFds[1], text[1].data(), text[1].size() ); # 352| ::write( pipeFds[1], text[2].data(), text[2].size() ); # 353| Error: COMPILER_WARNING (CWE-252): libzypp-17.31.32-build/libzypp-17.31.32/tests/zyppng/io/AsyncDataSource_test.cc:352:12: warning[-Wunused-result]: ignoring return value of ‘ssize_t write(int, const void*, size_t)’ declared with attribute ‘warn_unused_result’ # 352 | ::write( pipeFds[1], text[2].data(), text[2].size() ); # | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ # 350| // now write more data without returning to the ev loop, and check if we get it all # 351| ::write( pipeFds[1], text[1].data(), text[1].size() ); # 352|-> ::write( pipeFds[1], text[2].data(), text[2].size() ); # 353| # 354| auto ba = dataSource->readLine(); Error: COMPILER_WARNING (CWE-252): libzypp-17.31.32-build/libzypp-17.31.32/tests/zyppng/io/AsyncDataSource_test.cc: scope_hint: In member function ‘void readl::test_method()’ libzypp-17.31.32-build/libzypp-17.31.32/tests/zyppng/io/AsyncDataSource_test.cc:364:10: warning[-Wunused-result]: ignoring return value of ‘ssize_t write(int, const void*, size_t)’ declared with attribute ‘warn_unused_result’ # 364 | ::write( pipeFds[1], text[0].data(), text[0].size() ); # | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ # 362| # 363| //write the first line # 364|-> ::write( pipeFds[1], text[0].data(), text[0].size() ); # 365| # 366| loop->run(); Error: CLANG_WARNING: libzypp-17.31.32-build/libzypp-17.31.32/tools/zypp-install.cc:232:7: warning[deadcode.DeadStores]: Value stored to 'dryRunEtc' is never read # 230| { # 231| policy.dryRun( true ); # 232|-> dryRunEtc = true; # 233| } # 234| if ( true ) Error: COMPILER_WARNING (CWE-252): libzypp-17.31.32-build/libzypp-17.31.32/tools/zypp-rpm/main.cc: scope_hint: In destructor ‘main(int, char**)::s_lockinfo::~s_lockinfo()’ libzypp-17.31.32-build/libzypp-17.31.32/tools/zypp-rpm/main.cc:245:16: warning[-Wunused-result]: ignoring return value of ‘int ftruncate(int, __off64_t)’ declared with attribute ‘warn_unused_result’ # 245 | ftruncate( fileno (lockFile), 0 ); # | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ # 243| std::scoped_lock<file_lock> lock(fileLock); # 244| clearerr( lockFile ); # 245|-> ftruncate( fileno (lockFile), 0 ); # 246| fflush( lockFile ); # 247| } Error: COMPILER_WARNING (CWE-252): libzypp-17.31.32-build/libzypp-17.31.32/zypp-core/ExternalProgram.cc: scope_hint: In member function ‘virtual int zypp::ExternalProgram::close()’ libzypp-17.31.32-build/libzypp-17.31.32/zypp-core/ExternalProgram.cc:403:22: warning[-Wunused-result]: ignoring return value of ‘__ssize_t getline(char**, size_t*, FILE*)’ declared with attribute ‘warn_unused_result’ # 403 | getline( &linebuffer, &linebuffer_size, inputfile ); # | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ # 401| static size_t linebuffer_size = 0; // static because getline allocs # 402| static char * linebuffer = 0; // and reallocs if buffer is too small # 403|-> getline( &linebuffer, &linebuffer_size, inputfile ); # 404| // ::feof check is important as select returns # 405| // positive if the file was closed. Error: COMPILER_WARNING (CWE-252): libzypp-17.31.32-build/libzypp-17.31.32/zypp-core/ExternalProgram.cc: scope_hint: In constructor ‘zypp::externalprogram::EarlyPipe::EarlyPipe()’ libzypp-17.31.32-build/libzypp-17.31.32/zypp-core/ExternalProgram.cc:511:16: warning[-Wunused-result]: ignoring return value of ‘int pipe2(int*, int)’ declared with attribute ‘warn_unused_result’ # 511 | ::pipe2( _fds, O_NONBLOCK ); # | ~~~~~~~^~~~~~~~~~~~~~~~~~~~ # 509| _fds[R] = _fds[W] = -1; # 510| #ifdef HAVE_PIPE2 # 511|-> ::pipe2( _fds, O_NONBLOCK ); # 512| #else # 513| ::pipe( _fds ); Error: CLANG_WARNING: libzypp-17.31.32-build/libzypp-17.31.32/tests/zypp/PtrTypes_test.cc:6: included_from: Included from here. libzypp-17.31.32-build/libzypp-17.31.32/zypp/base/PtrTypes.h:1: included_from: Included from here. libzypp-17.31.32-build/libzypp-17.31.32/zypp-core/base/PtrTypes.h:313:42: warning[cplusplus.NewDeleteLeaks]: Potential leak of memory pointed to by field 'px' # 311| # 312| void reset( typename PtrType::element_type * dptr ) # 313|-> { PtrType( dptr ).swap( _dptr ); } # 314| # 315| void swap( RW_pointer & rhs ) Error: COMPILER_WARNING (CWE-252): libzypp-17.31.32-build/libzypp-17.31.32/zypp-core/base/String.cc: scope_hint: In function ‘std::string zypp::str::form(const char*, ...)’ libzypp-17.31.32-build/libzypp-17.31.32/zypp-core/base/String.cc:42:16: warning[-Wunused-result]: ignoring return value of ‘int vasprintf(char**, const char*, __va_list_tag*)’ declared with attribute ‘warn_unused_result’ # 42 | vasprintf( &safe._buf, format, ap ); # | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~ # 40| va_list ap; # 41| va_start( ap, format ); # 42|-> vasprintf( &safe._buf, format, ap ); # 43| va_end( ap ); # 44| Error: CPPCHECK_WARNING: libzypp-17.31.32-build/libzypp-17.31.32/zypp-core/base/StringV.cc: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. Error: CLANG_WARNING: libzypp-17.31.32-build/libzypp-17.31.32/zypp-core/zyppng/base/eventdispatcher_glib.cc:239:20: warning[core.NullDereference]: Access to field '_idleSource' results in a dereference of a null pointer (loaded from variable 'dPtr') # 237| } # 238| # 239|-> g_source_unref ( dPtr->_idleSource ); # 240| dPtr->_idleSource = nullptr; # 241| Error: COMPILER_WARNING (CWE-252): libzypp-17.31.32-build/libzypp-17.31.32/zypp-curl/ng/network/request.cc:14: included_from: Included from here. libzypp-17.31.32-build/libzypp-17.31.32/zypp-core/zyppng/base/private/linuxhelpers_p.h: scope_hint: In function ‘std::string zyppng::strerr_cxx(int)’ libzypp-17.31.32-build/libzypp-17.31.32/zypp-core/zyppng/base/private/linuxhelpers_p.h:16:15: warning[-Wunused-result]: ignoring return value of ‘char* strerror_r(int, char*, size_t)’ declared with attribute ‘warn_unused_result’ # 16 | strerror_r( err == -1 ? errno : err , strBuf.data(), strBuf.size() ); # | ~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ # 14| inline std::string strerr_cxx ( const int err = -1 ) { # 15| ByteArray strBuf( 1024, '\0' ); # 16|-> strerror_r( err == -1 ? errno : err , strBuf.data(), strBuf.size() ); # 17| return std::string( strBuf.data() ); # 18| } Error: COMPILER_WARNING (CWE-252): libzypp-17.31.32-build/libzypp-17.31.32/zypp-core/zyppng/io/forkspawnengine.cc: scope_hint: In member function ‘virtual bool zyppng::ForkSpawnEngine::start(const char* const*, int, int, int)’ libzypp-17.31.32-build/libzypp-17.31.32/zypp-core/zyppng/io/forkspawnengine.cc:338:18: warning[-Wunused-result]: ignoring return value of ‘int ttyname_r(int, char*, size_t)’ declared with attribute ‘warn_unused_result’ # 338 | ttyname_r( stdout_fd , name, sizeof(name) ); # | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ # 336| # 337| char name[512]; # 338|-> ttyname_r( stdout_fd , name, sizeof(name) ); # 339| ::close(open(name, O_RDONLY)); # 340| } Error: CPPCHECK_WARNING: libzypp-17.31.32-build/libzypp-17.31.32/zypp-core/zyppng/io/iobuffer.cc: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. Error: COMPILER_WARNING (CWE-195): libzypp-17.31.32-build/libzypp-17.31.32/zypp-core/zyppng/rpc/messagestream.cc: scope_hint: In member function ‘bool zyppng::RpcMessageStream::readNextMessage()’ libzypp-17.31.32-build/libzypp-17.31.32/zypp-core/zyppng/rpc/messagestream.cc:35:37: warning[-Wsign-compare]: comparison of integer expressions of different signedness: ‘int64_t’ {aka ‘long int’} and ‘long unsigned int’ # 35 | if ( _ioDev->bytesAvailable() >= sizeof( rpc::HeaderSizeType ) ) { # | ~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ # 33| { # 34| if ( _pendingMessageSize == 0 ) { # 35|-> if ( _ioDev->bytesAvailable() >= sizeof( rpc::HeaderSizeType ) ) { # 36| _ioDev->read( reinterpret_cast<char *>( &_pendingMessageSize ), sizeof( rpc::HeaderSizeType ) ); # 37| } Error: CPPCHECK_WARNING: libzypp-17.31.32-build/libzypp-17.31.32/zypp-core/zyppng/rpc/rpc.cc: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. Error: COMPILER_WARNING (CWE-252): libzypp-17.31.32-build/libzypp-17.31.32/zypp-core/zyppng/thread/wakeup.cpp: scope_hint: In constructor ‘zyppng::Wakeup::Wakeup()’ libzypp-17.31.32-build/libzypp-17.31.32/zypp-core/zyppng/thread/wakeup.cpp:13:12: warning[-Wunused-result]: ignoring return value of ‘int pipe(int*)’ declared with attribute ‘warn_unused_result’ # 13 | ::pipe ( _wakeupPipe ); # | ~~~~~~~^~~~~~~~~~~~~~~ # 11| Wakeup::Wakeup() # 12| { # 13|-> ::pipe ( _wakeupPipe ); # 14| ::fcntl( _wakeupPipe[0], F_SETFL, O_NONBLOCK ); # 15| } Error: CLANG_WARNING: libzypp-17.31.32-build/libzypp-17.31.32/zypp-curl/curlhelper.cc:86:16: warning[deadcode.DeadStores]: Value stored to 'pfx' during its initialization is never read # 84| # 85| long maxlvl = *((long *)max_lvl); # 86|-> const char * pfx = ""; # 87| bool isContent = true; // otherwise it's data # 88| switch( info ) Error: COMPILER_WARNING (CWE-195): libzypp-17.31.32-build/libzypp-17.31.32/zypp-curl/curlhelper.cc: scope_hint: In member function ‘CURLMcode internal::CurlPollHelper::handleSocketActions(const std::vector<_GPollFD>&, int)’ libzypp-17.31.32-build/libzypp-17.31.32/zypp-curl/curlhelper.cc:471:32: warning[-Wsign-compare]: comparison of integer expressions of different signedness: ‘int’ and ‘std::vector<_GPollFD>::size_type’ {aka ‘long unsigned int’} # 471 | for ( int sock = first; sock < actionsFds.size(); sock++ ) { # | ~~~~~^~~~~~~~~~~~~~~~~~~ # 469| CURLMcode internal::CurlPollHelper::handleSocketActions( const std::vector<GPollFD> &actionsFds , int first ) # 470| { # 471|-> for ( int sock = first; sock < actionsFds.size(); sock++ ) { # 472| const auto &waitFd = actionsFds[sock]; # 473| if ( waitFd.revents == 0 ) Error: COMPILER_WARNING (CWE-477): libzypp-17.31.32-build/libzypp-17.31.32/zypp-curl/private/curlhelper_p.h:17: included_from: Included from here. libzypp-17.31.32-build/libzypp-17.31.32/zypp-curl/curlhelper.cc:12: included_from: Included from here. libzypp-17.31.32-build/libzypp-17.31.32/zypp-curl/curlhelper.cc: scope_hint: In function ‘CURLcode internal::setCurlRedirProtocols(CURL*)’ libzypp-17.31.32-build/libzypp-17.31.32/zypp-curl/curlhelper.cc:520:37: warning[-Wdeprecated-declarations]: ‘CURLOPT_REDIR_PROTOCOLS’ is deprecated: since 7.85.0. Use CURLOPT_REDIR_PROTOCOLS_STR # 520 | return curl_easy_setopt ( curl, CURLOPT_REDIR_PROTOCOLS, CURLPROTO_HTTPS ); # | ^~~~~~~~~~~~~~~~~~~~~~~ /usr/include/curl/curl.h:1755:3: note: declared here # 1755 | CURLOPTDEPRECATED(CURLOPT_REDIR_PROTOCOLS, CURLOPTTYPE_LONG, 182, # | ^~~~~~~~~~~~~~~~~ # 518| return curl_easy_setopt ( curl, CURLOPT_REDIR_PROTOCOLS_STR, "https" ); # 519| } else { # 520|-> return curl_easy_setopt ( curl, CURLOPT_REDIR_PROTOCOLS, CURLPROTO_HTTPS ); # 521| } # 522| #else Error: COMPILER_WARNING (CWE-1164): libzypp-17.31.32-build/libzypp-17.31.32/zypp-curl/ng/network/curlmultiparthandler.cc: scope_hint: At global scope libzypp-17.31.32-build/libzypp-17.31.32/zypp-curl/ng/network/curlmultiparthandler.cc:21:14: warning[-Wunused-function]: ‘CURLcode zyppng::{anonymous}::CurlMultiPartSetoptError::code() const’ defined but not used # 21 | CURLcode CurlMultiPartSetoptError::code() const { # | ^~~~~~~~~~~~~~~~~~~~~~~~ # 19| }; # 20| # 21|-> CURLcode CurlMultiPartSetoptError::code() const { # 22| return _code; # 23| } Error: COMPILER_WARNING (CWE-195): libzypp-17.31.32-build/libzypp-17.31.32/zypp-curl/ng/network/curlmultiparthandler.cc: scope_hint: In member function ‘bool zyppng::CurlMultiPartHandler::checkIfRangeChkSumIsValid(Range&)’ libzypp-17.31.32-build/libzypp-17.31.32/zypp-curl/ng/network/curlmultiparthandler.cc:692:46: warning[-Wsign-compare]: comparison of integer expressions of different signedness: ‘long unsigned int’ and ‘zypp::ByteCount::SizeType’ {aka ‘long long int’} # 692 | if ( rng._chksumPad && *rng._chksumPad > bytesHashed ) { # | ~~~~~~~~~~~~~~~~^~~~~~~~~~~~~ # 690| if ( rng._digest && rng._checksum.size() ) { # 691| auto bytesHashed = rng._digest->bytesHashed (); # 692|-> if ( rng._chksumPad && *rng._chksumPad > bytesHashed ) { # 693| MIL_MEDIA << _easyHandle << " " << "Padding the digest to required block size" << std::endl; # 694| zypp::ByteArray padding( *rng._chksumPad - bytesHashed, '\0' ); Error: COMPILER_WARNING (CWE-9001): libzypp-17.31.32-build/libzypp-17.31.32/zypp-curl/ng/network/downloader.cc:9: included_from: Included from here. libzypp-17.31.32-build/libzypp-17.31.32/zypp-curl/ng/network/private/downloader_p.h:89:9: warning[-Wattributes]: ‘zyppng::DownloadPrivate’ declared with greater visibility than its base ‘zyppng::Statemachine<zyppng::DownloadPrivate, zyppng::Download::State, zyppng::Transition<zyppng::InitialState, &zyppng::InitialState::sigTransitionToDetectMetalinkState, zyppng::DetectMetalinkState, true, nullptr>, zyppng::Transition<zyppng::InitialState, &zyppng::InitialState::sigTransitionToDlMetaLinkInfoState, zyppng::DlMetaLinkInfoState, true, nullptr>, zyppng::Transition<zyppng::InitialState, &zyppng::InitialState::sigTran [...] # 89 | class DownloadPrivate : public DownloadPrivateBase, public DownloadStatemachine<DownloadPrivate> # | ^~~~~~~~~~~~~~~ # 87| >; # 88| # 89|-> class DownloadPrivate : public DownloadPrivateBase, public DownloadStatemachine<DownloadPrivate> # 90| { # 91| public: libzypp-17.31.32-build/libzypp-17.31.32/zypp-curl/ng/network/private/downloader_p.h:89:9: note: trimmed 1 message(s) with length over 512 Error: COMPILER_WARNING (CWE-195): libzypp-17.31.32-build/libzypp-17.31.32/zypp-curl/ng/network/private/downloaderstates/rangedownloader_p.cc: scope_hint: In member function ‘std::vector<zyppng::DownloadPrivateBase::Block> zyppng::RangeDownloaderBaseState::getNextBlocks(const std::string&)’ libzypp-17.31.32-build/libzypp-17.31.32/zypp-curl/ng/network/private/downloaderstates/rangedownloader_p.cc:376:47: warning[-Wsign-compare]: comparison of integer expressions of different signedness: ‘size_t’ {aka ‘long unsigned int’} and ‘zypp::ByteCount::SizeType’ {aka ‘long long int’} # 376 | while ( _ranges.size() && accumulatedSize < prefSize ) { # | ~~~~~~~~~~~~~~~~^~~~~~~~~~ # 374| # 375| std::optional<size_t> lastBlockEnd; # 376|-> while ( _ranges.size() && accumulatedSize < prefSize ) { # 377| const auto &r = _ranges.front(); # 378| Error: COMPILER_WARNING (CWE-195): libzypp-17.31.32-build/libzypp-17.31.32/zypp-curl/ng/network/private/downloaderstates/rangedownloader_p.cc: scope_hint: In member function ‘std::vector<zyppng::DownloadPrivateBase::Block> zyppng::RangeDownloaderBaseState::getNextFailedBlocks(const std::string&)’ libzypp-17.31.32-build/libzypp-17.31.32/zypp-curl/ng/network/private/downloaderstates/rangedownloader_p.cc:424:28: warning[-Wsign-compare]: comparison of integer expressions of different signedness: ‘size_t’ {aka ‘long unsigned int’} and ‘zypp::ByteCount::SizeType’ {aka ‘long long int’} # 424 | if ( accumulatedSize >= prefSize ) # | ~~~~~~~~~~~~~~~~^~~~~~~~~~~ # 422| fblks.back()._retryCount += 1; # 423| # 424|-> if ( accumulatedSize >= prefSize ) # 425| break; # 426| } Error: COMPILER_WARNING (CWE-195): libzypp-17.31.32-build/libzypp-17.31.32/zypp-curl/parser/mediablocklist.cc: scope_hint: In member function ‘void zypp::media::MediaBlockList::reuseBlocks(FILE*, std::string)’ libzypp-17.31.32-build/libzypp-17.31.32/zypp-curl/parser/mediablocklist.cc:498:31: warning[-Wsign-compare]: comparison of integer expressions of different signedness: ‘int’ and ‘size_t’ {aka ‘long unsigned int’} # 498 | while ((2 << (i - 1)) > nblks && i > 4) # | ~~~~~~~~~~~~~~~^~~~~~~ # 496| # 497| /* Try hash size of 2^i; step down the value of i until we find a good size */ # 498|-> while ((2 << (i - 1)) > nblks && i > 4) # 499| i--; # 500| Error: COMPILER_WARNING: libzypp-17.31.32-build/libzypp-17.31.32/zypp/ZConfig.cc:309:2: warning[-Wcpp]: #warning HACK AROUND BOOST_TEST_CATCH_SYSTEM_ERRORS # 309 | #warning HACK AROUND BOOST_TEST_CATCH_SYSTEM_ERRORS # | ^~~~~~~ # 307| } # 308| MIL << "Default text locale is '" << ret << "'" << endl; # 309|-> #warning HACK AROUND BOOST_TEST_CATCH_SYSTEM_ERRORS # 310| setenv( "BOOST_TEST_CATCH_SYSTEM_ERRORS", "no", 1 ); # 311| return ret; Error: COMPILER_WARNING (CWE-252): libzypp-17.31.32-build/libzypp-17.31.32/zypp/ZYppFactory.cc: scope_hint: In destructor ‘zypp::ZYppGlobalLock::~ZYppGlobalLock()’ libzypp-17.31.32-build/libzypp-17.31.32/zypp/ZYppFactory.cc:126:22: warning[-Wunused-result]: ignoring return value of ‘int ftruncate(int, __off64_t)’ declared with attribute ‘warn_unused_result’ # 126 | ftruncate( fileno(_zyppLockFile), 0 ); # | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~ # 124| // Truncate the file rather than deleting it. Other processes may # 125| // still use it to synchronsize. # 126|-> ftruncate( fileno(_zyppLockFile), 0 ); # 127| } # 128| MIL << "Cleaned lock file. (" << getpid() << ")" << std::endl; Error: COMPILER_WARNING (CWE-252): libzypp-17.31.32-build/libzypp-17.31.32/zypp/ZYppFactory.cc: scope_hint: In member function ‘pid_t zypp::ZYppGlobalLock::readLockFile()’ libzypp-17.31.32-build/libzypp-17.31.32/zypp/ZYppFactory.cc:233:13: warning[-Wunused-result]: ignoring return value of ‘int fscanf(FILE*, const char*, ...)’ declared with attribute ‘warn_unused_result’ # 233 | fscanf( _zyppLockFile, "%ld", &readpid ); # | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ # 231| fseek( _zyppLockFile, 0, SEEK_SET ); # 232| long readpid = 0; # 233|-> fscanf( _zyppLockFile, "%ld", &readpid ); # 234| MIL << "read: Lockfile " << _zyppLockFilePath << " has pid " << readpid << " (our pid: " << getpid() << ") "<< std::endl; # 235| return (pid_t)readpid; Error: COMPILER_WARNING (CWE-252): libzypp-17.31.32-build/libzypp-17.31.32/zypp/ZYppFactory.cc: scope_hint: In member function ‘void zypp::ZYppGlobalLock::writeLockFile()’ libzypp-17.31.32-build/libzypp-17.31.32/zypp/ZYppFactory.cc:242:16: warning[-Wunused-result]: ignoring return value of ‘int ftruncate(int, __off64_t)’ declared with attribute ‘warn_unused_result’ # 242 | ftruncate( fileno(_zyppLockFile), 0 ); # | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~ # 240| clearerr( _zyppLockFile ); # 241| fseek( _zyppLockFile, 0, SEEK_SET ); # 242|-> ftruncate( fileno(_zyppLockFile), 0 ); # 243| fprintf(_zyppLockFile, "%ld\n", (long)getpid() ); # 244| fflush( _zyppLockFile ); Error: COMPILER_WARNING (CWE-195): libzypp-17.31.32-build/libzypp-17.31.32/zypp/media/MediaMultiCurl.cc: scope_hint: In member function ‘virtual size_t zypp::media::multifetchworker::headerfunction(char*, size_t)’ libzypp-17.31.32-build/libzypp-17.31.32/zypp/media/MediaMultiCurl.cc:406:28: warning[-Wsign-compare]: comparison of integer expressions of different signedness: ‘const long unsigned int’ and ‘off_t’ {aka ‘long int’} # 406 | if ( repSize && *repSize != _request->_filesize ) { # | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~ # 404| # 405| const auto &repSize = _multiByteHandler->reportedFileSize (); # 406|-> if ( repSize && *repSize != _request->_filesize ) { # 407| XXX << "#" << _workerno << ": filesize mismatch" << endl; # 408| _state = WORKER_BROKEN; Error: COMPILER_WARNING (CWE-195): libzypp-17.31.32-build/libzypp-17.31.32/zypp/media/MediaMultiCurl.cc: scope_hint: In member function ‘void zypp::media::multifetchworker::nextjob()’ libzypp-17.31.32-build/libzypp-17.31.32/zypp/media/MediaMultiCurl.cc:855:51: warning[-Wsign-compare]: comparison of integer expressions of different signedness: ‘off_t’ {aka ‘long int’} and ‘std::vector<zypp::media::Stripe>::size_type’ {aka ‘long unsigned int’} # 855 | if ( _request->_stealing || _request->_stripeNo >= _request->_requiredStripes.size() ) { # | ~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ # 853| # 854| // claim next stripe for us, or steal if there nothing left to claim # 855|-> if ( _request->_stealing || _request->_stripeNo >= _request->_requiredStripes.size() ) { # 856| stealjob(); # 857| return; Error: COMPILER_WARNING: libzypp-17.31.32-build/libzypp-17.31.32/zypp/media/MediaMultiCurl.cc: scope_hint: In member function ‘zypp::media::multifetchworker::continueJob()’ libzypp-17.31.32-build/libzypp-17.31.32/zypp/media/MediaMultiCurl.cc:904:12: warning[-Wstringop-truncation]: ‘strncpy’ specified bound 256 equals destination size # 904 | strncpy( _curlError, _multiByteHandler->lastErrorMessage().c_str(), CURL_ERROR_SIZE ); # | ^ # 902| bool hadRangeFail = _multiByteHandler->lastError() == MultiByteHandler::Code::RangeFail; # 903| if ( !_multiByteHandler->prepareToContinue() ) { # 904|-> strncpy( _curlError, _multiByteHandler->lastErrorMessage().c_str(), CURL_ERROR_SIZE ); # 905| return false; # 906| } Error: COMPILER_WARNING: libzypp-17.31.32-build/libzypp-17.31.32/zypp/media/MediaMultiCurl.cc: scope_hint: In member function ‘zypp::media::multifetchworker::run()’ libzypp-17.31.32-build/libzypp-17.31.32/zypp/media/MediaMultiCurl.cc:933:12: warning[-Wstringop-truncation]: ‘strncpy’ specified bound 256 equals destination size # 933 | strncpy( _curlError, _multiByteHandler->lastErrorMessage ().c_str() , CURL_ERROR_SIZE ); # | ^ # 931| _request->_activeworkers--; # 932| _state = WORKER_BROKEN; # 933|-> strncpy( _curlError, _multiByteHandler->lastErrorMessage ().c_str() , CURL_ERROR_SIZE ); # 934| return; # 935| } Error: COMPILER_WARNING: libzypp-17.31.32-build/libzypp-17.31.32/zypp/media/MediaMultiCurl.cc: scope_hint: In member function ‘zypp::media::multifetchrequest::run(std::vector<zypp::Url, std::allocator<zypp::Url> >&)’ libzypp-17.31.32-build/libzypp-17.31.32/zypp/media/MediaMultiCurl.cc:1177:22: warning[-Wstringop-truncation]: ‘strncpy’ specified bound 256 equals destination size # 1177 | strncpy(worker->_curlError, str.c_str(), CURL_ERROR_SIZE); # | ^ # 1175| worker->_state = WORKER_BROKEN; # 1176| if ( !str.empty () ) # 1177|-> strncpy(worker->_curlError, str.c_str(), CURL_ERROR_SIZE); # 1178| _activeworkers--; # 1179| Error: COMPILER_WARNING (CWE-477): libzypp-17.31.32-build/libzypp-17.31.32/zypp/misc/DefaultLoadSystem.cc: scope_hint: In function ‘void zypp::misc::defaultLoadSystem(const zypp::filesystem::Pathname&, LoadSystemFlags)’ libzypp-17.31.32-build/libzypp-17.31.32/zypp/misc/DefaultLoadSystem.cc:51:37: warning[-Wdeprecated-declarations]: ‘void zypp::zypp_readonly_hack::IWantIt()’ is deprecated # 51 | zypp_readonly_hack::IWantIt (); # | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ libzypp-17.31.32-build/libzypp-17.31.32/zypp/zypp_detail/ZYppReadOnlyHack.h:26:10: note: declared here # 26 | void IWantIt() ZYPP_DEPRECATED; # | ^~~~~~~ # 49| # 50| if ( flags_r.testFlag( LS_READONLY ) ) # 51|-> zypp_readonly_hack::IWantIt (); # 52| # 53| sat::Pool satpool( sat::Pool::instance() ); Error: CLANG_WARNING: libzypp-17.31.32-build/libzypp-17.31.32/zypp/repo/PluginRepoverification.cc:50:11: warning[deadcode.DeadStores]: Value stored to 'goOn' is never read # 48| const auto &readResult = io::receiveUpto( inputfile, '\n', _timeout ); # 49| line += readResult.second; // we always may have received a partial line # 50|-> goOn = true; # 51| switch ( readResult.first ) { # 52| Error: CLANG_WARNING: libzypp-17.31.32-build/libzypp-17.31.32/zypp/sat/detail/PoolImpl.cc:419:15: warning[deadcode.DeadStores]: Value stored to 'blockBegin' is never read # 417| // Free remembered entries # 418| ::repo_free_solvable_block( repo_r, blockBegin, blockSize, /*resusePoolIDs*/false ); # 419|-> blockBegin = blockSize = 0; # 420| } # 421| } Error: CLANG_WARNING: libzypp-17.31.32-build/libzypp-17.31.32/zypp/sat/detail/PoolImpl.cc:419:28: warning[deadcode.DeadStores]: Although the value stored to 'blockSize' is used in the enclosing expression, the value is never actually read from 'blockSize' # 417| // Free remembered entries # 418| ::repo_free_solvable_block( repo_r, blockBegin, blockSize, /*resusePoolIDs*/false ); # 419|-> blockBegin = blockSize = 0; # 420| } # 421| } Error: COMPILER_WARNING (CWE-697): libzypp-17.31.32-build/libzypp-17.31.32/zypp/target/TargetImpl.cc: scope_hint: In member function ‘zypp::ZYppCommitResult zypp::target::TargetImpl::commit(zypp::ResPool, const zypp::ZYppCommitPolicy&)’ libzypp-17.31.32-build/libzypp-17.31.32/zypp/target/TargetImpl.cc:1367:41: warning[-Waddress]: the address of ‘bool zypp::env::TRANSACTIONAL_UPDATE()’ will never be NULL # 1367 | if ( (root() == "/" || zypp::env::TRANSACTIONAL_UPDATE) && ! policy_r.dryRun() ) # | ^~~~~~~~~~~~~~~~~~~~ libzypp-17.31.32-build/libzypp-17.31.32/zypp/target/TargetImpl.cc:85:15: note: ‘bool zypp::env::TRANSACTIONAL_UPDATE()’ declared here # 85 | inline bool TRANSACTIONAL_UPDATE() # | ^~~~~~~~~~~~~~~~~~~~ # 1365| PluginExecutor commitPlugins; # 1366| # 1367|-> if ( (root() == "/" || zypp::env::TRANSACTIONAL_UPDATE) && ! policy_r.dryRun() ) # 1368| { # 1369| commitPlugins.load( ZConfig::instance().pluginsPath()/"commit" ); Error: COMPILER_WARNING: libzypp-17.31.32-build/libzypp-17.31.32/zypp/misc/DefaultLoadSystem.cc:20: included_from: Included from here. libzypp-17.31.32-build/libzypp-17.31.32/zypp/zypp_detail/ZYppReadOnlyHack.h:15:2: warning[-Wcpp]: #warning ZYPP_ZYPP_DETAIL_ZYPPREADONLYHACK_H # 15 | #warning ZYPP_ZYPP_DETAIL_ZYPPREADONLYHACK_H # | ^~~~~~~ # 13| #ifndef ZYPP_ZYPP_DETAIL_ZYPPREADONLYHACK_H # 14| #define ZYPP_ZYPP_DETAIL_ZYPPREADONLYHACK_H # 15|-> #warning ZYPP_ZYPP_DETAIL_ZYPPREADONLYHACK_H # 16| # 17| #include <zypp/APIConfig.h>