Task #371 - added.err
back to task #371download
Error: CPPCHECK_WARNING: dnf5-5.2.3.0-build/dnf5-5.2.3.0/dnf5-plugins/copr_plugin/copr_debug.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. Error: CPPCHECK_WARNING: dnf5-5.2.3.0-build/dnf5-5.2.3.0/dnf5-plugins/copr_plugin/copr_disable.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. Error: CPPCHECK_WARNING: dnf5-5.2.3.0-build/dnf5-5.2.3.0/dnf5-plugins/copr_plugin/copr_enable.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. Error: CPPCHECK_WARNING: dnf5-5.2.3.0-build/dnf5-5.2.3.0/dnf5-plugins/copr_plugin/copr_list.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. Error: CPPCHECK_WARNING: dnf5-5.2.3.0-build/dnf5-5.2.3.0/dnf5-plugins/copr_plugin/copr_remove.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. Error: CPPCHECK_WARNING: dnf5-5.2.3.0-build/dnf5-5.2.3.0/dnf5daemon-client/commands/group/group_list.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. Error: CPPCHECK_WARNING: dnf5-5.2.3.0-build/dnf5-5.2.3.0/dnf5daemon-client/wrappers/dbus_goal_wrapper.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. Error: CPPCHECK_WARNING: dnf5-5.2.3.0-build/dnf5-5.2.3.0/libdnf5-cli/output/package_info_sections.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. Error: CPPCHECK_WARNING: dnf5-5.2.3.0-build/dnf5-5.2.3.0/libdnf5-cli/output/transaction_table.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. Error: CPPCHECK_WARNING (CWE-758): dnf5-5.2.3.0-build/dnf5-5.2.3.0/libdnf5-cli/output/transaction_table.cpp:47: error[missingReturn]: Found an exit path from function with non-void return type that has missing return statement # 45| # 46| const char * action_color(libdnf5::transaction::TransactionItemAction action) { # 47|-> switch (action) { # 48| case libdnf5::transaction::TransactionItemAction::INSTALL: # 49| case libdnf5::transaction::TransactionItemAction::UPGRADE: Error: CPPCHECK_WARNING: dnf5-5.2.3.0-build/dnf5-5.2.3.0/libdnf5/comps/group/group.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. Error: CPPCHECK_WARNING (CWE-562): dnf5-5.2.3.0-build/dnf5-5.2.3.0/libdnf5/repo/repo_sack.cpp:144: error[danglingLifetime]: Non-local variable 'p_impl->cmdline_repo' will use pointer to local variable 'repo'. # 142| std::unique_ptr<Repo> repo(new Repo(p_impl->base, CMDLINE_REPO_NAME, Repo::Type::COMMANDLINE)); # 143| repo->get_config().get_build_cache_option().set(libdnf5::Option::Priority::RUNTIME, false); # 144|-> p_impl->cmdline_repo = repo.get(); # 145| add_item(std::move(repo)); # 146| } Error: CPPCHECK_WARNING (CWE-562): dnf5-5.2.3.0-build/dnf5-5.2.3.0/libdnf5/repo/repo_sack.cpp:157: error[danglingLifetime]: Non-local variable 'p_impl->stored_transaction_repo' will use pointer to local variable 'repo'. # 155| std::unique_ptr<Repo> repo(new Repo(p_impl->base, STORED_TRANSACTION_NAME, Repo::Type::COMMANDLINE)); # 156| repo->get_config().get_build_cache_option().set(libdnf5::Option::Priority::RUNTIME, false); # 157|-> p_impl->stored_transaction_repo = repo.get(); # 158| add_item(std::move(repo)); # 159| } Error: CPPCHECK_WARNING (CWE-562): dnf5-5.2.3.0-build/dnf5-5.2.3.0/libdnf5/repo/repo_sack.cpp:279: error[danglingLifetime]: Non-local variable 'p_impl->system_repo' will use pointer to local variable 'repo'. # 277| // TODO(mblaha): re-enable caching once we can reliably detect whether system repo is up-to-date # 278| repo->get_config().get_build_cache_option().set(libdnf5::Option::Priority::RUNTIME, false); # 279|-> p_impl->system_repo = repo.get(); # 280| add_item(std::move(repo)); # 281| } Error: CLANG_WARNING: dnf5-5.2.3.0-build/dnf5-5.2.3.0/redhat-linux-build/bindings/ruby/libdnf5/CMakeFiles/ruby_plugin.dir/pluginRUBY_wrap.cxx:5567:7: warning[core.CallAndMessage]: Called C++ object pointer is null # 5565| (arg1)->libdnf5::plugin::IPlugin::pre_add_cmdline_packages((std::vector< std::string,std::allocator< std::string > > const &)*arg2); # 5566| } else { # 5567|-> (arg1)->pre_add_cmdline_packages((std::vector< std::string,std::allocator< std::string > > const &)*arg2); # 5568| } # 5569| } catch (Swig::DirectorException& e) { Error: CLANG_WARNING: dnf5-5.2.3.0-build/dnf5-5.2.3.0/redhat-linux-build/bindings/ruby/libdnf5/CMakeFiles/ruby_plugin.dir/pluginRUBY_wrap.cxx:5603:7: warning[core.CallAndMessage]: Called C++ object pointer is null # 5601| (arg1)->libdnf5::plugin::IPlugin::post_add_cmdline_packages(); # 5602| } else { # 5603|-> (arg1)->post_add_cmdline_packages(); # 5604| } # 5605| } catch (Swig::DirectorException& e) { Error: CLANG_WARNING: dnf5-5.2.3.0-build/dnf5-5.2.3.0/redhat-linux-build/bindings/ruby/libdnf5/CMakeFiles/ruby_plugin.dir/pluginRUBY_wrap.cxx:5648:7: warning[core.CallAndMessage]: Called C++ object pointer is null # 5646| (arg1)->libdnf5::plugin::IPlugin::pre_transaction((libdnf5::base::Transaction const &)*arg2); # 5647| } else { # 5648|-> (arg1)->pre_transaction((libdnf5::base::Transaction const &)*arg2); # 5649| } # 5650| } catch (Swig::DirectorException& e) { Error: CLANG_WARNING: dnf5-5.2.3.0-build/dnf5-5.2.3.0/redhat-linux-build/bindings/ruby/libdnf5/CMakeFiles/ruby_plugin.dir/pluginRUBY_wrap.cxx:5693:7: warning[core.CallAndMessage]: Called C++ object pointer is null # 5691| (arg1)->libdnf5::plugin::IPlugin::post_transaction((libdnf5::base::Transaction const &)*arg2); # 5692| } else { # 5693|-> (arg1)->post_transaction((libdnf5::base::Transaction const &)*arg2); # 5694| } # 5695| } catch (Swig::DirectorException& e) { Error: CLANG_WARNING: dnf5-5.2.3.0-build/dnf5-5.2.3.0/redhat-linux-build/bindings/ruby/libdnf5/CMakeFiles/ruby_plugin.dir/pluginRUBY_wrap.cxx:5727:7: warning[core.CallAndMessage]: Called C++ object pointer is null # 5725| (arg1)->libdnf5::plugin::IPlugin::finish(); # 5726| } else { # 5727|-> (arg1)->finish(); # 5728| } # 5729| } catch (Swig::DirectorException& e) { Error: CLANG_WARNING: dnf5-5.2.3.0-build/dnf5-5.2.3.0/redhat-linux-build/bindings/ruby/libdnf5/CMakeFiles/ruby_plugin.dir/pluginRUBY_wrap.cxx:5974:11: warning[cplusplus.NewDeleteLeaks]: Potential memory leak # 5972| arg1 = reinterpret_cast< libdnf5::plugin::PluginInfo * >(argp1); # 5973| result = ((libdnf5::plugin::PluginInfo const *)arg1)->get_api_version(); # 5974|-> vresult = SWIG_NewPointerObj((new libdnf5::PluginAPIVersion(result)), SWIGTYPE_p_libdnf5__PluginAPIVersion, SWIG_POINTER_OWN | 0 ); # 5975| return vresult; # 5976| fail: Error: CLANG_WARNING: dnf5-5.2.3.0-build/dnf5-5.2.3.0/redhat-linux-build/bindings/ruby/libdnf5/CMakeFiles/ruby_plugin.dir/pluginRUBY_wrap.cxx:6022:11: warning[cplusplus.NewDeleteLeaks]: Potential memory leak # 6020| arg1 = reinterpret_cast< libdnf5::plugin::PluginInfo * >(argp1); # 6021| result = ((libdnf5::plugin::PluginInfo const *)arg1)->get_version(); # 6022|-> vresult = SWIG_NewPointerObj((new libdnf5::plugin::Version(result)), SWIGTYPE_p_libdnf5__plugin__Version, SWIG_POINTER_OWN | 0 ); # 6023| return vresult; # 6024| fail: Error: CPPCHECK_WARNING: dnf5-5.2.3.0-build/dnf5-5.2.3.0/test/dnf5-plugins/copr_plugin/CoprRepoTest.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.