Task #469 - gnome-session-46.0-1.fc41/scan-results.err
back to task #469download
Error: CPPCHECK_WARNING: gnome-session-46.0-build/gnome-session-46.0/gnome-session/gdm-log.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. Error: COMPILER_WARNING (CWE-477): gnome-session-46.0-build/gnome-session-46.0/gnome-session/gsm-app.c:40:9: warning[-Wdeprecated-declarations]: ‘GTimeVal’ is deprecated: Use 'GDateTime' instead # 40 | GTimeVal last_restart_time; # | ^~~~~~~~ /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-session-46.0-build/gnome-session-46.0/gnome-session/gsm-app.c:24: included_from: Included from here. /usr/include/glib-2.0/glib/gtypes.h:580:8: note: declared here # 580 | struct _GTimeVal # | ^~~~~~~~~ # 38| char *startup_id; # 39| gboolean registered; # 40|-> GTimeVal last_restart_time; # 41| GDBusConnection *connection; # 42| GsmExportedApp *skeleton; Error: COMPILER_WARNING (CWE-477): gnome-session-46.0-build/gnome-session-46.0/gnome-session/gsm-app.c: scope_hint: In function ‘gsm_app_restart’ gnome-session-46.0-build/gnome-session-46.0/gnome-session/gsm-app.c:516:9: warning[-Wdeprecated-declarations]: ‘GTimeVal’ is deprecated: Use 'GDateTime' instead # 516 | GTimeVal current_time; # | ^~~~~~~~ /usr/include/glib-2.0/glib/gtypes.h:580:8: note: declared here # 580 | struct _GTimeVal # | ^~~~~~~~~ # 514| { # 515| GsmAppPrivate *priv = gsm_app_get_instance_private (app); # 516|-> GTimeVal current_time; # 517| g_debug ("Re-starting app: %s", priv->id); # 518| Error: COMPILER_WARNING (CWE-477): gnome-session-46.0-build/gnome-session-46.0/gnome-session/gsm-app.c:519:9: warning[-Wdeprecated-declarations]: ‘g_get_current_time’ is deprecated: Use 'g_get_real_time' instead # 519 | g_get_current_time (¤t_time); # | ^~~~~~~~~~~~~~~~~~ /usr/include/glib-2.0/glib/giochannel.h:35: included_from: Included from here. /usr/include/glib-2.0/glib.h:56: included_from: Included from here. /usr/include/glib-2.0/glib/gmain.h:728:8: note: declared here # 728 | void g_get_current_time (GTimeVal *result); # | ^~~~~~~~~~~~~~~~~~ # 517| g_debug ("Re-starting app: %s", priv->id); # 518| # 519|-> g_get_current_time (¤t_time); # 520| if (priv->last_restart_time.tv_sec > 0 # 521| && (current_time.tv_sec - priv->last_restart_time.tv_sec) < _GSM_APP_RESPAWN_RATELIMIT_SECONDS) { Error: CPPCHECK_WARNING: gnome-session-46.0-build/gnome-session-46.0/gnome-session/gsm-autostart-app.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. Error: COMPILER_WARNING: gnome-session-46.0-build/gnome-session-46.0/gnome-session/gsm-client.c:530:1: warning[-Wenum-int-mismatch]: conflicting types for ‘gsm_client_query_end_session’ due to enum/integer mismatch; have ‘gboolean(GsmClient *, GsmClientEndSessionFlag, GError **)’ {aka ‘int(struct _GsmClient *, GsmClientEndSessionFlag, struct _GError **)’} # 530 | gsm_client_query_end_session (GsmClient *client, # | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ gnome-session-46.0-build/gnome-session-46.0/gnome-session/gsm-client.c:22: included_from: Included from here. gnome-session-46.0-build/gnome-session-46.0/gnome-session/gsm-client.h:115:23: note: previous declaration of ‘gsm_client_query_end_session’ with type ‘gboolean(GsmClient *, guint, GError **)’ {aka ‘int(struct _GsmClient *, unsigned int, struct _GError **)’} # 115 | gboolean gsm_client_query_end_session (GsmClient *client, # | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ # 528| # 529| gboolean # 530|-> gsm_client_query_end_session (GsmClient *client, # 531| GsmClientEndSessionFlag flags, # 532| GError **error) Error: COMPILER_WARNING: gnome-session-46.0-build/gnome-session-46.0/gnome-session/gsm-client.c:540:1: warning[-Wenum-int-mismatch]: conflicting types for ‘gsm_client_end_session’ due to enum/integer mismatch; have ‘gboolean(GsmClient *, GsmClientEndSessionFlag, GError **)’ {aka ‘int(struct _GsmClient *, GsmClientEndSessionFlag, struct _GError **)’} # 540 | gsm_client_end_session (GsmClient *client, # | ^~~~~~~~~~~~~~~~~~~~~~ gnome-session-46.0-build/gnome-session-46.0/gnome-session/gsm-client.h:112:23: note: previous declaration of ‘gsm_client_end_session’ with type ‘gboolean(GsmClient *, guint, GError **)’ {aka ‘int(struct _GsmClient *, unsigned int, struct _GError **)’} # 112 | gboolean gsm_client_end_session (GsmClient *client, # | ^~~~~~~~~~~~~~~~~~~~~~ # 538| # 539| gboolean # 540|-> gsm_client_end_session (GsmClient *client, # 541| GsmClientEndSessionFlag flags, # 542| GError **error) Error: CPPCHECK_WARNING: gnome-session-46.0-build/gnome-session-46.0/gnome-session/gsm-dbus-client.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. Error: COMPILER_WARNING: gnome-session-46.0-build/gnome-session-46.0/gnome-session/gsm-inhibitor.c: scope_hint: In function ‘gsm_inhibitor_init’ gnome-session-46.0-build/gnome-session-46.0/gnome-session/gsm-inhibitor.c:243:13: warning: Deprecated pre-processor symbol: replace with "G_ADD_PRIVATE" # 241| gsm_inhibitor_init (GsmInhibitor *inhibitor) # 242| { # 243|-> inhibitor->priv = GSM_INHIBITOR_GET_PRIVATE (inhibitor); # 244| } # 245| Error: COMPILER_WARNING (CWE-477): gnome-session-46.0-build/gnome-session-46.0/gnome-session/gsm-inhibitor.c: scope_hint: In function ‘gsm_inhibitor_class_init’ gnome-session-46.0-build/gnome-session-46.0/gnome-session/gsm-inhibitor.c:604:9: warning[-Wdeprecated-declarations]: ‘g_type_class_add_private’ is deprecated /usr/include/glib-2.0/gobject/gobject.h:26: included_from: Included from here. /usr/include/glib-2.0/gobject/gbinding.h:31: included_from: Included from here. /usr/include/glib-2.0/glib-object.h:24: included_from: Included from here. gnome-session-46.0-build/gnome-session-46.0/gnome-session/gsm-inhibitor.h:22: included_from: Included from here. gnome-session-46.0-build/gnome-session-46.0/gnome-session/gsm-inhibitor.c:27: included_from: Included from here. /usr/include/glib-2.0/gobject/gtype.h:1497:10: note: declared here # 602| G_PARAM_READWRITE | G_PARAM_CONSTRUCT)); # 603| # 604|-> g_type_class_add_private (klass, sizeof (GsmInhibitorPrivate)); # 605| } # 606| Error: CPPCHECK_WARNING: gnome-session-46.0-build/gnome-session-46.0/gnome-session/gsm-manager.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. Error: CLANG_WARNING: gnome-session-46.0-build/gnome-session-46.0/gnome-session/gsm-manager.c:981:9: warning[deadcode.DeadStores]: Value stored to 'reply' is never read # 979| return; # 980| # 981|-> reply = g_dbus_connection_call_sync (priv->connection, # 982| "org.freedesktop.systemd1", # 983| "/org/freedesktop/systemd1", Error: COMPILER_WARNING (CWE-252): gnome-session-46.0-build/gnome-session-46.0/gnome-session/gsm-manager.c: scope_hint: In function ‘do_query_end_session_exit’ gnome-session-46.0-build/gnome-session-46.0/gnome-session/gsm-manager.c:3905:17: warning[-Wunused-result]: ignoring return value of ‘system’ declared with attribute ‘warn_unused_result’ # 3905 | system("/usr/sbin/grub2-set-bootflag boot_success"); # | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ # 3903| * initiated directly from gdm. # 3904| */ # 3905|-> system("/usr/sbin/grub2-set-bootflag boot_success"); # 3906| reboot = TRUE; # 3907| break; Error: COMPILER_WARNING (CWE-252): gnome-session-46.0-build/gnome-session-46.0/gnome-session/gsm-manager.c:3915:17: warning[-Wunused-result]: ignoring return value of ‘system’ declared with attribute ‘warn_unused_result’ # 3915 | system("/usr/sbin/grub2-set-bootflag boot_success"); # | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ # 3913| * initiated directly from gdm. # 3914| */ # 3915|-> system("/usr/sbin/grub2-set-bootflag boot_success"); # 3916| shutdown = TRUE; # 3917| break; Error: COMPILER_WARNING: gnome-session-46.0-build/gnome-session-46.0/gnome-session/gsm-presence.c: scope_hint: In function ‘gsm_presence_init’ gnome-session-46.0-build/gnome-session-46.0/gnome-session/gsm-presence.c:396:13: warning: Deprecated pre-processor symbol: replace with "G_ADD_PRIVATE" # 396 | presence->priv = GSM_PRESENCE_GET_PRIVATE (presence); # | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ # 394| gsm_presence_init (GsmPresence *presence) # 395| { # 396|-> presence->priv = GSM_PRESENCE_GET_PRIVATE (presence); # 397| # 398| presence->priv->idle_monitor = gnome_idle_monitor_new (); Error: COMPILER_WARNING (CWE-477): gnome-session-46.0-build/gnome-session-46.0/gnome-session/gsm-presence.c: scope_hint: In function ‘gsm_presence_class_init’ gnome-session-46.0-build/gnome-session-46.0/gnome-session/gsm-presence.c:530:9: warning[-Wdeprecated-declarations]: ‘g_type_class_add_private’ is deprecated # 530 | g_type_class_add_private (klass, sizeof (GsmPresencePrivate)); # | ^~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/glib-2.0/gobject/gobject.h:26: included_from: Included from here. /usr/include/glib-2.0/gobject/gbinding.h:31: included_from: Included from here. /usr/include/glib-2.0/glib-object.h:24: included_from: Included from here. /usr/include/gnome-desktop-3.0/libgnome-desktop/gnome-idle-monitor.h:30: included_from: Included from here. gnome-session-46.0-build/gnome-session-46.0/gnome-session/gsm-presence.c:28: included_from: Included from here. /usr/include/glib-2.0/gobject/gtype.h:1497:10: note: declared here # 1497 | void g_type_class_add_private (gpointer g_class, # | ^~~~~~~~~~~~~~~~~~~~~~~~ # 528| G_PARAM_READWRITE | G_PARAM_CONSTRUCT)); # 529| # 530|-> g_type_class_add_private (klass, sizeof (GsmPresencePrivate)); # 531| } # 532| Error: CPPCHECK_WARNING: gnome-session-46.0-build/gnome-session-46.0/gnome-session/gsm-session-fill.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. Error: COMPILER_WARNING (CWE-477): gnome-session-46.0-build/gnome-session-46.0/gnome-session/gsm-shell-extensions.c: scope_hint: In function ‘gsm_shell_extensions_class_init’ gnome-session-46.0-build/gnome-session-46.0/gnome-session/gsm-shell-extensions.c:74:3: warning[-Wdeprecated-declarations]: ‘g_type_class_add_private’ is deprecated # 74 | g_type_class_add_private (object_class, sizeof (GsmShellExtensionsPrivate)); # | ^~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/glib-2.0/gobject/gobject.h:26: included_from: Included from here. /usr/include/glib-2.0/gobject/gbinding.h:31: included_from: Included from here. /usr/include/glib-2.0/glib-object.h:24: included_from: Included from here. /usr/include/glib-2.0/gio/gioenums.h:30: included_from: Included from here. /usr/include/glib-2.0/gio/giotypes.h:30: included_from: Included from here. /usr/include/glib-2.0/gio/gio.h:28: included_from: Included from here. gnome-session-46.0-build/gnome-session-46.0/gnome-session/gsm-shell-extensions.c:25: included_from: Included from here. /usr/include/glib-2.0/gobject/gtype.h:1497:10: note: declared here # 1497 | void g_type_class_add_private (gpointer g_class, # | ^~~~~~~~~~~~~~~~~~~~~~~~ # 72| object_class = G_OBJECT_CLASS (klass); # 73| object_class->finalize = gsm_shell_extensions_finalize; # 74|-> g_type_class_add_private (object_class, sizeof (GsmShellExtensionsPrivate)); # 75| } # 76| Error: COMPILER_WARNING: gnome-session-46.0-build/gnome-session-46.0/gnome-session/gsm-shell-extensions.c: scope_hint: In function ‘gsm_shell_extensions_init’ gnome-session-46.0-build/gnome-session-46.0/gnome-session/gsm-shell-extensions.c:169:13: warning: Deprecated pre-processor symbol: replace with "G_ADD_PRIVATE" # 169 | self->priv = SHELL_EXTENSIONS_PRIVATE (self); # | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ # 167| GSettingsSchema *schema; # 168| # 169|-> self->priv = SHELL_EXTENSIONS_PRIVATE (self); # 170| # 171| source = g_settings_schema_source_get_default (); Error: COMPILER_WARNING (CWE-477): gnome-session-46.0-build/gnome-session-46.0/gnome-session/gsm-shell.c: scope_hint: In function ‘gsm_shell_class_init’ gnome-session-46.0-build/gnome-session-46.0/gnome-session/gsm-shell.c:182:9: warning[-Wdeprecated-declarations]: ‘g_type_class_add_private’ is deprecated # 182 | g_type_class_add_private (shell_class, sizeof (GsmShellPrivate)); # | ^~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/glib-2.0/gobject/gobject.h:26: included_from: Included from here. /usr/include/glib-2.0/gobject/gbinding.h:31: included_from: Included from here. /usr/include/glib-2.0/glib-object.h:24: included_from: Included from here. gnome-session-46.0-build/gnome-session-46.0/gnome-session/gsm-shell.c:26: included_from: Included from here. /usr/include/glib-2.0/gobject/gtype.h:1497:10: note: declared here # 1497 | void g_type_class_add_private (gpointer g_class, # | ^~~~~~~~~~~~~~~~~~~~~~~~ # 180| G_TYPE_NONE, 0); # 181| # 182|-> g_type_class_add_private (shell_class, sizeof (GsmShellPrivate)); # 183| } # 184| Error: COMPILER_WARNING: gnome-session-46.0-build/gnome-session-46.0/gnome-session/gsm-shell.c: scope_hint: In function ‘gsm_shell_init’ gnome-session-46.0-build/gnome-session-46.0/gnome-session/gsm-shell.c:222:13: warning: Deprecated pre-processor symbol: replace with "G_ADD_PRIVATE" # 222 | shell->priv = GSM_SHELL_GET_PRIVATE (shell); # | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ # 220| gsm_shell_init (GsmShell *shell) # 221| { # 222|-> shell->priv = GSM_SHELL_GET_PRIVATE (shell); # 223| # 224| gsm_shell_ensure_connection (shell); Error: COMPILER_WARNING (CWE-477): gnome-session-46.0-build/gnome-session-46.0/gnome-session/gsm-store.c: scope_hint: In function ‘gsm_store_class_init’ gnome-session-46.0-build/gnome-session-46.0/gnome-session/gsm-store.c:360:9: warning[-Wdeprecated-declarations]: ‘g_type_class_add_private’ is deprecated # 360 | g_type_class_add_private (klass, sizeof (GsmStorePrivate)); # | ^~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/glib-2.0/gobject/gobject.h:26: included_from: Included from here. /usr/include/glib-2.0/gobject/gbinding.h:31: included_from: Included from here. /usr/include/glib-2.0/glib-object.h:24: included_from: Included from here. gnome-session-46.0-build/gnome-session-46.0/gnome-session/gsm-store.c:30: included_from: Included from here. /usr/include/glib-2.0/gobject/gtype.h:1497:10: note: declared here # 1497 | void g_type_class_add_private (gpointer g_class, # | ^~~~~~~~~~~~~~~~~~~~~~~~ # 358| G_PARAM_READWRITE | G_PARAM_CONSTRUCT)); # 359| # 360|-> g_type_class_add_private (klass, sizeof (GsmStorePrivate)); # 361| } # 362| Error: COMPILER_WARNING: gnome-session-46.0-build/gnome-session-46.0/gnome-session/gsm-store.c: scope_hint: In function ‘gsm_store_init’ gnome-session-46.0-build/gnome-session-46.0/gnome-session/gsm-store.c:374:13: warning: Deprecated pre-processor symbol: replace with "G_ADD_PRIVATE" # 374 | store->priv = GSM_STORE_GET_PRIVATE (store); # | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ # 372| { # 373| # 374|-> store->priv = GSM_STORE_GET_PRIVATE (store); # 375| # 376| store->priv->objects = g_hash_table_new_full (g_str_hash, Error: CPPCHECK_WARNING: gnome-session-46.0-build/gnome-session-46.0/gnome-session/gsm-systemd.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. Error: COMPILER_WARNING (CWE-477): gnome-session-46.0-build/gnome-session-46.0/gnome-session/gsm-systemd.c: scope_hint: In function ‘gsm_systemd_class_init’ gnome-session-46.0-build/gnome-session-46.0/gnome-session/gsm-systemd.c:163:9: warning[-Wdeprecated-declarations]: ‘g_type_class_add_private’ is deprecated /usr/include/glib-2.0/gobject/gobject.h:26: included_from: Included from here. /usr/include/glib-2.0/gobject/gbinding.h:31: included_from: Included from here. /usr/include/glib-2.0/glib-object.h:24: included_from: Included from here. gnome-session-46.0-build/gnome-session-46.0/gnome-session/gsm-systemd.h:26: included_from: Included from here. gnome-session-46.0-build/gnome-session-46.0/gnome-session/gsm-systemd.c:22: included_from: Included from here. /usr/include/glib-2.0/gobject/gtype.h:1497:10: note: declared here # 161| g_object_class_override_property (object_class, PROP_ACTIVE, "active"); # 162| # 163|-> g_type_class_add_private (manager_class, sizeof (GsmSystemdPrivate)); # 164| } # 165| Error: COMPILER_WARNING: gnome-session-46.0-build/gnome-session-46.0/gnome-session/gsm-systemd.c: scope_hint: In function ‘gsm_systemd_init’ gnome-session-46.0-build/gnome-session-46.0/gnome-session/gsm-systemd.c:375:13: warning: Deprecated pre-processor symbol: replace with "G_ADD_PRIVATE" # 373| manager->priv = G_TYPE_INSTANCE_GET_PRIVATE (manager, # 374| GSM_TYPE_SYSTEMD, # 375|-> GsmSystemdPrivate); # 376| # 377| manager->priv->inhibit_fd = -1; Error: COMPILER_WARNING (CWE-477): gnome-session-46.0-build/gnome-session-46.0/gnome-session/gsm-systemd.c: scope_hint: In function ‘gsm_systemd_can_switch_user’ gnome-session-46.0-build/gnome-session-46.0/gnome-session/gsm-systemd.c:592:9: warning[-Wdeprecated-declarations]: ‘sd_seat_can_multi_session’ is deprecated gnome-session-46.0-build/gnome-session-46.0/gnome-session/gsm-systemd.c:31: included_from: Included from here. /usr/include/systemd/sd-login.h:214:5: note: declared here # 590| # 591| sd_session_get_seat (manager->priv->session_id, &seat); # 592|-> ret = sd_seat_can_multi_session (seat); # 593| free (seat); # 594| Error: CPPCHECK_WARNING: gnome-session-46.0-build/gnome-session-46.0/gnome-session/gsm-util.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. Error: CLANG_WARNING: gnome-session-46.0-build/gnome-session-46.0/gnome-session/gsm-util.c:839:9: warning[deadcode.DeadStores]: Value stored to 'reply' is never read # 837| return FALSE; # 838| # 839|-> reply = g_dbus_connection_call_sync (connection, # 840| "org.freedesktop.systemd1", # 841| "/org/freedesktop/systemd1", Error: CLANG_WARNING: gnome-session-46.0-build/gnome-session-46.0/gnome-session/gsm-util.c:870:9: warning[deadcode.DeadStores]: Value stored to 'reply' is never read # 868| return FALSE; # 869| # 870|-> reply = g_dbus_connection_call_sync (connection, # 871| "org.freedesktop.systemd1", # 872| "/org/freedesktop/systemd1", Error: COMPILER_WARNING: gnome-session-46.0-build/gnome-session-46.0/gnome-session/gsm-xsmp-client.c: scope_hint: In function ‘gsm_xsmp_client_init’ gnome-session-46.0-build/gnome-session-46.0/gnome-session/gsm-xsmp-client.c:199:13: warning: Deprecated pre-processor symbol: replace with "G_ADD_PRIVATE" # 197| gsm_xsmp_client_init (GsmXSMPClient *client) # 198| { # 199|-> client->priv = GSM_XSMP_CLIENT_GET_PRIVATE (client); # 200| # 201| client->priv->props = g_ptr_array_new (); Error: COMPILER_WARNING (CWE-477): gnome-session-46.0-build/gnome-session-46.0/gnome-session/gsm-xsmp-client.c: scope_hint: In function ‘gsm_xsmp_client_class_init’ gnome-session-46.0-build/gnome-session-46.0/gnome-session/gsm-xsmp-client.c:1041:9: warning[-Wdeprecated-declarations]: ‘g_type_class_add_private’ is deprecated /usr/include/glib-2.0/gobject/gobject.h:26: included_from: Included from here. /usr/include/glib-2.0/gobject/gbinding.h:31: included_from: Included from here. /usr/include/glib-2.0/glib-object.h:24: included_from: Included from here. /usr/include/glib-2.0/gio/gioenums.h:30: included_from: Included from here. /usr/include/glib-2.0/gio/giotypes.h:30: included_from: Included from here. /usr/include/glib-2.0/gio/gio.h:28: included_from: Included from here. gnome-session-46.0-build/gnome-session-46.0/gnome-session/gsm-xsmp-client.c:29: included_from: Included from here. /usr/include/glib-2.0/gobject/gtype.h:1497:10: note: declared here # 1039| G_PARAM_READWRITE | G_PARAM_CONSTRUCT_ONLY)); # 1040| # 1041|-> g_type_class_add_private (klass, sizeof (GsmXSMPClientPrivate)); # 1042| } # 1043| Error: CPPCHECK_WARNING: gnome-session-46.0-build/gnome-session-46.0/gnome-session/gsm-xsmp-server.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. Error: GCC_ANALYZER_WARNING (CWE-476): gnome-session-46.0-build/gnome-session-46.0/gnome-session/gsm-xsmp-server.c: scope_hint: In function ‘auth_entry_new’ gnome-session-46.0-build/gnome-session-46.0/gnome-session/gsm-xsmp-server.c:424:35: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘file_entry’ # 422| file_entry = malloc (sizeof (IceAuthFileEntry)); # 423| # 424|-> file_entry->protocol_name = strdup (protocol); # 425| file_entry->protocol_data = NULL; # 426| file_entry->protocol_data_length = 0; Error: CPPCHECK_WARNING: gnome-session-46.0-build/gnome-session-46.0/gnome-session/main.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. Error: CLANG_WARNING: gnome-session-46.0-build/gnome-session-46.0/gnome-session/main.c:229:16: warning[unix.Malloc]: Potential leak of memory pointed to by 'new_argv' # 227| # 228| /* Should not be reached */ # 229|-> return TRUE; # 230| } # 231| Error: CPPCHECK_WARNING: gnome-session-46.0-build/gnome-session-46.0/gnome-session/test-process-helper.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. Error: CPPCHECK_WARNING: gnome-session-46.0-build/gnome-session-46.0/redhat-linux-build/gnome-session/org.gnome.SessionManager.App.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. Error: CPPCHECK_WARNING: gnome-session-46.0-build/gnome-session-46.0/redhat-linux-build/gnome-session/org.gnome.SessionManager.Client.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. Error: CPPCHECK_WARNING: gnome-session-46.0-build/gnome-session-46.0/redhat-linux-build/gnome-session/org.gnome.SessionManager.ClientPrivate.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. Error: CPPCHECK_WARNING: gnome-session-46.0-build/gnome-session-46.0/redhat-linux-build/gnome-session/org.gnome.SessionManager.Inhibitor.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. Error: CPPCHECK_WARNING: gnome-session-46.0-build/gnome-session-46.0/redhat-linux-build/gnome-session/org.gnome.SessionManager.Presence.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. Error: CPPCHECK_WARNING: gnome-session-46.0-build/gnome-session-46.0/redhat-linux-build/gnome-session/org.gnome.SessionManager.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. Error: CPPCHECK_WARNING: gnome-session-46.0-build/gnome-session-46.0/tools/gnome-session-check-accelerated-gl-helper.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. Error: COMPILER_WARNING (CWE-477): gnome-session-46.0-build/gnome-session-46.0/tools/gnome-session-check-accelerated-gles-helper.c: scope_hint: In function ‘get_gles_renderer’ gnome-session-46.0-build/gnome-session-46.0/tools/gnome-session-check-accelerated-gles-helper.c:103:9: warning[-Wdeprecated-declarations]: ‘gdk_error_trap_push’ is deprecated: Use 'gdk_x11_display_error_trap_push' instead /usr/include/gtk-3.0/gdk/gdk.h:50: included_from: Included from here. /usr/include/gtk-3.0/gtk/gtk.h:30: included_from: Included from here. gnome-session-46.0-build/gnome-session-46.0/tools/gnome-session-check-accelerated-gles-helper.c:29: included_from: Included from here. /usr/include/gtk-3.0/gdk/gdkmain.h:70:32: note: declared here # 101| char *renderer = NULL; # 102| # 103|-> gdk_error_trap_push (); # 104| # 105| display = GDK_DISPLAY_XDISPLAY (gdk_display_get_default ()); Error: COMPILER_WARNING (CWE-477): gnome-session-46.0-build/gnome-session-46.0/tools/gnome-session-check-accelerated-gles-helper.c:187:9: warning[-Wdeprecated-declarations]: ‘gdk_error_trap_pop_ignored’ is deprecated: Use 'gdk_x11_display_error_trap_pop_ignored' instead /usr/include/gtk-3.0/gdk/gdkmain.h:75:32: note: declared here # 185| XDestroyWindow (display, win); # 186| # 187|-> gdk_error_trap_pop_ignored (); # 188| return renderer; # 189| } Error: CPPCHECK_WARNING: gnome-session-46.0-build/gnome-session-46.0/tools/gnome-session-check-accelerated.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. Error: CPPCHECK_WARNING: gnome-session-46.0-build/gnome-session-46.0/tools/gnome-session-ctl.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. Error: CLANG_WARNING: gnome-session-46.0-build/gnome-session-46.0/tools/gnome-session-ctl.c:72:9: warning[deadcode.DeadStores]: Value stored to 'reply' is never read # 70| return; # 71| # 72|-> reply = g_dbus_connection_call_sync (connection, # 73| GSM_SERVICE_DBUS, # 74| GSM_PATH_DBUS, Error: CLANG_WARNING: gnome-session-46.0-build/gnome-session-46.0/tools/gnome-session-ctl.c:98:9: warning[deadcode.DeadStores]: Value stored to 'reply' is never read # 96| return; # 97| # 98|-> reply = g_dbus_connection_call_sync (connection, # 99| SYSTEMD_DBUS, # 100| SYSTEMD_PATH_DBUS, Error: CLANG_WARNING: gnome-session-46.0-build/gnome-session-46.0/tools/gnome-session-ctl.c:126:9: warning[deadcode.DeadStores]: Value stored to 'reply' is never read # 124| return; # 125| # 126|-> reply = g_dbus_connection_call_sync (connection, # 127| SYSTEMD_DBUS, # 128| SYSTEMD_PATH_DBUS, Error: COMPILER_WARNING: gnome-session-46.0-build/gnome-session-46.0/tools/gnome-session-ctl.c: scope_hint: In function ‘leader_term_or_int_signal_cb’ gnome-session-46.0-build/gnome-session-46.0/tools/gnome-session-ctl.c:153:13: warning: Deprecated pre-processor symbol: replace with "g_main_loop_quit" # 153 | g_main_quit (data->loop); # | ^~~~~~~~~~~~~~~~~~~~~ # 151| MonitorLeader *data = (MonitorLeader*) user_data; # 152| # 153|-> g_main_quit (data->loop); # 154| # 155| return G_SOURCE_REMOVE; Error: COMPILER_WARNING (CWE-252): gnome-session-46.0-build/gnome-session-46.0/tools/gnome-session-ctl.c: scope_hint: In function ‘leader_fifo_io_cb’ gnome-session-46.0-build/gnome-session-46.0/tools/gnome-session-ctl.c:169:17: warning[-Wunused-result]: ignoring return value of ‘read’ declared with attribute ‘warn_unused_result’ # 169 | read (data->fifo_fd, buf, 1); # | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ # 167| if (condition & G_IO_IN) { # 168| char buf[1]; # 169|-> read (data->fifo_fd, buf, 1); # 170| g_main_loop_quit (data->loop); # 171| } Error: CPPCHECK_WARNING: gnome-session-46.0-build/gnome-session-46.0/tools/gnome-session-inhibit.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. Error: GCC_ANALYZER_WARNING (CWE-910): gnome-session-46.0-build/gnome-session-46.0/tools/gnome-session-inhibit.c: scope_hint: In function ‘wait_for_child_app’ gnome-session-46.0-build/gnome-session-46.0/tools/gnome-session-inhibit.c:316:7: warning[-Wanalyzer-fd-use-after-close]: ‘write’ on closed file descriptor ‘pipefd[1]’ /usr/include/sys/wait.h:52: included_from: Included from here. gnome-session-46.0-build/gnome-session-46.0/tools/gnome-session-inhibit.c:21: included_from: Included from here. # 314| tcsetpgrp (0, pid); # 315| } # 316|-> write(pipefd[1], "\0", 1); # 317| close(pipefd[1]); # 318| if (waitpid (pid, &status, 0) == -1) Error: COMPILER_WARNING (CWE-252): gnome-session-46.0-build/gnome-session-46.0/tools/gnome-session-inhibit.c: scope_hint: In function ‘wait_for_child_app’ gnome-session-46.0-build/gnome-session-46.0/tools/gnome-session-inhibit.c:316:7: warning[-Wunused-result]: ignoring return value of ‘write’ declared with attribute ‘warn_unused_result’ # 316 | write(pipefd[1], "\0", 1); # | ^~~~~~~~~~~~~~~~~~~~~~~~~ # 314| tcsetpgrp (0, pid); # 315| } # 316|-> write(pipefd[1], "\0", 1); # 317| close(pipefd[1]); # 318| if (waitpid (pid, &status, 0) == -1) Error: GCC_ANALYZER_WARNING (CWE-1341): gnome-session-46.0-build/gnome-session-46.0/tools/gnome-session-inhibit.c:317:7: warning[-Wanalyzer-fd-double-close]: double ‘close’ of file descriptor ‘pipefd[1]’ # 315| } # 316| write(pipefd[1], "\0", 1); # 317|-> close(pipefd[1]); # 318| if (waitpid (pid, &status, 0) == -1) # 319| {