Error: GCC_ANALYZER_WARNING (CWE-476): [#def1] gnome-settings-daemon-47.1-build/gnome-settings-daemon-47.1/plugins/datetime/tz.c: scope_hint: In function ‘tz_location_get_utc_offset’ gnome-settings-daemon-47.1-build/gnome-settings-daemon-47.1/plugins/datetime/tz.c:195:16: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’ /usr/lib64/glib-2.0/include/glibconfig.h:9: included_from: Included from here. /usr/include/glib-2.0/glib/gtypes.h:34: included_from: Included from here. /usr/include/glib-2.0/glib/galloca.h:34: included_from: Included from here. /usr/include/glib-2.0/glib.h:32: included_from: Included from here. gnome-settings-daemon-47.1-build/gnome-settings-daemon-47.1/plugins/datetime/tz.c:25: included_from: Included from here. /usr/include/glib-2.0/glib/gmacros.h:1249:31: note: in expansion of macro ‘_G_BOOLEAN_EXPR_IMPL’ /usr/include/glib-2.0/glib/gmacros.h:1250:43: note: in expansion of macro ‘_G_BOOLEAN_EXPR’ /usr/include/glib-2.0/glib/gmessages.h:664:9: note: in expansion of macro ‘G_LIKELY’ gnome-settings-daemon-47.1-build/gnome-settings-daemon-47.1/plugins/datetime/tz.c:208:9: note: in expansion of macro ‘g_return_val_if_fail’ /usr/include/glib-2.0/glib.h:64: included_from: Included from here. gnome-settings-daemon-47.1-build/gnome-settings-daemon-47.1/plugins/datetime/tz.c:208:9: note: in expansion of macro ‘g_return_val_if_fail’ # 193| # 194| tz_info = tz_info_from_location (loc); # 195|-> offset = tz_info->utc_offset; # 196| tz_info_free (tz_info); # 197| return offset; Error: COMPILER_WARNING (CWE-477): [#def2] gnome-settings-daemon-47.1-build/gnome-settings-daemon-47.1/plugins/housekeeping/gsd-disk-space-helper.c: scope_hint: In function ‘gsd_should_ignore_unix_mount’ gnome-settings-daemon-47.1-build/gnome-settings-daemon-47.1/plugins/housekeeping/gsd-disk-space-helper.c:115:9: warning[-Wdeprecated-declarations]: ‘g_unix_mount_get_fs_type’ is deprecated: Use 'g_unix_mount_entry_get_fs_type' instead # 115 | fs = g_unix_mount_get_fs_type (mount); # | ^~ gnome-settings-daemon-47.1-build/gnome-settings-daemon-47.1/plugins/housekeeping/gsd-disk-space-helper.h:29: included_from: Included from here. gnome-settings-daemon-47.1-build/gnome-settings-daemon-47.1/plugins/housekeeping/gsd-disk-space-helper.c:30: included_from: Included from here. /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); # | ^~~~~~~~~~~~~~~~~~~~~~~~ # 113| }; # 114| # 115|-> fs = g_unix_mount_get_fs_type (mount); # 116| #if GLIB_CHECK_VERSION(2, 56, 0) # 117| if (g_unix_is_system_fs_type (fs)) Error: COMPILER_WARNING (CWE-477): [#def3] gnome-settings-daemon-47.1-build/gnome-settings-daemon-47.1/plugins/housekeeping/gsd-disk-space-helper.c:128:9: warning[-Wdeprecated-declarations]: ‘g_unix_mount_get_device_path’ is deprecated: Use 'g_unix_mount_entry_get_device_path' instead # 128 | device = g_unix_mount_get_device_path (mount); # | ^~~~~~ /usr/include/gio-unix-2.0/gio/gunixmounts.h:98:16: note: declared here # 98 | const char * g_unix_mount_get_device_path (GUnixMountEntry *mount_entry); # | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ # 126| return TRUE; # 127| # 128|-> device = g_unix_mount_get_device_path (mount); # 129| for (i = 0; ignore_devices[i] != NULL; i++) # 130| if (g_str_equal (ignore_devices[i], device)) Error: COMPILER_WARNING (CWE-477): [#def4] gnome-settings-daemon-47.1-build/gnome-settings-daemon-47.1/plugins/housekeeping/gsd-disk-space-helper.c:133:9: warning[-Wdeprecated-declarations]: ‘g_unix_mount_guess_name’ is deprecated: Use 'g_unix_mount_entry_guess_name' instead # 133 | label = g_unix_mount_guess_name (mount); # | ^~~~~ /usr/include/gio-unix-2.0/gio/gunixmounts.h:138:16: note: declared here # 138 | char * g_unix_mount_guess_name (GUnixMountEntry *mount_entry); # | ^~~~~~~~~~~~~~~~~~~~~~~ # 131| return TRUE; # 132| # 133|-> label = g_unix_mount_guess_name (mount); # 134| for (i = 0; ignore_labels[i] != NULL; i++) # 135| if (g_str_equal (ignore_labels[i], label)) Error: COMPILER_WARNING (CWE-477): [#def5] gnome-settings-daemon-47.1-build/gnome-settings-daemon-47.1/plugins/housekeeping/gsd-disk-space-helper.c: scope_hint: In function ‘gsd_is_removable_mount’ gnome-settings-daemon-47.1-build/gnome-settings-daemon-47.1/plugins/housekeeping/gsd-disk-space-helper.c:148:9: warning[-Wdeprecated-declarations]: ‘g_unix_mount_get_mount_path’ is deprecated: Use 'g_unix_mount_entry_get_mount_path' instead # 148 | mount_path = g_unix_mount_get_mount_path (mount); # | ^~~~~~~~~~ /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); # | ^~~~~~~~~~~~~~~~~~~~~~~~~~~ # 146| char *path; # 147| # 148|-> mount_path = g_unix_mount_get_mount_path (mount); # 149| if (mount_path == NULL) # 150| return FALSE; Error: COMPILER_WARNING (CWE-477): [#def6] gnome-settings-daemon-47.1-build/gnome-settings-daemon-47.1/plugins/housekeeping/gsd-disk-space.c: scope_hint: In function ‘ldsm_notify_for_mount’ gnome-settings-daemon-47.1-build/gnome-settings-daemon-47.1/plugins/housekeeping/gsd-disk-space.c:683:9: warning[-Wdeprecated-declarations]: ‘g_unix_mount_guess_name’ is deprecated: Use 'g_unix_mount_entry_guess_name' instead # 683 | name = g_unix_mount_guess_name (mount->mount); # | ^~~~ gnome-settings-daemon-47.1-build/gnome-settings-daemon-47.1/plugins/housekeeping/gsd-disk-space.c:32: included_from: Included from here. /usr/include/gio-unix-2.0/gio/gunixmounts.h:138:16: note: declared here # 138 | char * g_unix_mount_guess_name (GUnixMountEntry *mount_entry); # | ^~~~~~~~~~~~~~~~~~~~~~~ # 681| char *body; # 682| # 683|-> name = g_unix_mount_guess_name (mount->mount); # 684| path = g_unix_mount_get_mount_path (mount->mount); # 685| has_trash = ldsm_mount_has_trash (path); Error: COMPILER_WARNING (CWE-477): [#def7] gnome-settings-daemon-47.1-build/gnome-settings-daemon-47.1/plugins/housekeeping/gsd-disk-space.c:684:9: warning[-Wdeprecated-declarations]: ‘g_unix_mount_get_mount_path’ is deprecated: Use 'g_unix_mount_entry_get_mount_path' instead # 684 | path = g_unix_mount_get_mount_path (mount->mount); # | ^~~~ /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); # | ^~~~~~~~~~~~~~~~~~~~~~~~~~~ # 682| # 683| name = g_unix_mount_guess_name (mount->mount); # 684|-> path = g_unix_mount_get_mount_path (mount->mount); # 685| has_trash = ldsm_mount_has_trash (path); # 686| Error: COMPILER_WARNING (CWE-477): [#def8] gnome-settings-daemon-47.1-build/gnome-settings-daemon-47.1/plugins/housekeeping/gsd-disk-space.c: scope_hint: In function ‘ldsm_free_mount_info’ gnome-settings-daemon-47.1-build/gnome-settings-daemon-47.1/plugins/housekeeping/gsd-disk-space.c:772:9: warning[-Wdeprecated-declarations]: ‘g_unix_mount_free’ is deprecated: Use 'g_unix_mount_entry_free' instead # 772 | g_unix_mount_free (mount->mount); # | ^~~~~~~~~~~~~~~~~ /usr/include/gio-unix-2.0/gio/gunixmounts.h:71:16: note: declared here # 71 | void g_unix_mount_free (GUnixMountEntry *mount_entry); # | ^~~~~~~~~~~~~~~~~ # 770| g_return_if_fail (mount != NULL); # 771| # 772|-> g_unix_mount_free (mount->mount); # 773| g_free (mount); # 774| } Error: COMPILER_WARNING (CWE-477): [#def9] gnome-settings-daemon-47.1-build/gnome-settings-daemon-47.1/plugins/housekeeping/gsd-disk-space.c: scope_hint: In function ‘ldsm_maybe_warn_mounts’ gnome-settings-daemon-47.1-build/gnome-settings-daemon-47.1/plugins/housekeeping/gsd-disk-space.c:800:17: warning[-Wdeprecated-declarations]: ‘g_unix_mount_get_mount_path’ is deprecated: Use 'g_unix_mount_entry_get_mount_path' instead # 800 | path = g_unix_mount_get_mount_path (mount_info->mount); # | ^~~~ /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); # | ^~~~~~~~~~~~~~~~~~~~~~~~~~~ # 798| } # 799| # 800|-> path = g_unix_mount_get_mount_path (mount_info->mount); # 801| # 802| previous_mount_info = g_hash_table_lookup (ldsm_notified_hash, path); Error: COMPILER_WARNING (CWE-477): [#def10] gnome-settings-daemon-47.1-build/gnome-settings-daemon-47.1/plugins/housekeeping/gsd-disk-space.c: scope_hint: In function ‘ldsm_check_all_mounts’ gnome-settings-daemon-47.1-build/gnome-settings-daemon-47.1/plugins/housekeeping/gsd-disk-space.c:864:17: warning[-Wdeprecated-declarations]: ‘g_unix_mount_at’ is deprecated: Use 'g_unix_mount_entry_at' instead # 864 | mount = g_unix_mount_at (path, time_read); # | ^~~~~ /usr/include/gio-unix-2.0/gio/gunixmounts.h:206:18: note: declared here # 206 | GUnixMountEntry *g_unix_mount_at (const char *mount_path, # | ^~~~~~~~~~~~~~~ # 862| # 863| path = g_unix_mount_point_get_mount_path (mount_point); # 864|-> mount = g_unix_mount_at (path, time_read); # 865| g_unix_mount_point_free (mount_point); # 866| if (mount == NULL) { Error: COMPILER_WARNING (CWE-477): [#def11] gnome-settings-daemon-47.1-build/gnome-settings-daemon-47.1/plugins/housekeeping/gsd-disk-space.c:874:17: warning[-Wdeprecated-declarations]: ‘g_unix_mount_get_mount_path’ is deprecated: Use 'g_unix_mount_entry_get_mount_path' instead # 874 | path = g_unix_mount_get_mount_path (mount); # | ^~~~ /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); # | ^~~~~~~~~~~~~~~~~~~~~~~~~~~ # 872| mount_info->mount = mount; # 873| # 874|-> path = g_unix_mount_get_mount_path (mount); # 875| # 876| if (g_unix_mount_is_readonly (mount)) { Error: COMPILER_WARNING (CWE-477): [#def12] gnome-settings-daemon-47.1-build/gnome-settings-daemon-47.1/plugins/housekeeping/gsd-disk-space.c:876:17: warning[-Wdeprecated-declarations]: ‘g_unix_mount_is_readonly’ is deprecated: Use 'g_unix_mount_entry_is_readonly' instead # 876 | if (g_unix_mount_is_readonly (mount)) { # | ^~ /usr/include/gio-unix-2.0/gio/gunixmounts.h:118:16: note: declared here # 118 | gboolean g_unix_mount_is_readonly (GUnixMountEntry *mount_entry); # | ^~~~~~~~~~~~~~~~~~~~~~~~ # 874| path = g_unix_mount_get_mount_path (mount); # 875| # 876|-> if (g_unix_mount_is_readonly (mount)) { # 877| ldsm_free_mount_info (mount_info); # 878| continue; Error: COMPILER_WARNING (CWE-477): [#def13] gnome-settings-daemon-47.1-build/gnome-settings-daemon-47.1/plugins/housekeeping/gsd-disk-space.c:916:25: warning[-Wdeprecated-declarations]: ‘g_unix_mount_get_mount_path’ is deprecated: Use 'g_unix_mount_entry_get_mount_path' instead # 916 | g_hash_table_remove (ldsm_notified_hash, g_unix_mount_get_mount_path (mount_info->mount)); # | ^~~~~~~~~~~~~~~~~~~ /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); # | ^~~~~~~~~~~~~~~~~~~~~~~~~~~ # 914| full_mounts = g_list_prepend (full_mounts, mount_info); # 915| } else { # 916|-> g_hash_table_remove (ldsm_notified_hash, g_unix_mount_get_mount_path (mount_info->mount)); # 917| ldsm_free_mount_info (mount_info); # 918| } Error: COMPILER_WARNING (CWE-477): [#def14] gnome-settings-daemon-47.1-build/gnome-settings-daemon-47.1/plugins/housekeeping/gsd-disk-space.c: scope_hint: In function ‘ldsm_is_hash_item_not_in_mounts’ gnome-settings-daemon-47.1-build/gnome-settings-daemon-47.1/plugins/housekeeping/gsd-disk-space.c:940:17: warning[-Wdeprecated-declarations]: ‘g_unix_mount_get_mount_path’ is deprecated: Use 'g_unix_mount_entry_get_mount_path' instead # 940 | path = g_unix_mount_get_mount_path (mount); # | ^~~~ /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); # | ^~~~~~~~~~~~~~~~~~~~~~~~~~~ # 938| const char *path; # 939| # 940|-> path = g_unix_mount_get_mount_path (mount); # 941| # 942| if (strcmp (path, key) == 0) Error: COMPILER_WARNING (CWE-477): [#def15] gnome-settings-daemon-47.1-build/gnome-settings-daemon-47.1/plugins/housekeeping/gsd-disk-space.c: scope_hint: In function ‘ldsm_mounts_changed’ gnome-settings-daemon-47.1-build/gnome-settings-daemon-47.1/plugins/housekeeping/gsd-disk-space.c:956:9: warning[-Wdeprecated-declarations]: ‘g_unix_mounts_get’ is deprecated: Use 'g_unix_mount_entries_get' instead # 956 | mounts = g_unix_mounts_get (time_read); # | ^~~~~~ /usr/include/gio-unix-2.0/gio/gunixmounts.h:192:16: note: declared here # 192 | GList * g_unix_mounts_get (guint64 *time_read); # | ^~~~~~~~~~~~~~~~~ # 954| # 955| /* remove the saved data for mounts that got removed */ # 956|-> mounts = g_unix_mounts_get (time_read); # 957| g_hash_table_foreach_remove (ldsm_notified_hash, # 958| ldsm_is_hash_item_not_in_mounts, mounts); Error: COMPILER_WARNING (CWE-477): [#def16] gnome-settings-daemon-47.1-build/gnome-settings-daemon-47.1/plugins/housekeeping/gsd-disk-space.c:959:9: warning[-Wdeprecated-declarations]: ‘g_unix_mount_free’ is deprecated: Use 'g_unix_mount_entry_free' instead # 959 | g_list_free_full (mounts, (GDestroyNotify) g_unix_mount_free); # | ^~~~~~~~~~~~~~~~ /usr/include/gio-unix-2.0/gio/gunixmounts.h:71:16: note: declared here # 71 | void g_unix_mount_free (GUnixMountEntry *mount_entry); # | ^~~~~~~~~~~~~~~~~ # 957| g_hash_table_foreach_remove (ldsm_notified_hash, # 958| ldsm_is_hash_item_not_in_mounts, mounts); # 959|-> g_list_free_full (mounts, (GDestroyNotify) g_unix_mount_free); # 960| # 961| /* check the status now, for the new mounts */ Error: GCC_ANALYZER_WARNING (CWE-688): [#def17] gnome-settings-daemon-47.1-build/gnome-settings-daemon-47.1/plugins/housekeeping/gsd-systemd-notify.c: scope_hint: In function ‘notify_oom_kill’ gnome-settings-daemon-47.1-build/gnome-settings-daemon-47.1/plugins/housekeeping/gsd-systemd-notify.c:53:23: warning[-Wanalyzer-null-argument]: use of NULL where non-null expected <built-in>: note: argument 1 of ‘__builtin_strchr’ must be non-null # 51| if (g_str_has_suffix (unit_copy, ".service")) { # 52| /* Find (first) @ character */ # 53|-> pos = strchr (unit_copy, '@'); # 54| if (pos) # 55| *pos = '\0'; Error: GCC_ANALYZER_WARNING (CWE-688): [#def18] gnome-settings-daemon-47.1-build/gnome-settings-daemon-47.1/plugins/housekeeping/gsd-systemd-notify.c:58:23: warning[-Wanalyzer-null-argument]: use of NULL where non-null expected /usr/lib64/glib-2.0/include/glibconfig.h:9: included_from: Included from here. /usr/include/glib-2.0/glib/gtypes.h:34: included_from: Included from here. /usr/include/glib-2.0/glib/galloca.h:34: included_from: Included from here. /usr/include/glib-2.0/glib.h:32: included_from: Included from here. /usr/include/glib-2.0/gobject/gbinding.h:30: included_from: Included from here. /usr/include/glib-2.0/glib-object.h:24: included_from: Included from here. gnome-settings-daemon-47.1-build/gnome-settings-daemon-47.1/plugins/housekeeping/gsd-systemd-notify.h:22: included_from: Included from here. gnome-settings-daemon-47.1-build/gnome-settings-daemon-47.1/plugins/housekeeping/gsd-systemd-notify.c:21: included_from: Included from here. /usr/include/glib-2.0/glib/gmacros.h:1249:31: note: in expansion of macro ‘_G_BOOLEAN_EXPR_IMPL’ /usr/include/glib-2.0/glib/gmacros.h:1251:45: note: in expansion of macro ‘_G_BOOLEAN_EXPR’ /usr/include/glib-2.0/glib/gstrfuncs.h:190:11: note: in expansion of macro ‘G_UNLIKELY’ gnome-settings-daemon-47.1-build/gnome-settings-daemon-47.1/plugins/housekeeping/gsd-systemd-notify.c:56:20: note: in expansion of macro ‘g_str_has_suffix’ /usr/include/glib-2.0/glib/gmacros.h:1249:31: note: in expansion of macro ‘_G_BOOLEAN_EXPR_IMPL’ /usr/include/glib-2.0/glib/gmacros.h:1251:45: note: in expansion of macro ‘_G_BOOLEAN_EXPR’ /usr/include/glib-2.0/glib/gstrfuncs.h:190:11: note: in expansion of macro ‘G_UNLIKELY’ gnome-settings-daemon-47.1-build/gnome-settings-daemon-47.1/plugins/housekeeping/gsd-systemd-notify.c:56:20: note: in expansion of macro ‘g_str_has_suffix’ gnome-settings-daemon-47.1-build/gnome-settings-daemon-47.1/plugins/housekeeping/gsd-systemd-notify.c:19: included_from: Included from here. /usr/include/string.h:273:14: note: argument 1 of ‘strrchr’ must be non-null # 56| } else if (g_str_has_suffix (unit_copy, ".scope")) { # 57| /* Find last - character */ # 58|-> pos = strrchr (unit_copy, '-'); # 59| if (pos) # 60| *pos = '\0'; Error: CPPCHECK_WARNING (CWE-457): [#def19] gnome-settings-daemon-47.1-build/gnome-settings-daemon-47.1/plugins/media-keys/gsd-media-keys-manager.c:398: error[legacyUninitvar]: Uninitialized variable: binding # 396| # 397| array = g_ptr_array_new (); # 398|-> g_ptr_array_add (array, binding); # 399| g_ptr_array_add (array, NULL); # 400| Error: COMPILER_WARNING (CWE-477): [#def20] gnome-settings-daemon-47.1-build/gnome-settings-daemon-47.1/plugins/power/gsd-power-manager.c: scope_hint: In function ‘lid_state_changed_cb’ gnome-settings-daemon-47.1-build/gnome-settings-daemon-47.1/plugins/power/gsd-power-manager.c:1555:9: warning[-Wdeprecated-declarations]: ‘up_client_get_lid_is_closed’ is deprecated # 1555 | tmp = up_client_get_lid_is_closed (manager->up_client); # | ^~~ /usr/include/libupower-glib/upower.h:38: included_from: Included from here. gnome-settings-daemon-47.1-build/gnome-settings-daemon-47.1/plugins/power/gsd-power-manager.c:29: included_from: Included from here. /usr/include/libupower-glib/up-client.h:98:18: note: declared here # 98 | gboolean up_client_get_lid_is_closed (UpClient *client); # | ^~~~~~~~~~~~~~~~~~~~~~~~~~~ # 1553| # 1554| /* same lid state */ # 1555|-> tmp = up_client_get_lid_is_closed (manager->up_client); # 1556| if (manager->lid_is_closed == tmp) # 1557| return; Error: COMPILER_WARNING (CWE-477): [#def21] gnome-settings-daemon-47.1-build/gnome-settings-daemon-47.1/plugins/power/gsd-power-manager.c: scope_hint: In function ‘gsd_power_manager_start’ gnome-settings-daemon-47.1-build/gnome-settings-daemon-47.1/plugins/power/gsd-power-manager.c:2936:9: warning[-Wdeprecated-declarations]: ‘up_client_get_lid_is_present’ is deprecated # 2936 | manager->lid_is_present = up_client_get_lid_is_present (manager->up_client); # | ^~~~~~~ /usr/include/libupower-glib/up-client.h:100:18: note: declared here # 100 | gboolean up_client_get_lid_is_present (UpClient *client); # | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ # 2934| /* Check whether we have a lid first */ # 2935| manager->up_client = up_client_new (); # 2936|-> manager->lid_is_present = up_client_get_lid_is_present (manager->up_client); # 2937| if (manager->lid_is_present) # 2938| manager->lid_is_closed = up_client_get_lid_is_closed (manager->up_client); Error: COMPILER_WARNING (CWE-477): [#def22] gnome-settings-daemon-47.1-build/gnome-settings-daemon-47.1/plugins/power/gsd-power-manager.c:2938:17: warning[-Wdeprecated-declarations]: ‘up_client_get_lid_is_closed’ is deprecated # 2938 | manager->lid_is_closed = up_client_get_lid_is_closed (manager->up_client); # | ^~~~~~~ /usr/include/libupower-glib/up-client.h:98:18: note: declared here # 98 | gboolean up_client_get_lid_is_closed (UpClient *client); # | ^~~~~~~~~~~~~~~~~~~~~~~~~~~ # 2936| manager->lid_is_present = up_client_get_lid_is_present (manager->up_client); # 2937| if (manager->lid_is_present) # 2938|-> manager->lid_is_closed = up_client_get_lid_is_closed (manager->up_client); # 2939| # 2940| /* Set up the logind proxy */ Error: CPPCHECK_WARNING (CWE-457): [#def23] gnome-settings-daemon-47.1-build/gnome-settings-daemon-47.1/plugins/power/gsd-power-manager.c:3201: error[legacyUninitvar]: Uninitialized variable: ret # 3199| # 3200| /* return value */ # 3201|-> if (!ret) { # 3202| g_dbus_method_invocation_take_error (invocation, # 3203| error); Error: COMPILER_WARNING (CWE-477): [#def24] gnome-settings-daemon-47.1-build/gnome-settings-daemon-47.1/plugins/print-notifications/gsd-print-notifications-manager.c: scope_hint: In function ‘process_cups_notification’ gnome-settings-daemon-47.1-build/gnome-settings-daemon-47.1/plugins/print-notifications/gsd-print-notifications-manager.c:661:17: warning[-Wdeprecated-declarations]: ‘httpConnectEncrypt’ is deprecated: Use httpConnect2 instead. # 661 | if ((http = httpConnectEncrypt (cupsServer (), ippPort (), # | ^~ /usr/include/cups/ipp.h:19: included_from: Included from here. /usr/include/cups/cups.h:28: included_from: Included from here. gnome-settings-daemon-47.1-build/gnome-settings-daemon-47.1/plugins/print-notifications/gsd-print-notifications-manager.c:36: included_from: Included from here. /usr/include/cups/http.h:478:26: note: declared here # 478 | extern http_t *httpConnectEncrypt(const char *host, int port, http_encryption_t encryption) _CUPS_DEPRECATED_1_7_MSG("Use httpConnect2 instead."); # | ^~~~~~~~~~~~~~~~~~ # 659| # 660| if (notify_job_id > 0) { # 661|-> if ((http = httpConnectEncrypt (cupsServer (), ippPort (), # 662| cupsEncryption ())) == NULL) { # 663| g_debug ("Connection to CUPS server \'%s\' failed.", cupsServer ()); Error: COMPILER_WARNING (CWE-477): [#def25] gnome-settings-daemon-47.1-build/gnome-settings-daemon-47.1/plugins/print-notifications/gsd-print-notifications-manager.c:989:41: warning[-Wdeprecated-declarations]: ‘cupsGetPPD’ is deprecated: Use cupsCopyDestInfo and friends instead. # 989 | ppd_file_name = g_strdup (cupsGetPPD (printer_name)); # | ^~~~~~~~~~~~~ gnome-settings-daemon-47.1-build/gnome-settings-daemon-47.1/plugins/print-notifications/gsd-print-notifications-manager.c:37: included_from: Included from here. /usr/include/cups/ppd.h:359:26: note: declared here # 359 | extern const char *cupsGetPPD(const char *name) _CUPS_DEPRECATED_1_6_MSG("Use cupsCopyDestInfo and friends instead."); # | ^~~~~~~~~~ # 987| char buffer[8192]; # 988| # 989|-> ppd_file_name = g_strdup (cupsGetPPD (printer_name)); # 990| if (ppd_file_name) { # 991| ppd_file = ppdOpenFile (ppd_file_name); Error: COMPILER_WARNING (CWE-477): [#def26] gnome-settings-daemon-47.1-build/gnome-settings-daemon-47.1/plugins/print-notifications/gsd-print-notifications-manager.c:991:49: warning[-Wdeprecated-declarations]: ‘ppdOpenFile’ is deprecated: Use cupsCopyDestInfo and friends instead. # 991 | ppd_file = ppdOpenFile (ppd_file_name); # | ^~~~~~~~ /usr/include/cups/ppd.h:390:26: note: declared here # 390 | extern ppd_file_t *ppdOpenFile(const char *filename) _CUPS_DEPRECATED_1_6_MSG("Use cupsCopyDestInfo and friends instead."); # | ^~~~~~~~~~~ # 989| ppd_file_name = g_strdup (cupsGetPPD (printer_name)); # 990| if (ppd_file_name) { # 991|-> ppd_file = ppdOpenFile (ppd_file_name); # 992| if (ppd_file) { # 993| gchar **tmpv; Error: COMPILER_WARNING (CWE-477): [#def27] gnome-settings-daemon-47.1-build/gnome-settings-daemon-47.1/plugins/print-notifications/gsd-print-notifications-manager.c:1001:65: warning[-Wdeprecated-declarations]: ‘ppdLocalizeIPPReason’ is deprecated: Use cupsCopyDestInfo and friends instead. # 1001 | if (ppdLocalizeIPPReason (ppd_file, data, schemes[j], buffer, sizeof (buffer))) { # | ^~ /usr/include/cups/ppd.h:439:26: note: declared here # 439 | extern const char *ppdLocalizeIPPReason(ppd_file_t *ppd, # | ^~~~~~~~~~~~~~~~~~~~ # 999| i = 0; # 1000| for (j = 0; j < G_N_ELEMENTS (schemes); j++) { # 1001|-> if (ppdLocalizeIPPReason (ppd_file, data, schemes[j], buffer, sizeof (buffer))) { # 1002| tmpv[i++] = g_strdup (buffer); # 1003| } Error: COMPILER_WARNING (CWE-477): [#def28] gnome-settings-daemon-47.1-build/gnome-settings-daemon-47.1/plugins/print-notifications/gsd-print-notifications-manager.c:1010:57: warning[-Wdeprecated-declarations]: ‘ppdClose’ is deprecated: Use cupsCopyDestInfo and friends instead. # 1010 | ppdClose (ppd_file); # | ^~~~~~~~ /usr/include/cups/ppd.h:365:25: note: declared here # 365 | extern void ppdClose(ppd_file_t *ppd) _CUPS_DEPRECATED_1_6_MSG("Use cupsCopyDestInfo and friends instead."); # | ^~~~~~~~ # 1008| g_strfreev (tmpv); # 1009| # 1010|-> ppdClose (ppd_file); # 1011| } # 1012| Error: COMPILER_WARNING (CWE-477): [#def29] gnome-settings-daemon-47.1-build/gnome-settings-daemon-47.1/plugins/print-notifications/gsd-print-notifications-manager.c: scope_hint: In function ‘cancel_subscription’ gnome-settings-daemon-47.1-build/gnome-settings-daemon-47.1/plugins/print-notifications/gsd-print-notifications-manager.c:1282:13: warning[-Wdeprecated-declarations]: ‘httpConnectEncrypt’ is deprecated: Use httpConnect2 instead. # 1282 | ((http = httpConnectEncrypt (cupsServer (), ippPort (), # | ^ /usr/include/cups/http.h:478:26: note: declared here # 478 | extern http_t *httpConnectEncrypt(const char *host, int port, http_encryption_t encryption) _CUPS_DEPRECATED_1_7_MSG("Use httpConnect2 instead."); # | ^~~~~~~~~~~~~~~~~~ # 1280| # 1281| if (id >= 0 && # 1282|-> ((http = httpConnectEncrypt (cupsServer (), ippPort (), # 1283| cupsEncryption ())) != NULL)) { # 1284| request = ippNewRequest (IPP_CANCEL_SUBSCRIPTION); Error: COMPILER_WARNING (CWE-477): [#def30] gnome-settings-daemon-47.1-build/gnome-settings-daemon-47.1/plugins/print-notifications/gsd-print-notifications-manager.c: scope_hint: In function ‘renew_subscription’ gnome-settings-daemon-47.1-build/gnome-settings-daemon-47.1/plugins/print-notifications/gsd-print-notifications-manager.c:1314:9: warning[-Wdeprecated-declarations]: ‘httpConnectEncrypt’ is deprecated: Use httpConnect2 instead. # 1314 | if ((http = httpConnectEncrypt (cupsServer (), ippPort (), # | ^~ /usr/include/cups/http.h:478:26: note: declared here # 478 | extern http_t *httpConnectEncrypt(const char *host, int port, http_encryption_t encryption) _CUPS_DEPRECATED_1_7_MSG("Use httpConnect2 instead."); # | ^~~~~~~~~~~~~~~~~~ # 1312| "printer-state-changed"}; # 1313| # 1314|-> if ((http = httpConnectEncrypt (cupsServer (), ippPort (), # 1315| cupsEncryption ())) == NULL) { # 1316| g_debug ("Connection to CUPS server \'%s\' failed.", cupsServer ()); Error: COMPILER_WARNING (CWE-477): [#def31] gnome-settings-daemon-47.1-build/gnome-settings-daemon-47.1/plugins/print-notifications/gsd-printer.c: scope_hint: In function ‘execute_maintenance_command’ gnome-settings-daemon-47.1-build/gnome-settings-daemon-47.1/plugins/print-notifications/gsd-printer.c:628:9: warning[-Wdeprecated-declarations]: ‘httpConnectEncrypt’ is deprecated: Use httpConnect2 instead. /usr/include/cups/ipp.h:19: included_from: Included from here. /usr/include/cups/cups.h:28: included_from: Included from here. gnome-settings-daemon-47.1-build/gnome-settings-daemon-47.1/plugins/print-notifications/gsd-printer.c:27: included_from: Included from here. /usr/include/cups/http.h:478:26: note: declared here # 626| int fd = -1; # 627| # 628|-> http = httpConnectEncrypt (cupsServer (), # 629| ippPort (), # 630| cupsEncryption ()); Error: GCC_ANALYZER_WARNING (CWE-688): [#def32] gnome-settings-daemon-47.1-build/gnome-settings-daemon-47.1/plugins/print-notifications/gsd-printer.c: scope_hint: In function ‘execute_maintenance_command’ gnome-settings-daemon-47.1-build/gnome-settings-daemon-47.1/plugins/print-notifications/gsd-printer.c:661:17: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL ‘file’ where non-null expected <built-in>: note: argument 4 of ‘__builtin_fwrite’ must be non-null # 659| # 660| file = fdopen (fd, "w"); # 661|-> fprintf (file, "#CUPS-COMMAND\n"); # 662| fprintf (file, "%s\n", command); # 663| fclose (file); Error: COMPILER_WARNING (CWE-477): [#def33] gnome-settings-daemon-47.1-build/gnome-settings-daemon-47.1/plugins/print-notifications/gsd-printer.c: scope_hint: In function ‘setup_printer’ gnome-settings-daemon-47.1-build/gnome-settings-daemon-47.1/plugins/print-notifications/gsd-printer.c:840:17: warning[-Wdeprecated-declarations]: ‘cupsGetPPD’ is deprecated: Use cupsCopyDestInfo and friends instead. gnome-settings-daemon-47.1-build/gnome-settings-daemon-47.1/plugins/print-notifications/gsd-printer.c:28: included_from: Included from here. /usr/include/cups/ppd.h:359:26: note: declared here # 838| printer_autoconfigure (printer_name); # 839| # 840|-> ppd_file_name = cupsGetPPD (printer_name); # 841| # 842| if (ppd_file_name) { Error: COMPILER_WARNING (CWE-477): [#def34] gnome-settings-daemon-47.1-build/gnome-settings-daemon-47.1/plugins/print-notifications/gsd-printer.c: scope_hint: In function ‘handle_method_call’ gnome-settings-daemon-47.1-build/gnome-settings-daemon-47.1/plugins/print-notifications/gsd-printer.c:946:25: warning[-Wdeprecated-declarations]: ‘cupsGetPPD’ is deprecated: Use cupsCopyDestInfo and friends instead. /usr/include/cups/ppd.h:359:26: note: declared here # 944| const char *ppd_file_name; # 945| # 946|-> ppd_file_name = cupsGetPPD (name); # 947| if (ppd_file_name) { # 948| GHashTable *executables; Error: GCC_ANALYZER_WARNING (CWE-688): [#def35] gnome-settings-daemon-47.1-build/gnome-settings-daemon-47.1/plugins/smartcard/gsd-smartcard-utils.c: scope_hint: In function ‘dashed_string_to_studly_caps’ gnome-settings-daemon-47.1-build/gnome-settings-daemon-47.1/plugins/smartcard/gsd-smartcard-utils.c:38:32: warning[-Wanalyzer-null-argument]: use of NULL where non-null expected /usr/include/glib-2.0/glib/gstring.h:37: included_from: Included from here. gnome-settings-daemon-47.1-build/gnome-settings-daemon-47.1/plugins/smartcard/gsd-smartcard-utils.c:37:25: note: in expansion of macro ‘g_strdup’ gnome-settings-daemon-47.1-build/gnome-settings-daemon-47.1/plugins/smartcard/gsd-smartcard-utils.c: scope_hint: In function ‘dashed_string_to_studly_caps’ <built-in>: note: argument 1 of ‘__builtin_strlen’ must be non-null # 36| # 37| studly_string = g_strdup (dashed_string); # 38|-> studly_string_length = strlen (studly_string); # 39| # 40| studly_string[i] = g_ascii_toupper (studly_string[i]); Error: COMPILER_WARNING (CWE-477): [#def36] gnome-settings-daemon-47.1-build/gnome-settings-daemon-47.1/plugins/wwan/cc-wwan-device.c:39: included_from: Included from here. gnome-settings-daemon-47.1-build/gnome-settings-daemon-47.1/plugins/wwan/cc-wwan-errors-private.h:73:3: warning[-Wdeprecated-declarations]: ‘MMMobileEquipmentErrorDeprecated’ is deprecated # 73 | { MM_MOBILE_EQUIPMENT_ERROR_GPRS_ILLEGAL_MS, "Illegal MS" }, # | ^ # 71| { MM_MOBILE_EQUIPMENT_ERROR_CORP_PUK, "Corporate personalization PUK required" }, # 72| { MM_MOBILE_EQUIPMENT_ERROR_UNKNOWN, N_("Unknown error") }, # 73|-> { MM_MOBILE_EQUIPMENT_ERROR_GPRS_ILLEGAL_MS, "Illegal MS" }, # 74| { MM_MOBILE_EQUIPMENT_ERROR_GPRS_ILLEGAL_ME, "Illegal ME" }, # 75| { MM_MOBILE_EQUIPMENT_ERROR_GPRS_SERVICE_NOT_ALLOWED, "GPRS services not allowed" }, Error: COMPILER_WARNING (CWE-477): [#def37] gnome-settings-daemon-47.1-build/gnome-settings-daemon-47.1/plugins/wwan/cc-wwan-errors-private.h:74:3: warning[-Wdeprecated-declarations]: ‘MMMobileEquipmentErrorDeprecated’ is deprecated # 74 | { MM_MOBILE_EQUIPMENT_ERROR_GPRS_ILLEGAL_ME, "Illegal ME" }, # | ^ # 72| { MM_MOBILE_EQUIPMENT_ERROR_UNKNOWN, N_("Unknown error") }, # 73| { MM_MOBILE_EQUIPMENT_ERROR_GPRS_ILLEGAL_MS, "Illegal MS" }, # 74|-> { MM_MOBILE_EQUIPMENT_ERROR_GPRS_ILLEGAL_ME, "Illegal ME" }, # 75| { MM_MOBILE_EQUIPMENT_ERROR_GPRS_SERVICE_NOT_ALLOWED, "GPRS services not allowed" }, # 76| { MM_MOBILE_EQUIPMENT_ERROR_GPRS_PLMN_NOT_ALLOWED, "PLMN not allowed" }, Error: COMPILER_WARNING (CWE-477): [#def38] gnome-settings-daemon-47.1-build/gnome-settings-daemon-47.1/plugins/wwan/cc-wwan-errors-private.h:75:3: warning[-Wdeprecated-declarations]: ‘MMMobileEquipmentErrorDeprecated’ is deprecated # 75 | { MM_MOBILE_EQUIPMENT_ERROR_GPRS_SERVICE_NOT_ALLOWED, "GPRS services not allowed" }, # | ^ # 73| { MM_MOBILE_EQUIPMENT_ERROR_GPRS_ILLEGAL_MS, "Illegal MS" }, # 74| { MM_MOBILE_EQUIPMENT_ERROR_GPRS_ILLEGAL_ME, "Illegal ME" }, # 75|-> { MM_MOBILE_EQUIPMENT_ERROR_GPRS_SERVICE_NOT_ALLOWED, "GPRS services not allowed" }, # 76| { MM_MOBILE_EQUIPMENT_ERROR_GPRS_PLMN_NOT_ALLOWED, "PLMN not allowed" }, # 77| { MM_MOBILE_EQUIPMENT_ERROR_GPRS_LOCATION_NOT_ALLOWED, "Location area not allowed" }, Error: COMPILER_WARNING (CWE-477): [#def39] gnome-settings-daemon-47.1-build/gnome-settings-daemon-47.1/plugins/wwan/cc-wwan-errors-private.h:76:3: warning[-Wdeprecated-declarations]: ‘MMMobileEquipmentErrorDeprecated’ is deprecated # 76 | { MM_MOBILE_EQUIPMENT_ERROR_GPRS_PLMN_NOT_ALLOWED, "PLMN not allowed" }, # | ^ # 74| { MM_MOBILE_EQUIPMENT_ERROR_GPRS_ILLEGAL_ME, "Illegal ME" }, # 75| { MM_MOBILE_EQUIPMENT_ERROR_GPRS_SERVICE_NOT_ALLOWED, "GPRS services not allowed" }, # 76|-> { MM_MOBILE_EQUIPMENT_ERROR_GPRS_PLMN_NOT_ALLOWED, "PLMN not allowed" }, # 77| { MM_MOBILE_EQUIPMENT_ERROR_GPRS_LOCATION_NOT_ALLOWED, "Location area not allowed" }, # 78| { MM_MOBILE_EQUIPMENT_ERROR_GPRS_ROAMING_NOT_ALLOWED, "Roaming not allowed in this location area" }, Error: COMPILER_WARNING (CWE-477): [#def40] gnome-settings-daemon-47.1-build/gnome-settings-daemon-47.1/plugins/wwan/cc-wwan-errors-private.h:77:3: warning[-Wdeprecated-declarations]: ‘MMMobileEquipmentErrorDeprecated’ is deprecated # 77 | { MM_MOBILE_EQUIPMENT_ERROR_GPRS_LOCATION_NOT_ALLOWED, "Location area not allowed" }, # | ^ # 75| { MM_MOBILE_EQUIPMENT_ERROR_GPRS_SERVICE_NOT_ALLOWED, "GPRS services not allowed" }, # 76| { MM_MOBILE_EQUIPMENT_ERROR_GPRS_PLMN_NOT_ALLOWED, "PLMN not allowed" }, # 77|-> { MM_MOBILE_EQUIPMENT_ERROR_GPRS_LOCATION_NOT_ALLOWED, "Location area not allowed" }, # 78| { MM_MOBILE_EQUIPMENT_ERROR_GPRS_ROAMING_NOT_ALLOWED, "Roaming not allowed in this location area" }, # 79| { MM_MOBILE_EQUIPMENT_ERROR_GPRS_SERVICE_OPTION_NOT_SUPPORTED, "Service option not supported" }, Error: COMPILER_WARNING (CWE-477): [#def41] gnome-settings-daemon-47.1-build/gnome-settings-daemon-47.1/plugins/wwan/cc-wwan-errors-private.h:78:3: warning[-Wdeprecated-declarations]: ‘MMMobileEquipmentErrorDeprecated’ is deprecated # 78 | { MM_MOBILE_EQUIPMENT_ERROR_GPRS_ROAMING_NOT_ALLOWED, "Roaming not allowed in this location area" }, # | ^ # 76| { MM_MOBILE_EQUIPMENT_ERROR_GPRS_PLMN_NOT_ALLOWED, "PLMN not allowed" }, # 77| { MM_MOBILE_EQUIPMENT_ERROR_GPRS_LOCATION_NOT_ALLOWED, "Location area not allowed" }, # 78|-> { MM_MOBILE_EQUIPMENT_ERROR_GPRS_ROAMING_NOT_ALLOWED, "Roaming not allowed in this location area" }, # 79| { MM_MOBILE_EQUIPMENT_ERROR_GPRS_SERVICE_OPTION_NOT_SUPPORTED, "Service option not supported" }, # 80| { MM_MOBILE_EQUIPMENT_ERROR_GPRS_SERVICE_OPTION_NOT_SUBSCRIBED, "Requested service option not subscribed" }, Error: COMPILER_WARNING (CWE-477): [#def42] gnome-settings-daemon-47.1-build/gnome-settings-daemon-47.1/plugins/wwan/cc-wwan-errors-private.h:79:3: warning[-Wdeprecated-declarations]: ‘MMMobileEquipmentErrorDeprecated’ is deprecated # 79 | { MM_MOBILE_EQUIPMENT_ERROR_GPRS_SERVICE_OPTION_NOT_SUPPORTED, "Service option not supported" }, # | ^ # 77| { MM_MOBILE_EQUIPMENT_ERROR_GPRS_LOCATION_NOT_ALLOWED, "Location area not allowed" }, # 78| { MM_MOBILE_EQUIPMENT_ERROR_GPRS_ROAMING_NOT_ALLOWED, "Roaming not allowed in this location area" }, # 79|-> { MM_MOBILE_EQUIPMENT_ERROR_GPRS_SERVICE_OPTION_NOT_SUPPORTED, "Service option not supported" }, # 80| { MM_MOBILE_EQUIPMENT_ERROR_GPRS_SERVICE_OPTION_NOT_SUBSCRIBED, "Requested service option not subscribed" }, # 81| { MM_MOBILE_EQUIPMENT_ERROR_GPRS_SERVICE_OPTION_OUT_OF_ORDER, "Service option temporarily out of order" }, Error: COMPILER_WARNING (CWE-477): [#def43] gnome-settings-daemon-47.1-build/gnome-settings-daemon-47.1/plugins/wwan/cc-wwan-errors-private.h:80:3: warning[-Wdeprecated-declarations]: ‘MMMobileEquipmentErrorDeprecated’ is deprecated # 80 | { MM_MOBILE_EQUIPMENT_ERROR_GPRS_SERVICE_OPTION_NOT_SUBSCRIBED, "Requested service option not subscribed" }, # | ^ # 78| { MM_MOBILE_EQUIPMENT_ERROR_GPRS_ROAMING_NOT_ALLOWED, "Roaming not allowed in this location area" }, # 79| { MM_MOBILE_EQUIPMENT_ERROR_GPRS_SERVICE_OPTION_NOT_SUPPORTED, "Service option not supported" }, # 80|-> { MM_MOBILE_EQUIPMENT_ERROR_GPRS_SERVICE_OPTION_NOT_SUBSCRIBED, "Requested service option not subscribed" }, # 81| { MM_MOBILE_EQUIPMENT_ERROR_GPRS_SERVICE_OPTION_OUT_OF_ORDER, "Service option temporarily out of order" }, # 82| { MM_MOBILE_EQUIPMENT_ERROR_GPRS_UNKNOWN, "Unspecified GPRS error" }, Error: COMPILER_WARNING (CWE-477): [#def44] gnome-settings-daemon-47.1-build/gnome-settings-daemon-47.1/plugins/wwan/cc-wwan-errors-private.h:81:3: warning[-Wdeprecated-declarations]: ‘MMMobileEquipmentErrorDeprecated’ is deprecated # 81 | { MM_MOBILE_EQUIPMENT_ERROR_GPRS_SERVICE_OPTION_OUT_OF_ORDER, "Service option temporarily out of order" }, # | ^ # 79| { MM_MOBILE_EQUIPMENT_ERROR_GPRS_SERVICE_OPTION_NOT_SUPPORTED, "Service option not supported" }, # 80| { MM_MOBILE_EQUIPMENT_ERROR_GPRS_SERVICE_OPTION_NOT_SUBSCRIBED, "Requested service option not subscribed" }, # 81|-> { MM_MOBILE_EQUIPMENT_ERROR_GPRS_SERVICE_OPTION_OUT_OF_ORDER, "Service option temporarily out of order" }, # 82| { MM_MOBILE_EQUIPMENT_ERROR_GPRS_UNKNOWN, "Unspecified GPRS error" }, # 83| { MM_MOBILE_EQUIPMENT_ERROR_GPRS_PDP_AUTH_FAILURE, "PDP authentication failure" }, Error: COMPILER_WARNING (CWE-477): [#def45] gnome-settings-daemon-47.1-build/gnome-settings-daemon-47.1/plugins/wwan/cc-wwan-errors-private.h:83:3: warning[-Wdeprecated-declarations]: ‘MMMobileEquipmentErrorDeprecated’ is deprecated # 83 | { MM_MOBILE_EQUIPMENT_ERROR_GPRS_PDP_AUTH_FAILURE, "PDP authentication failure" }, # | ^ # 81| { MM_MOBILE_EQUIPMENT_ERROR_GPRS_SERVICE_OPTION_OUT_OF_ORDER, "Service option temporarily out of order" }, # 82| { MM_MOBILE_EQUIPMENT_ERROR_GPRS_UNKNOWN, "Unspecified GPRS error" }, # 83|-> { MM_MOBILE_EQUIPMENT_ERROR_GPRS_PDP_AUTH_FAILURE, "PDP authentication failure" }, # 84| { MM_MOBILE_EQUIPMENT_ERROR_GPRS_INVALID_MOBILE_CLASS, "Invalid mobile class" }, # 85| }; Error: COMPILER_WARNING (CWE-477): [#def46] gnome-settings-daemon-47.1-build/gnome-settings-daemon-47.1/plugins/wwan/cc-wwan-errors-private.h:84:3: warning[-Wdeprecated-declarations]: ‘MMMobileEquipmentErrorDeprecated’ is deprecated # 84 | { MM_MOBILE_EQUIPMENT_ERROR_GPRS_INVALID_MOBILE_CLASS, "Invalid mobile class" }, # | ^ # 82| { MM_MOBILE_EQUIPMENT_ERROR_GPRS_UNKNOWN, "Unspecified GPRS error" }, # 83| { MM_MOBILE_EQUIPMENT_ERROR_GPRS_PDP_AUTH_FAILURE, "PDP authentication failure" }, # 84|-> { MM_MOBILE_EQUIPMENT_ERROR_GPRS_INVALID_MOBILE_CLASS, "Invalid mobile class" }, # 85| }; # 86| Error: GCC_ANALYZER_WARNING (CWE-688): [#def47] gnome-settings-daemon-47.1-build/gnome-settings-daemon-47.1/subprojects/gvc/gvc-mixer-ui-device.c: scope_hint: In function ‘get_profile_canonical_name’ gnome-settings-daemon-47.1-build/gnome-settings-daemon-47.1/subprojects/gvc/gvc-mixer-ui-device.c:310:13: warning[-Wanalyzer-null-argument]: use of NULL ‘profile_name’ where non-null expected /usr/lib64/glib-2.0/include/glibconfig.h:9: included_from: Included from here. /usr/include/glib-2.0/glib/gtypes.h:34: included_from: Included from here. /usr/include/glib-2.0/glib/galloca.h:34: included_from: Included from here. /usr/include/glib-2.0/glib.h:32: included_from: Included from here. /usr/include/glib-2.0/gobject/gbinding.h:30: included_from: Included from here. /usr/include/glib-2.0/glib-object.h:24: included_from: Included from here. gnome-settings-daemon-47.1-build/gnome-settings-daemon-47.1/subprojects/gvc/gvc-mixer-ui-device.h:22: included_from: Included from here. gnome-settings-daemon-47.1-build/gnome-settings-daemon-47.1/subprojects/gvc/gvc-mixer-ui-device.c:23: included_from: Included from here. /usr/include/glib-2.0/glib/gmacros.h:1243:8: note: in definition of macro ‘_G_BOOLEAN_EXPR_IMPL’ /usr/include/glib-2.0/glib/gmacros.h:1250:43: note: in expansion of macro ‘_G_BOOLEAN_EXPR’ /usr/include/glib-2.0/glib/gmessages.h:664:9: note: in expansion of macro ‘G_LIKELY’ gnome-settings-daemon-47.1-build/gnome-settings-daemon-47.1/subprojects/gvc/gvc-mixer-ui-device.c:470:9: note: in expansion of macro ‘g_return_val_if_fail’ /usr/include/glib-2.0/gobject/gtype.h:541:66: note: in expansion of macro ‘_G_TYPE_CIT’ gnome-settings-daemon-47.1-build/gnome-settings-daemon-47.1/subprojects/gvc/gvc-mixer-ui-device.h:30:47: note: in expansion of macro ‘G_TYPE_CHECK_INSTANCE_TYPE’ gnome-settings-daemon-47.1-build/gnome-settings-daemon-47.1/subprojects/gvc/gvc-mixer-ui-device.c:470:31: note: in expansion of macro ‘GVC_IS_MIXER_UI_DEVICE’ /usr/include/glib-2.0/glib/gmacros.h:1243:8: note: in definition of macro ‘_G_BOOLEAN_EXPR_IMPL’ /usr/include/glib-2.0/glib/gmacros.h:1250:43: note: in expansion of macro ‘_G_BOOLEAN_EXPR’ /usr/include/glib-2.0/glib/gmessages.h:664:9: note: in expansion of macro ‘G_LIKELY’ gnome-settings-daemon-47.1-build/gnome-settings-daemon-47.1/subprojects/gvc/gvc-mixer-ui-device.c:470:9: note: in expansion of macro ‘g_return_val_if_fail’ /usr/include/glib-2.0/gobject/gtype.h:541:66: note: in expansion of macro ‘_G_TYPE_CIT’ gnome-settings-daemon-47.1-build/gnome-settings-daemon-47.1/subprojects/gvc/gvc-mixer-ui-device.h:30:47: note: in expansion of macro ‘G_TYPE_CHECK_INSTANCE_TYPE’ gnome-settings-daemon-47.1-build/gnome-settings-daemon-47.1/subprojects/gvc/gvc-mixer-ui-device.c:470:31: note: in expansion of macro ‘GVC_IS_MIXER_UI_DEVICE’ /usr/include/glib-2.0/glib/gmacros.h:1249:31: note: in expansion of macro ‘_G_BOOLEAN_EXPR_IMPL’ /usr/include/glib-2.0/glib/gmacros.h:1250:43: note: in expansion of macro ‘_G_BOOLEAN_EXPR’ /usr/include/glib-2.0/glib/gmessages.h:664:9: note: in expansion of macro ‘G_LIKELY’ gnome-settings-daemon-47.1-build/gnome-settings-daemon-47.1/subprojects/gvc/gvc-mixer-ui-device.c:471:9: note: in expansion of macro ‘g_return_val_if_fail’ /usr/include/glib-2.0/glib/gstring.h:37: included_from: Included from here. /usr/include/glib-2.0/glib/giochannel.h:36: included_from: Included from here. /usr/include/glib-2.0/glib.h:56: included_from: Included from here. gnome-settings-daemon-47.1-build/gnome-settings-daemon-47.1/subprojects/gvc/gvc-mixer-ui-device.c:311:24: note: in expansion of macro ‘g_strdup’ gnome-settings-daemon-47.1-build/gnome-settings-daemon-47.1/subprojects/gvc/gvc-mixer-ui-device.c: scope_hint: In function ‘get_profile_canonical_name’ gnome-settings-daemon-47.1-build/gnome-settings-daemon-47.1/subprojects/gvc/gvc-mixer-ui-device.c:311:24: note: in expansion of macro ‘g_strdup’ gnome-settings-daemon-47.1-build/gnome-settings-daemon-47.1/subprojects/gvc/gvc-mixer-ui-device.c: scope_hint: In function ‘get_profile_canonical_name’ <built-in>: note: argument 1 of ‘__builtin_strstr’ must be non-null # 308| # 309| /* optimisation for the simple case. */ # 310|-> if (strstr (profile_name, skip_prefix) == NULL) # 311| return g_strdup (profile_name); # 312| Error: GCC_ANALYZER_WARNING (CWE-127): [#def48] gnome-settings-daemon-47.1-build/gnome-settings-daemon-47.1/subprojects/gvc/test-audio-device-selection.c: scope_hint: In function ‘audio_selection_needed.part.0’ gnome-settings-daemon-47.1-build/gnome-settings-daemon-47.1/subprojects/gvc/test-audio-device-selection.c:60:9: warning[-Wanalyzer-out-of-bounds]: buffer under-read gnome-settings-daemon-47.1-build/gnome-settings-daemon-47.1/subprojects/gvc/test-audio-device-selection.c:60:9: note: valid subscripts for ‘audio_selection_choices’ are ‘[0]’ to ‘[2]’ # 58| } # 59| # 60|-> gvc_mixer_control_set_headset_port (volume, # 61| id, # 62| audio_selection_choices[response - 1].choice);
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-135.us-west-2.compute.internal |
mock-config | fedora-rawhide-gcc-latest-x86_64 |
project-name | gnome-settings-daemon-47.1-1.fc42 |
store-results-to | /tmp/tmplmjlee8z/gnome-settings-daemon-47.1-1.fc42.tar.xz |
time-created | 2024-11-13 00:00:05 |
time-finished | 2024-11-13 00:02:45 |
tool | csmock |
tool-args | '/usr/bin/csmock' '-r' 'fedora-rawhide-gcc-latest-x86_64' '-t' 'clippy,cppcheck,gcc,unicontrol,shellcheck' '-o' '/tmp/tmplmjlee8z/gnome-settings-daemon-47.1-1.fc42.tar.xz' '--gcc-analyze' '--unicontrol-notests' '--unicontrol-bidi-only' '--install=gcc-latest' '--gcc-analyzer-bin=/opt/gcc-latest/bin/gcc' '/tmp/tmplmjlee8z/gnome-settings-daemon-47.1-1.fc42.src.rpm' |
tool-version | csmock-3.7.1.20241107.094801.gb3f0f26.pr_192-1.el9 |