Error: COMPILER_WARNING (CWE-758): [#def1] libdnf-0.73.3-build/libdnf-0.73.3/build-py3/bindings/python/CMakeFiles/_common_types.dir/common_typesPYTHON_wrap.cxx:3273:24: warning[-Wmissing-declarations]: no previous declaration for ‘PyObject* PyInit__common_types()’ # 3273 | # define SWIG_init PyInit__common_types # | ^~~~~~~~~~~~~~~~~~~~ libdnf-0.73.3-build/libdnf-0.73.3/build-py3/bindings/python/CMakeFiles/_common_types.dir/common_typesPYTHON_wrap.cxx:17916:1: note: in expansion of macro ‘SWIG_init’ #17916 | SWIG_init(void) { # | ^~~~~~~~~ # 3271| ------------------------------------------------*/ # 3272| #if PY_VERSION_HEX >= 0x03000000 # 3273|-> # define SWIG_init PyInit__common_types # 3274| # 3275| #else Error: COMPILER_WARNING (CWE-758): [#def2] libdnf-0.73.3-build/libdnf-0.73.3/build-py3/bindings/python/CMakeFiles/_conf.dir/confPYTHON_wrap.cxx:3305:24: warning[-Wmissing-declarations]: no previous declaration for ‘PyObject* PyInit__conf()’ # 3305 | # define SWIG_init PyInit__conf # | ^~~~~~~~~~~~ libdnf-0.73.3-build/libdnf-0.73.3/build-py3/bindings/python/CMakeFiles/_conf.dir/confPYTHON_wrap.cxx:30346:1: note: in expansion of macro ‘SWIG_init’ #30346 | SWIG_init(void) { # | ^~~~~~~~~ # 3303| ------------------------------------------------*/ # 3304| #if PY_VERSION_HEX >= 0x03000000 # 3305|-> # define SWIG_init PyInit__conf # 3306| # 3307| #else Error: COMPILER_WARNING (CWE-758): [#def3] libdnf-0.73.3-build/libdnf-0.73.3/build-py3/bindings/python/CMakeFiles/_error.dir/errorPYTHON_wrap.cxx:3223:24: warning[-Wmissing-declarations]: no previous declaration for ‘PyObject* PyInit__error()’ # 3223 | # define SWIG_init PyInit__error # | ^~~~~~~~~~~~~ libdnf-0.73.3-build/libdnf-0.73.3/build-py3/bindings/python/CMakeFiles/_error.dir/errorPYTHON_wrap.cxx:3724:1: note: in expansion of macro ‘SWIG_init’ # 3724 | SWIG_init(void) { # | ^~~~~~~~~ # 3221| ------------------------------------------------*/ # 3222| #if PY_VERSION_HEX >= 0x03000000 # 3223|-> # define SWIG_init PyInit__error # 3224| # 3225| #else Error: COMPILER_WARNING (CWE-758): [#def4] libdnf-0.73.3-build/libdnf-0.73.3/build-py3/bindings/python/CMakeFiles/_module.dir/modulePYTHON_wrap.cxx: scope_hint: At global scope libdnf-0.73.3-build/libdnf-0.73.3/build-py3/bindings/python/CMakeFiles/_module.dir/modulePYTHON_wrap.cxx:3281:24: warning[-Wmissing-declarations]: no previous declaration for ‘PyObject* PyInit__module()’ # 3281 | # define SWIG_init PyInit__module # | ^~~~~~~~~~~~~~ libdnf-0.73.3-build/libdnf-0.73.3/build-py3/bindings/python/CMakeFiles/_module.dir/modulePYTHON_wrap.cxx:32261:1: note: in expansion of macro ‘SWIG_init’ #32261 | SWIG_init(void) { # | ^~~~~~~~~ # 3279| ------------------------------------------------*/ # 3280| #if PY_VERSION_HEX >= 0x03000000 # 3281|-> # define SWIG_init PyInit__module # 3282| # 3283| #else Error: COMPILER_WARNING (CWE-477): [#def5] libdnf-0.73.3-build/libdnf-0.73.3/build-py3/bindings/python/CMakeFiles/_module.dir/modulePYTHON_wrap.cxx: scope_hint: In function ‘PyObject* _wrap_ModulePackageContainer_getDisabledStreams(PyObject*, PyObject*)’ libdnf-0.73.3-build/libdnf-0.73.3/build-py3/bindings/python/CMakeFiles/_module.dir/modulePYTHON_wrap.cxx:29658:42: warning[-Wdeprecated-declarations]: ‘std::map<std::__cxx11::basic_string<char>, std::__cxx11::basic_string<char> > libdnf::ModulePackageContainer::getDisabledStreams()’ is deprecated: Will be removed after 2019-12-31. Use getDisabledModules() instead. #29658 | result = (arg1)->getDisabledStreams(); # | ~~~~~~~~~~~~~~~~~~~~~~~~~~^~ libdnf-0.73.3-build/libdnf-0.73.3/build-py3/bindings/python/CMakeFiles/_module.dir/modulePYTHON_wrap.cxx:3941: included_from: Included from here. libdnf-0.73.3-build/libdnf-0.73.3/libdnf/module/ModulePackageContainer.hpp:251:40: note: declared here # 251 | std::map<std::string, std::string> getDisabledStreams(); # | ^~~~~~~~~~~~~~~~~~ #29656| { #29657| try { #29658|-> result = (arg1)->getDisabledStreams(); #29659| } catch (const libdnf::Error & e) { #29660| PyErr_SetString(libdnf_error, const_cast<char*>(e.what())); Error: COMPILER_WARNING (CWE-477): [#def6] libdnf-0.73.3-build/libdnf-0.73.3/build-py3/bindings/python/CMakeFiles/_module.dir/modulePYTHON_wrap.cxx: scope_hint: In function ‘PyObject* _wrap_ModulePackageContainer_getResetStreams(PyObject*, PyObject*)’ libdnf-0.73.3-build/libdnf-0.73.3/build-py3/bindings/python/CMakeFiles/_module.dir/modulePYTHON_wrap.cxx:29728:39: warning[-Wdeprecated-declarations]: ‘std::map<std::__cxx11::basic_string<char>, std::__cxx11::basic_string<char> > libdnf::ModulePackageContainer::getResetStreams()’ is deprecated: Will be removed after 2019-12-31. Use getResetModules() instead. #29728 | result = (arg1)->getResetStreams(); # | ~~~~~~~~~~~~~~~~~~~~~~~^~ libdnf-0.73.3-build/libdnf-0.73.3/libdnf/module/ModulePackageContainer.hpp:263:40: note: declared here # 263 | std::map<std::string, std::string> getResetStreams(); # | ^~~~~~~~~~~~~~~ #29726| { #29727| try { #29728|-> result = (arg1)->getResetStreams(); #29729| } catch (const libdnf::Error & e) { #29730| PyErr_SetString(libdnf_error, const_cast<char*>(e.what())); Error: COMPILER_WARNING (CWE-758): [#def7] libdnf-0.73.3-build/libdnf-0.73.3/build-py3/bindings/python/CMakeFiles/_repo.dir/repoPYTHON_wrap.cxx:3783:24: warning[-Wmissing-declarations]: no previous declaration for ‘PyObject* PyInit__repo()’ # 3783 | # define SWIG_init PyInit__repo # | ^~~~~~~~~~~~ libdnf-0.73.3-build/libdnf-0.73.3/build-py3/bindings/python/CMakeFiles/_repo.dir/repoPYTHON_wrap.cxx:17613:1: note: in expansion of macro ‘SWIG_init’ #17613 | SWIG_init(void) { # | ^~~~~~~~~ # 3781| ------------------------------------------------*/ # 3782| #if PY_VERSION_HEX >= 0x03000000 # 3783|-> # define SWIG_init PyInit__repo # 3784| # 3785| #else Error: COMPILER_WARNING (CWE-758): [#def8] libdnf-0.73.3-build/libdnf-0.73.3/build-py3/bindings/python/CMakeFiles/_smartcols.dir/smartcolsPYTHON_wrap.cxx:3247:24: warning[-Wmissing-declarations]: no previous declaration for ‘PyObject* PyInit__smartcols()’ # 3247 | # define SWIG_init PyInit__smartcols # | ^~~~~~~~~~~~~~~~~ libdnf-0.73.3-build/libdnf-0.73.3/build-py3/bindings/python/CMakeFiles/_smartcols.dir/smartcolsPYTHON_wrap.cxx:11784:1: note: in expansion of macro ‘SWIG_init’ #11784 | SWIG_init(void) { # | ^~~~~~~~~ # 3245| ------------------------------------------------*/ # 3246| #if PY_VERSION_HEX >= 0x03000000 # 3247|-> # define SWIG_init PyInit__smartcols # 3248| # 3249| #else Error: COMPILER_WARNING (CWE-758): [#def9] libdnf-0.73.3-build/libdnf-0.73.3/build-py3/bindings/python/CMakeFiles/_transaction.dir/transactionPYTHON_wrap.cxx:3278:24: warning[-Wmissing-declarations]: no previous declaration for ‘PyObject* PyInit__transaction()’ # 3278 | # define SWIG_init PyInit__transaction # | ^~~~~~~~~~~~~~~~~~~ libdnf-0.73.3-build/libdnf-0.73.3/build-py3/bindings/python/CMakeFiles/_transaction.dir/transactionPYTHON_wrap.cxx:20943:1: note: in expansion of macro ‘SWIG_init’ #20943 | SWIG_init(void) { # | ^~~~~~~~~ # 3276| ------------------------------------------------*/ # 3277| #if PY_VERSION_HEX >= 0x03000000 # 3278|-> # define SWIG_init PyInit__transaction # 3279| # 3280| #else Error: COMPILER_WARNING (CWE-758): [#def10] libdnf-0.73.3-build/libdnf-0.73.3/build-py3/bindings/python/CMakeFiles/_utils.dir/utilsPYTHON_wrap.cxx:3740:24: warning[-Wmissing-declarations]: no previous declaration for ‘PyObject* PyInit__utils()’ # 3740 | # define SWIG_init PyInit__utils # | ^~~~~~~~~~~~~ libdnf-0.73.3-build/libdnf-0.73.3/build-py3/bindings/python/CMakeFiles/_utils.dir/utilsPYTHON_wrap.cxx:7234:1: note: in expansion of macro ‘SWIG_init’ # 7234 | SWIG_init(void) { # | ^~~~~~~~~ # 3738| ------------------------------------------------*/ # 3739| #if PY_VERSION_HEX >= 0x03000000 # 3740|-> # define SWIG_init PyInit__utils # 3741| # 3742| #else Error: COMPILER_WARNING (CWE-477): [#def11] libdnf-0.73.3-build/libdnf-0.73.3/libdnf/dnf-repo-loader.cpp: scope_hint: In function ‘gboolean dnf_repo_loader_get_repos_removable(DnfRepoLoader*, GError**)’ libdnf-0.73.3-build/libdnf-0.73.3/libdnf/dnf-repo-loader.cpp:248:31: warning[-Wdeprecated-declarations]: ‘GList* g_unix_mounts_get(guint64*)’ is deprecated: Use 'g_unix_mount_entries_get' instead # 248 | mounts = g_unix_mounts_get(NULL); # | ~~~~~~~~~~~~~~~~~^~~~~~ libdnf-0.73.3-build/libdnf-0.73.3/libdnf/dnf-repo-loader.cpp:36: included_from: Included from here. /usr/include/gio-unix-2.0/gio/gunixmounts.h:192:16: note: declared here # 192 | GList * g_unix_mounts_get (guint64 *time_read); # | ^~~~~~~~~~~~~~~~~ # 246| # 247| /* coldplug the mounts */ # 248|-> mounts = g_unix_mounts_get(NULL); # 249| for (l = mounts; l != NULL; l = l->next) { # 250| GUnixMountEntry *e =(GUnixMountEntry *) l->data; Error: COMPILER_WARNING (CWE-477): [#def12] libdnf-0.73.3-build/libdnf-0.73.3/libdnf/dnf-repo-loader.cpp:251:38: warning[-Wdeprecated-declarations]: ‘gboolean g_unix_mount_is_readonly(GUnixMountEntry*)’ is deprecated: Use 'g_unix_mount_entry_is_readonly' instead # 251 | if (!g_unix_mount_is_readonly(e)) # | ~~~~~~~~~~~~~~~~~~~~~~~~^~~ /usr/include/gio-unix-2.0/gio/gunixmounts.h:118:16: note: declared here # 118 | gboolean g_unix_mount_is_readonly (GUnixMountEntry *mount_entry); # | ^~~~~~~~~~~~~~~~~~~~~~~~ # 249| for (l = mounts; l != NULL; l = l->next) { # 250| GUnixMountEntry *e =(GUnixMountEntry *) l->data; # 251|-> if (!g_unix_mount_is_readonly(e)) # 252| continue; # 253| if (g_strcmp0(g_unix_mount_get_fs_type(e), "iso9660") != 0) Error: COMPILER_WARNING (CWE-477): [#def13] libdnf-0.73.3-build/libdnf-0.73.3/libdnf/dnf-repo-loader.cpp:253:47: warning[-Wdeprecated-declarations]: ‘const char* g_unix_mount_get_fs_type(GUnixMountEntry*)’ is deprecated: Use 'g_unix_mount_entry_get_fs_type' instead # 253 | if (g_strcmp0(g_unix_mount_get_fs_type(e), "iso9660") != 0) # | ~~~~~~~~~~~~~~~~~~~~~~~~^~~ /usr/include/gio-unix-2.0/gio/gunixmounts.h:108:16: note: declared here # 108 | const char * g_unix_mount_get_fs_type (GUnixMountEntry *mount_entry); # | ^~~~~~~~~~~~~~~~~~~~~~~~ # 251| if (!g_unix_mount_is_readonly(e)) # 252| continue; # 253|-> if (g_strcmp0(g_unix_mount_get_fs_type(e), "iso9660") != 0) # 254| continue; # 255| ret = dnf_repo_loader_add_sack_from_mount_point(self, Error: COMPILER_WARNING (CWE-477): [#def14] libdnf-0.73.3-build/libdnf-0.73.3/libdnf/dnf-repo-loader.cpp:256:78: warning[-Wdeprecated-declarations]: ‘const char* g_unix_mount_get_mount_path(GUnixMountEntry*)’ is deprecated: Use 'g_unix_mount_entry_get_mount_path' instead # 256 | g_unix_mount_get_mount_path(e), # | ~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~ /usr/include/gio-unix-2.0/gio/gunixmounts.h:93:16: note: declared here # 93 | const char * g_unix_mount_get_mount_path (GUnixMountEntry *mount_entry); # | ^~~~~~~~~~~~~~~~~~~~~~~~~~~ # 254| continue; # 255| ret = dnf_repo_loader_add_sack_from_mount_point(self, # 256|-> g_unix_mount_get_mount_path(e), # 257| &idx, # 258| error); Error: COMPILER_WARNING (CWE-477): [#def15] libdnf-0.73.3-build/libdnf-0.73.3/libdnf/dnf-repo-loader.cpp:263:35: warning[-Wdeprecated-declarations]: ‘void g_unix_mount_free(GUnixMountEntry*)’ is deprecated: Use 'g_unix_mount_entry_free' instead # 263 | g_list_foreach(mounts,(GFunc) g_unix_mount_free, NULL); # | ^~~~~~~~~~~~~~~~~ /usr/include/gio-unix-2.0/gio/gunixmounts.h:71:16: note: declared here # 71 | void g_unix_mount_free (GUnixMountEntry *mount_entry); # | ^~~~~~~~~~~~~~~~~ # 261| } # 262| out: # 263|-> g_list_foreach(mounts,(GFunc) g_unix_mount_free, NULL); # 264| g_list_free(mounts); # 265| return ret; Error: CPPCHECK_WARNING (CWE-562): [#def16] libdnf-0.73.3-build/libdnf-0.73.3/libdnf/hy-iutil.cpp:548: error[returnDanglingLifetime]: Returning pointer to local variable 'dup' that will be invalid when returning. # 546| { # 547| char *dup = pool_alloctmpspace(pool, strlen(s) + 1); # 548|-> return strcpy(dup, s); # 549| } # 550| Error: COMPILER_WARNING: [#def17] libdnf-0.73.3-build/libdnf-0.73.3/libdnf/hy-package.cpp:58:3: warning[-Wodr]: type ‘struct DnfPackagePrivate’ violates the C++ One Definition Rule # 58 | } DnfPackagePrivate; # | ^ libdnf-0.73.3-build/libdnf-0.73.3/libdnf/dnf-package.cpp:62:3: note: a different type is defined in another translation unit # 62 | } DnfPackagePrivate; # | ^ libdnf-0.73.3-build/libdnf-0.73.3/libdnf/hy-package.cpp:55:22: note: the first difference of corresponding definitions is field ‘loaded’ # 55 | gboolean loaded; # | ^ libdnf-0.73.3-build/libdnf-0.73.3/libdnf/dnf-package.cpp:54:22: note: a field with different name is defined in another translation unit # 54 | char *checksum_str; # | ^ # 56| Id id; # 57| DnfSack *sack; # 58|-> } DnfPackagePrivate; # 59| # 60| G_DEFINE_TYPE_WITH_PRIVATE(DnfPackage, dnf_package, G_TYPE_OBJECT) Error: CPPCHECK_WARNING (CWE-398): [#def18] libdnf-0.73.3-build/libdnf-0.73.3/libdnf/utils/sqlite3/Sqlite3.hpp:337: error[throwInNoexceptFunction]: Exception thrown in function declared not to throw exceptions. # 335| } # 336| # 337|-> ~SQLite3() { close(); } # 338| # 339| const std::string &getPath() const { return path; } Error: COMPILER_WARNING (CWE-685): [#def19] libdnf-0.73.3-build/libdnf-0.73.3/tests/hawkey/test_suites.h:24: included_from: Included from here. libdnf-0.73.3-build/libdnf-0.73.3/tests/hawkey/test_goal.cpp:38: included_from: Included from here. libdnf-0.73.3-build/libdnf-0.73.3/tests/hawkey/test_goal.cpp: scope_hint: In function ‘DnfPackage* get_latest_pkg(DnfSack*, const char*)’ libdnf-0.73.3-build/libdnf-0.73.3/tests/hawkey/test_goal.cpp:54:17: warning[-Wformat-extra-args]: too many arguments for format # 54 | "get_latest_pkg() failed finding '%s'.", name); # | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ libdnf-0.73.3-build/libdnf-0.73.3/tests/hawkey/test_goal.cpp: scope_hint: In instantiation of ‘void assert_list_names(bool, GPtrArray*, ...) [with const char* (* getCharFromPackage)(DnfPackage*) = dnf_package_get_name; GPtrArray = _GPtrArray]’ #/builddir/build/BUILD/libdnf-0.73.3-build/libdnf-0.73.3/tests/hawkey/test_goal.cpp:474:45: required from here # 474 | assert_list_names<&dnf_package_get_name>(true, plist, "penny", NULL); # | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~ # 52| GPtrArray *plist = hy_query_run(q); # 53| fail_unless(plist->len == 1, # 54|-> "get_latest_pkg() failed finding '%s'.", name); # 55| auto pkg = static_cast<DnfPackage *>(g_object_ref(g_ptr_array_index(plist, 0))); # 56| hy_query_free(q); Error: COMPILER_WARNING (CWE-685): [#def20] libdnf-0.73.3-build/libdnf-0.73.3/tests/hawkey/test_goal.cpp:439:18: warning[-Wformat-extra-args]: too many arguments for format # 439 | fail("assert_list_names(): list too short"); # | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ # 437| while ((name = va_arg(names, char *)) != NULL) { # 438| if (i++ >= count) { # 439|-> fail("assert_list_names(): list too short"); # 440| } # 441| bool found = false; Error: COMPILER_WARNING (CWE-685): [#def21] libdnf-0.73.3-build/libdnf-0.73.3/tests/hawkey/test_goal.cpp:449:32: warning[-Wformat-extra-args]: too many arguments for format # 449 | fail_unless(false, "assert_list_names(): element '%s' %sfound '%zu'", # | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ # 447| } # 448| if ((wanted && !found) || (!wanted && found)) { # 449|-> fail_unless(false, "assert_list_names(): element '%s' %sfound '%zu'", # 450| name, wanted ? "not ": "", stringVector.size()); # 451| } Error: COMPILER_WARNING (CWE-685): [#def22] libdnf-0.73.3-build/libdnf-0.73.3/tests/hawkey/test_goal.cpp:458:33: warning[-Wformat-extra-args]: too many arguments for format # 458 | fail_unless(i == count, "assert_list_names(): too many items in the list (%d vs %d)", i, count); # | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ libdnf-0.73.3-build/libdnf-0.73.3/tests/hawkey/test_goal.cpp: scope_hint: In instantiation of ‘void assert_list_names(bool, GPtrArray*, ...) [with const char* (* getCharFromPackage)(DnfPackage*) = dnf_package_get_nevra; GPtrArray = _GPtrArray]’ #/builddir/build/BUILD/libdnf-0.73.3-build/libdnf-0.73.3/tests/hawkey/test_goal.cpp:1064:50: required from here # 1064 | assert_list_names<&dnf_package_get_nevra>(true, plist, "bloop-2.0-1.noarch", "dog-1-2.x86_64", "fool-1-5.noarch", # | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ # 1065 | "flying-3.1-0.x86_64", "pilchard-1.2.4-1.x86_64", "pilchard-1.2.4-1.i686", NULL); # | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ # 456| // already checked above. # 457| if (wanted) { # 458|-> fail_unless(i == count, "assert_list_names(): too many items in the list (%d vs %d)", i, count); # 459| } # 460| va_end(names);
analyzer-version-clippy | 1.82.0 |
analyzer-version-cppcheck | 2.16.0 |
analyzer-version-gcc | 14.2.1 |
analyzer-version-gcc-analyzer | 15.0.0 |
analyzer-version-shellcheck | 0.10.0 |
analyzer-version-unicontrol | 0.0.2 |
enabled-plugins | clippy, cppcheck, gcc, shellcheck, unicontrol |
exit-code | 0 |
host | ip-172-16-1-66.us-west-2.compute.internal |
mock-config | fedora-rawhide-gcc-latest-x86_64 |
project-name | libdnf-0.73.3-1.fc42 |
store-results-to | /tmp/tmppykxq2y0/libdnf-0.73.3-1.fc42.tar.xz |
time-created | 2024-11-13 01:19:20 |
time-finished | 2024-11-13 01:22:36 |
tool | csmock |
tool-args | '/usr/bin/csmock' '-r' 'fedora-rawhide-gcc-latest-x86_64' '-t' 'clippy,cppcheck,gcc,unicontrol,shellcheck' '-o' '/tmp/tmppykxq2y0/libdnf-0.73.3-1.fc42.tar.xz' '--gcc-analyze' '--unicontrol-notests' '--unicontrol-bidi-only' '--install=gcc-latest' '--gcc-analyzer-bin=/opt/gcc-latest/bin/gcc' '/tmp/tmppykxq2y0/libdnf-0.73.3-1.fc42.src.rpm' |
tool-version | csmock-3.7.1.20241107.094801.gb3f0f26.pr_192-1.el9 |