gnome-bluetooth-46.0-1.fc41

List of Defects

Error: CPPCHECK_WARNING: [#def1]
gnome-bluetooth-46.0-build/gnome-bluetooth-46.0/lib/bluetooth-agent.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def2]
gnome-bluetooth-46.0-build/gnome-bluetooth-46.0/lib/bluetooth-client.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: COMPILER_WARNING (CWE-477): [#def3]
gnome-bluetooth-46.0-build/gnome-bluetooth-46.0/lib/bluetooth-pairing-dialog.c: scope_hint: In function ‘bluetooth_pairing_dialog_set_mode’
gnome-bluetooth-46.0-build/gnome-bluetooth-46.0/lib/bluetooth-pairing-dialog.c:80:17: warning[-Wdeprecated-declarations]: ‘gtk_widget_show’ is deprecated: Use 'gtk_widget_set_visible or gtk_window_present' instead
/usr/include/gtk-4.0/gtk/gtkapplication.h:26: included_from: Included from here.
/usr/include/gtk-4.0/gtk/gtkwindow.h:32: included_from: Included from here.
/usr/include/gtk-4.0/gtk/gtkaboutdialog.h:29: included_from: Included from here.
/usr/include/gtk-4.0/gtk/gtk.h:33: included_from: Included from here.
gnome-bluetooth-46.0-build/gnome-bluetooth-46.0/lib/bluetooth-pairing-dialog.c:23: included_from: Included from here.
/usr/include/gtk-4.0/gtk/gtkwidget.h:271:12: note: declared here
#   78|   	switch (mode) {
#   79|   	case BLUETOOTH_PAIRING_MODE_PIN_QUERY:
#   80|-> 		gtk_widget_show (priv->done);
#   81|   		gtk_notebook_set_current_page (GTK_NOTEBOOK (priv->pin_notebook), CONFIRMATION_PAGE);
#   82|   		title = g_strdup(_("Confirm Bluetooth PIN"));

Error: COMPILER_WARNING (CWE-477): [#def4]
gnome-bluetooth-46.0-build/gnome-bluetooth-46.0/lib/bluetooth-pairing-dialog.c:86:17: warning[-Wdeprecated-declarations]: ‘gtk_widget_show’ is deprecated: Use 'gtk_widget_set_visible or gtk_window_present' instead
/usr/include/gtk-4.0/gtk/gtkwidget.h:271:12: note: declared here
#   84|   		break;
#   85|   	case BLUETOOTH_PAIRING_MODE_PIN_CONFIRMATION:
#   86|-> 		gtk_widget_show (priv->done);
#   87|   		gtk_button_set_label (GTK_BUTTON (priv->done), _("Confirm"));
#   88|   		gtk_notebook_set_current_page (GTK_NOTEBOOK (priv->pin_notebook), CONFIRMATION_PAGE);

Error: COMPILER_WARNING (CWE-477): [#def5]
gnome-bluetooth-46.0-build/gnome-bluetooth-46.0/lib/bluetooth-pairing-dialog.c:95:17: warning[-Wdeprecated-declarations]: ‘gtk_widget_hide’ is deprecated: Use 'gtk_widget_set_visible' instead
/usr/include/gtk-4.0/gtk/gtkwidget.h:273:12: note: declared here
#   93|   	case BLUETOOTH_PAIRING_MODE_PIN_DISPLAY_KEYBOARD:
#   94|   	case BLUETOOTH_PAIRING_MODE_PIN_DISPLAY_ICADE:
#   95|-> 		gtk_widget_hide (priv->done);
#   96|   		title = g_strdup_printf (_("Pairing “%s”"), device_name);
#   97|   		gtk_notebook_set_current_page (GTK_NOTEBOOK (priv->pin_notebook), DISPLAY_PAGE);

Error: COMPILER_WARNING (CWE-477): [#def6]
gnome-bluetooth-46.0-build/gnome-bluetooth-46.0/lib/bluetooth-pairing-dialog.c:101:17: warning[-Wdeprecated-declarations]: ‘gtk_widget_show’ is deprecated: Use 'gtk_widget_set_visible or gtk_window_present' instead
/usr/include/gtk-4.0/gtk/gtkwidget.h:271:12: note: declared here
#   99|   	case BLUETOOTH_PAIRING_MODE_PIN_MATCH:
#  100|   		gtk_button_set_label (GTK_BUTTON (priv->done), _("Confirm"));
#  101|-> 		gtk_widget_show (priv->done);
#  102|   		gtk_notebook_set_current_page (GTK_NOTEBOOK (priv->pin_notebook), DISPLAY_PAGE);
#  103|   		title = g_strdup(_("Confirm Bluetooth PIN"));

Error: COMPILER_WARNING (CWE-477): [#def7]
gnome-bluetooth-46.0-build/gnome-bluetooth-46.0/lib/bluetooth-pairing-dialog.c:107:17: warning[-Wdeprecated-declarations]: ‘gtk_widget_show’ is deprecated: Use 'gtk_widget_set_visible or gtk_window_present' instead
/usr/include/gtk-4.0/gtk/gtkwidget.h:271:12: note: declared here
#  105|   		break;
#  106|   	case BLUETOOTH_PAIRING_MODE_YES_NO:
#  107|-> 		gtk_widget_show (priv->done);
#  108|   		gtk_notebook_set_current_page (GTK_NOTEBOOK (priv->pin_notebook), MESSAGE_PAGE);
#  109|   		title = g_strdup (_("Bluetooth Pairing Request"));

Error: COMPILER_WARNING (CWE-477): [#def8]
gnome-bluetooth-46.0-build/gnome-bluetooth-46.0/lib/bluetooth-pairing-dialog.c:113:17: warning[-Wdeprecated-declarations]: ‘gtk_widget_show’ is deprecated: Use 'gtk_widget_set_visible or gtk_window_present' instead
/usr/include/gtk-4.0/gtk/gtkwidget.h:271:12: note: declared here
#  111|   		break;
#  112|   	case BLUETOOTH_PAIRING_MODE_CONFIRM_AUTH:
#  113|-> 		gtk_widget_show (priv->done);
#  114|   		gtk_notebook_set_current_page (GTK_NOTEBOOK (priv->pin_notebook), MESSAGE_PAGE);
#  115|   		title = g_strdup (_("Confirm Bluetooth Connection"));

Error: COMPILER_WARNING (CWE-477): [#def9]
gnome-bluetooth-46.0-build/gnome-bluetooth-46.0/lib/bluetooth-pairing-dialog.c:141:17: warning[-Wdeprecated-declarations]: ‘gtk_widget_get_style_context’ is deprecated
/usr/include/gtk-4.0/gtk/gtkwidget.h:710:19: note: declared here
#  139|   	    mode == BLUETOOTH_PAIRING_MODE_CONFIRM_AUTH) {
#  140|   		gtk_button_set_label (GTK_BUTTON (priv->done), _("Allow"));
#  141|-> 		context = gtk_widget_get_style_context (priv->done);
#  142|   		gtk_style_context_remove_class (context, "suggested-action");
#  143|   

Error: COMPILER_WARNING (CWE-477): [#def10]
gnome-bluetooth-46.0-build/gnome-bluetooth-46.0/lib/bluetooth-pairing-dialog.c:142:17: warning[-Wdeprecated-declarations]: ‘gtk_style_context_remove_class’ is deprecated
/usr/include/gtk-4.0/gtk/gtk.h:267: included_from: Included from here.
/usr/include/gtk-4.0/gtk/deprecated/gtkstylecontext.h:93:10: note: declared here
#  140|   		gtk_button_set_label (GTK_BUTTON (priv->done), _("Allow"));
#  141|   		context = gtk_widget_get_style_context (priv->done);
#  142|-> 		gtk_style_context_remove_class (context, "suggested-action");
#  143|   
#  144|   		gtk_button_set_label (GTK_BUTTON (priv->cancel), _("Dismiss"));

Error: COMPILER_WARNING (CWE-477): [#def11]
gnome-bluetooth-46.0-build/gnome-bluetooth-46.0/lib/bluetooth-pairing-dialog.c:145:17: warning[-Wdeprecated-declarations]: ‘gtk_widget_get_style_context’ is deprecated
/usr/include/gtk-4.0/gtk/gtkwidget.h:710:19: note: declared here
#  143|   
#  144|   		gtk_button_set_label (GTK_BUTTON (priv->cancel), _("Dismiss"));
#  145|-> 		context = gtk_widget_get_style_context (priv->cancel);
#  146|   		gtk_style_context_add_class (context, "destructive-action");
#  147|   

Error: COMPILER_WARNING (CWE-477): [#def12]
gnome-bluetooth-46.0-build/gnome-bluetooth-46.0/lib/bluetooth-pairing-dialog.c:146:17: warning[-Wdeprecated-declarations]: ‘gtk_style_context_add_class’ is deprecated
/usr/include/gtk-4.0/gtk/deprecated/gtkstylecontext.h:90:10: note: declared here
#  144|   		gtk_button_set_label (GTK_BUTTON (priv->cancel), _("Dismiss"));
#  145|   		context = gtk_widget_get_style_context (priv->cancel);
#  146|-> 		gtk_style_context_add_class (context, "destructive-action");
#  147|   
#  148|   		gtk_widget_hide (priv->pin_notebook);

Error: COMPILER_WARNING (CWE-477): [#def13]
gnome-bluetooth-46.0-build/gnome-bluetooth-46.0/lib/bluetooth-pairing-dialog.c:148:17: warning[-Wdeprecated-declarations]: ‘gtk_widget_hide’ is deprecated: Use 'gtk_widget_set_visible' instead
/usr/include/gtk-4.0/gtk/gtkwidget.h:273:12: note: declared here
#  146|   		gtk_style_context_add_class (context, "destructive-action");
#  147|   
#  148|-> 		gtk_widget_hide (priv->pin_notebook);
#  149|   	} else {
#  150|   		gtk_button_set_label (GTK_BUTTON (priv->done), _("Confirm"));

Error: COMPILER_WARNING (CWE-477): [#def14]
gnome-bluetooth-46.0-build/gnome-bluetooth-46.0/lib/bluetooth-pairing-dialog.c:151:17: warning[-Wdeprecated-declarations]: ‘gtk_widget_get_style_context’ is deprecated
/usr/include/gtk-4.0/gtk/gtkwidget.h:710:19: note: declared here
#  149|   	} else {
#  150|   		gtk_button_set_label (GTK_BUTTON (priv->done), _("Confirm"));
#  151|-> 		context = gtk_widget_get_style_context (priv->done);
#  152|   		gtk_style_context_add_class (context, "suggested-action");
#  153|   

Error: COMPILER_WARNING (CWE-477): [#def15]
gnome-bluetooth-46.0-build/gnome-bluetooth-46.0/lib/bluetooth-pairing-dialog.c:152:17: warning[-Wdeprecated-declarations]: ‘gtk_style_context_add_class’ is deprecated
/usr/include/gtk-4.0/gtk/deprecated/gtkstylecontext.h:90:10: note: declared here
#  150|   		gtk_button_set_label (GTK_BUTTON (priv->done), _("Confirm"));
#  151|   		context = gtk_widget_get_style_context (priv->done);
#  152|-> 		gtk_style_context_add_class (context, "suggested-action");
#  153|   
#  154|   		gtk_button_set_label (GTK_BUTTON (priv->cancel), _("Cancel"));

Error: COMPILER_WARNING (CWE-477): [#def16]
gnome-bluetooth-46.0-build/gnome-bluetooth-46.0/lib/bluetooth-pairing-dialog.c:155:17: warning[-Wdeprecated-declarations]: ‘gtk_widget_get_style_context’ is deprecated
/usr/include/gtk-4.0/gtk/gtkwidget.h:710:19: note: declared here
#  153|   
#  154|   		gtk_button_set_label (GTK_BUTTON (priv->cancel), _("Cancel"));
#  155|-> 		context = gtk_widget_get_style_context (priv->cancel);
#  156|   		gtk_style_context_remove_class (context, "destructive-action");
#  157|   

Error: COMPILER_WARNING (CWE-477): [#def17]
gnome-bluetooth-46.0-build/gnome-bluetooth-46.0/lib/bluetooth-pairing-dialog.c:156:17: warning[-Wdeprecated-declarations]: ‘gtk_style_context_remove_class’ is deprecated
/usr/include/gtk-4.0/gtk/deprecated/gtkstylecontext.h:93:10: note: declared here
#  154|   		gtk_button_set_label (GTK_BUTTON (priv->cancel), _("Cancel"));
#  155|   		context = gtk_widget_get_style_context (priv->cancel);
#  156|-> 		gtk_style_context_remove_class (context, "destructive-action");
#  157|   
#  158|   		gtk_widget_show (priv->pin_notebook);

Error: COMPILER_WARNING (CWE-477): [#def18]
gnome-bluetooth-46.0-build/gnome-bluetooth-46.0/lib/bluetooth-pairing-dialog.c:158:17: warning[-Wdeprecated-declarations]: ‘gtk_widget_show’ is deprecated: Use 'gtk_widget_set_visible or gtk_window_present' instead
/usr/include/gtk-4.0/gtk/gtkwidget.h:271:12: note: declared here
#  156|   		gtk_style_context_remove_class (context, "destructive-action");
#  157|   
#  158|-> 		gtk_widget_show (priv->pin_notebook);
#  159|   	}
#  160|   

Error: CPPCHECK_WARNING (CWE-457): [#def19]
gnome-bluetooth-46.0-build/gnome-bluetooth-46.0/lib/bluetooth-pairing-dialog.c:232: error[legacyUninitvar]: Uninitialized variable: response
#  230|   		g_assert_not_reached ();
#  231|   
#  232|-> 	gtk_dialog_response (GTK_DIALOG (user_data), response);
#  233|   }
#  234|   

Error: COMPILER_WARNING (CWE-477): [#def20]
gnome-bluetooth-46.0-build/gnome-bluetooth-46.0/lib/bluetooth-pairing-dialog.c: scope_hint: In function ‘response_cb’
gnome-bluetooth-46.0-build/gnome-bluetooth-46.0/lib/bluetooth-pairing-dialog.c:232:9: warning[-Wdeprecated-declarations]: ‘gtk_dialog_response’ is deprecated
/usr/include/gtk-4.0/gtk/deprecated/gtkappchooserdialog.h:31: included_from: Included from here.
/usr/include/gtk-4.0/gtk/gtk.h:43: included_from: Included from here.
/usr/include/gtk-4.0/gtk/deprecated/gtkdialog.h:168:6: note: declared here
#  230|   		g_assert_not_reached ();
#  231|   
#  232|-> 	gtk_dialog_response (GTK_DIALOG (user_data), response);
#  233|   }
#  234|   

Error: COMPILER_WARNING (CWE-477): [#def21]
gnome-bluetooth-46.0-build/gnome-bluetooth-46.0/lib/bluetooth-pairing-dialog.c: scope_hint: In function ‘bluetooth_pairing_dialog_constructed’
gnome-bluetooth-46.0-build/gnome-bluetooth-46.0/lib/bluetooth-pairing-dialog.c:282:9: warning[-Wdeprecated-declarations]: ‘gtk_dialog_get_header_bar’ is deprecated
/usr/include/gtk-4.0/gtk/deprecated/gtkdialog.h:174:13: note: declared here
#  280|   
#  281|   	/* Header */
#  282|-> 	header = gtk_dialog_get_header_bar (GTK_DIALOG (self));
#  283|   	priv->title = gtk_label_new ("");
#  284|   	gtk_header_bar_set_title_widget (GTK_HEADER_BAR (header), priv->title);

Error: COMPILER_WARNING (CWE-477): [#def22]
gnome-bluetooth-46.0-build/gnome-bluetooth-46.0/lib/bluetooth-pairing-dialog.c:289:9: warning[-Wdeprecated-declarations]: ‘gtk_widget_hide’ is deprecated: Use 'gtk_widget_set_visible' instead
/usr/include/gtk-4.0/gtk/gtkwidget.h:273:12: note: declared here
#  287|   	/* OK button */
#  288|   	priv->done = gtk_button_new_with_label (_("Accept"));
#  289|-> 	gtk_widget_hide (priv->done);
#  290|   	g_signal_connect (G_OBJECT (priv->done), "clicked",
#  291|   			  G_CALLBACK (response_cb), self);

Error: COMPILER_WARNING (CWE-477): [#def23]
gnome-bluetooth-46.0-build/gnome-bluetooth-46.0/lib/bluetooth-pairing-dialog.c:297:9: warning[-Wdeprecated-declarations]: ‘gtk_widget_hide’ is deprecated: Use 'gtk_widget_set_visible' instead
/usr/include/gtk-4.0/gtk/gtkwidget.h:273:12: note: declared here
#  295|   	priv->spinner = gtk_spinner_new ();
#  296|   	gtk_widget_set_margin_end (priv->spinner, 12);
#  297|-> 	gtk_widget_hide (priv->spinner);
#  298|   	gtk_header_bar_pack_end (GTK_HEADER_BAR (header), priv->spinner);
#  299|   	g_object_bind_property (priv->spinner, "visible",

Error: COMPILER_WARNING (CWE-477): [#def24]
gnome-bluetooth-46.0-build/gnome-bluetooth-46.0/lib/bluetooth-pairing-dialog.c:314:9: warning[-Wdeprecated-declarations]: ‘gtk_widget_get_style_context’ is deprecated
/usr/include/gtk-4.0/gtk/gtkwidget.h:710:19: note: declared here
#  312|   			  G_CALLBACK (text_changed_cb), self);
#  313|   
#  314|-> 	context = gtk_widget_get_style_context (priv->done);
#  315|   	gtk_style_context_add_class (context, "suggested-action");
#  316|   	context = gtk_widget_get_style_context (priv->title);

Error: COMPILER_WARNING (CWE-477): [#def25]
gnome-bluetooth-46.0-build/gnome-bluetooth-46.0/lib/bluetooth-pairing-dialog.c:315:9: warning[-Wdeprecated-declarations]: ‘gtk_style_context_add_class’ is deprecated
/usr/include/gtk-4.0/gtk/deprecated/gtkstylecontext.h:90:10: note: declared here
#  313|   
#  314|   	context = gtk_widget_get_style_context (priv->done);
#  315|-> 	gtk_style_context_add_class (context, "suggested-action");
#  316|   	context = gtk_widget_get_style_context (priv->title);
#  317|   	gtk_style_context_add_class (context, "title");

Error: COMPILER_WARNING (CWE-477): [#def26]
gnome-bluetooth-46.0-build/gnome-bluetooth-46.0/lib/bluetooth-pairing-dialog.c:316:9: warning[-Wdeprecated-declarations]: ‘gtk_widget_get_style_context’ is deprecated
/usr/include/gtk-4.0/gtk/gtkwidget.h:710:19: note: declared here
#  314|   	context = gtk_widget_get_style_context (priv->done);
#  315|   	gtk_style_context_add_class (context, "suggested-action");
#  316|-> 	context = gtk_widget_get_style_context (priv->title);
#  317|   	gtk_style_context_add_class (context, "title");
#  318|   }

Error: COMPILER_WARNING (CWE-477): [#def27]
gnome-bluetooth-46.0-build/gnome-bluetooth-46.0/lib/bluetooth-pairing-dialog.c:317:9: warning[-Wdeprecated-declarations]: ‘gtk_style_context_add_class’ is deprecated
/usr/include/gtk-4.0/gtk/deprecated/gtkstylecontext.h:90:10: note: declared here
#  315|   	gtk_style_context_add_class (context, "suggested-action");
#  316|   	context = gtk_widget_get_style_context (priv->title);
#  317|-> 	gtk_style_context_add_class (context, "title");
#  318|   }
#  319|   

Error: COMPILER_WARNING (CWE-477): [#def28]
gnome-bluetooth-46.0-build/gnome-bluetooth-46.0/lib/bluetooth-settings-row.c: scope_hint: In function ‘label_might_change’
gnome-bluetooth-46.0-build/gnome-bluetooth-46.0/lib/bluetooth-settings-row.c:85:17: warning[-Wdeprecated-declarations]: ‘gtk_widget_hide’ is deprecated: Use 'gtk_widget_set_visible' instead
/usr/include/gtk-4.0/gtk/gtkapplication.h:26: included_from: Included from here.
/usr/include/gtk-4.0/gtk/gtkwindow.h:32: included_from: Included from here.
/usr/include/gtk-4.0/gtk/gtkaboutdialog.h:29: included_from: Included from here.
/usr/include/gtk-4.0/gtk/gtk.h:33: included_from: Included from here.
/usr/include/libadwaita-1/adwaita.h:9: included_from: Included from here.
gnome-bluetooth-46.0-build/gnome-bluetooth-46.0/lib/bluetooth-settings-row.c:23: included_from: Included from here.
/usr/include/gtk-4.0/gtk/gtkwidget.h:273:12: note: declared here
#   83|   
#   84|   	if (self->pairing) {
#   85|-> 		gtk_widget_hide (self->status);
#   86|   
#   87|   		gtk_spinner_start (GTK_SPINNER (self->spinner));

Error: COMPILER_WARNING (CWE-477): [#def29]
gnome-bluetooth-46.0-build/gnome-bluetooth-46.0/lib/bluetooth-settings-row.c:88:17: warning[-Wdeprecated-declarations]: ‘gtk_widget_show’ is deprecated: Use 'gtk_widget_set_visible or gtk_window_present' instead
/usr/include/gtk-4.0/gtk/gtkwidget.h:271:12: note: declared here
#   86|   
#   87|   		gtk_spinner_start (GTK_SPINNER (self->spinner));
#   88|-> 		gtk_widget_show (self->spinner);
#   89|   	} else {
#   90|   		gtk_spinner_stop (GTK_SPINNER (self->spinner));

Error: COMPILER_WARNING (CWE-477): [#def30]
gnome-bluetooth-46.0-build/gnome-bluetooth-46.0/lib/bluetooth-settings-row.c:91:17: warning[-Wdeprecated-declarations]: ‘gtk_widget_hide’ is deprecated: Use 'gtk_widget_set_visible' instead
/usr/include/gtk-4.0/gtk/gtkwidget.h:273:12: note: declared here
#   89|   	} else {
#   90|   		gtk_spinner_stop (GTK_SPINNER (self->spinner));
#   91|-> 		gtk_widget_hide (self->spinner);
#   92|   
#   93|   		gtk_widget_show (self->status);

Error: COMPILER_WARNING (CWE-477): [#def31]
gnome-bluetooth-46.0-build/gnome-bluetooth-46.0/lib/bluetooth-settings-row.c:93:17: warning[-Wdeprecated-declarations]: ‘gtk_widget_show’ is deprecated: Use 'gtk_widget_set_visible or gtk_window_present' instead
/usr/include/gtk-4.0/gtk/gtkwidget.h:271:12: note: declared here
#   91|   		gtk_widget_hide (self->spinner);
#   92|   
#   93|-> 		gtk_widget_show (self->status);
#   94|   	}
#   95|   }

Error: CPPCHECK_WARNING: [#def32]
gnome-bluetooth-46.0-build/gnome-bluetooth-46.0/lib/bluetooth-settings-widget.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING (CWE-457): [#def33]
gnome-bluetooth-46.0-build/gnome-bluetooth-46.0/lib/bluetooth-settings-widget.c:460: error[legacyUninitvar]: Uninitialized variable: mode
#  458|   
#  459|   	g_object_set_data_full (G_OBJECT (self->pairing_dialog), "name", g_strdup (name), g_free);
#  460|-> 	g_object_set_data (G_OBJECT (self->pairing_dialog), "mode", GUINT_TO_POINTER (mode));
#  461|   
#  462|   	if (confirm_pin) {

Error: CPPCHECK_WARNING: [#def34]
gnome-bluetooth-46.0-build/gnome-bluetooth-46.0/lib/pin.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: COMPILER_WARNING (CWE-477): [#def35]
gnome-bluetooth-46.0-build/gnome-bluetooth-46.0/lib/test-liststore.c: scope_hint: In function ‘main’
gnome-bluetooth-46.0-build/gnome-bluetooth-46.0/lib/test-liststore.c:61:9: warning[-Wdeprecated-declarations]: ‘gtk_widget_show’ is deprecated: Use 'gtk_widget_set_visible or gtk_window_present' instead
/usr/include/gtk-4.0/gtk/gtkapplication.h:26: included_from: Included from here.
/usr/include/gtk-4.0/gtk/gtkwindow.h:32: included_from: Included from here.
/usr/include/gtk-4.0/gtk/gtkaboutdialog.h:29: included_from: Included from here.
/usr/include/gtk-4.0/gtk/gtk.h:33: included_from: Included from here.
gnome-bluetooth-46.0-build/gnome-bluetooth-46.0/lib/test-liststore.c:7: included_from: Included from here.
/usr/include/gtk-4.0/gtk/gtkwidget.h:271:12: note: declared here
#   59|   	gtk_list_box_bind_model (GTK_LIST_BOX (listbox), G_LIST_MODEL (model), create_device_cb, NULL, NULL);
#   60|   	gtk_window_set_child (GTK_WINDOW (window), listbox);
#   61|-> 	gtk_widget_show (window);
#   62|   
#   63|   	while (g_list_model_get_n_items (gtk_window_get_toplevels()) > 0)

Error: CPPCHECK_WARNING: [#def36]
gnome-bluetooth-46.0-build/gnome-bluetooth-46.0/lib/test-pairing-dialog.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: COMPILER_WARNING (CWE-477): [#def37]
gnome-bluetooth-46.0-build/gnome-bluetooth-46.0/lib/test-pairing-dialog.c: scope_hint: In function ‘main’
gnome-bluetooth-46.0-build/gnome-bluetooth-46.0/lib/test-pairing-dialog.c:99:9: warning[-Wdeprecated-declarations]: ‘gtk_widget_show’ is deprecated: Use 'gtk_widget_set_visible or gtk_window_present' instead
/usr/include/gtk-4.0/gtk/gtkapplication.h:26: included_from: Included from here.
/usr/include/gtk-4.0/gtk/gtkwindow.h:32: included_from: Included from here.
/usr/include/gtk-4.0/gtk/gtkaboutdialog.h:29: included_from: Included from here.
/usr/include/gtk-4.0/gtk/gtk.h:33: included_from: Included from here.
gnome-bluetooth-46.0-build/gnome-bluetooth-46.0/lib/bluetooth-pairing-dialog.h:23: included_from: Included from here.
gnome-bluetooth-46.0-build/gnome-bluetooth-46.0/lib/test-pairing-dialog.c:1: included_from: Included from here.
/usr/include/gtk-4.0/gtk/gtkwidget.h:271:12: note: declared here
#   97|   			  G_CALLBACK (response_cb), mainloop);
#   98|   
#   99|-> 	gtk_widget_show (window);
#  100|   
#  101|   	g_main_loop_run (mainloop);

Error: CPPCHECK_WARNING: [#def38]
gnome-bluetooth-46.0-build/gnome-bluetooth-46.0/redhat-linux-build/gnome-bluetooth-3.0-scan.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CLANG_WARNING: [#def39]
gnome-bluetooth-46.0-build/gnome-bluetooth-46.0/redhat-linux-build/gnome-bluetooth-3.0-scan.c:184:16: warning[deadcode.DeadStores]: Although the value stored to 'event_num' is used in the enclosing expression, the value is never actually read from 'event_num'

Error: CPPCHECK_WARNING: [#def40]
gnome-bluetooth-46.0-build/gnome-bluetooth-46.0/redhat-linux-build/lib/bluetooth-client-glue.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def41]
gnome-bluetooth-46.0-build/gnome-bluetooth-46.0/redhat-linux-build/tmp-introspecthr9l2b31/GnomeBluetooth-3.0.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CLANG_WARNING: [#def42]
gnome-bluetooth-46.0-build/gnome-bluetooth-46.0/redhat-linux-build/tmp-introspecthr9l2b31/GnomeBluetooth-3.0.c:799:27: warning[core.NullDereference]: Access to field 'message' results in a dereference of a null pointer (loaded from variable 'error')

Error: CPPCHECK_WARNING: [#def43]
gnome-bluetooth-46.0-build/gnome-bluetooth-46.0/redhat-linux-build/tmp-introspectrbz859hm/GnomeBluetoothPriv-3.0.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CLANG_WARNING: [#def44]
gnome-bluetooth-46.0-build/gnome-bluetooth-46.0/redhat-linux-build/tmp-introspectrbz859hm/GnomeBluetoothPriv-3.0.c:799:27: warning[core.NullDereference]: Access to field 'message' results in a dereference of a null pointer (loaded from variable 'error')

Error: CPPCHECK_WARNING: [#def45]
gnome-bluetooth-46.0-build/gnome-bluetooth-46.0/sendto/main.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: COMPILER_WARNING (CWE-477): [#def46]
gnome-bluetooth-46.0-build/gnome-bluetooth-46.0/sendto/main.c: scope_hint: In function ‘handle_error’
gnome-bluetooth-46.0-build/gnome-bluetooth-46.0/sendto/main.c:144:9: warning[-Wdeprecated-declarations]: ‘gtk_widget_show’ is deprecated: Use 'gtk_widget_set_visible or gtk_window_present' instead
/usr/include/gtk-4.0/gtk/gtkapplication.h:26: included_from: Included from here.
/usr/include/gtk-4.0/gtk/gtkwindow.h:32: included_from: Included from here.
/usr/include/gtk-4.0/gtk/gtkaboutdialog.h:29: included_from: Included from here.
/usr/include/gtk-4.0/gtk/gtk.h:33: included_from: Included from here.
/usr/include/libadwaita-1/adwaita.h:9: included_from: Included from here.
gnome-bluetooth-46.0-build/gnome-bluetooth-46.0/sendto/main.c:31: included_from: Included from here.
/usr/include/gtk-4.0/gtk/gtkwidget.h:271:12: note: declared here
#  142|   	message = cleanup_error (error);
#  143|   
#  144|-> 	gtk_widget_show (image_status);
#  145|   	gtk_label_set_markup (GTK_LABEL (label_status), message);
#  146|   	g_clear_error (&error);

Error: COMPILER_WARNING (CWE-477): [#def47]
gnome-bluetooth-46.0-build/gnome-bluetooth-46.0/sendto/main.c:153:9: warning[-Wdeprecated-declarations]: ‘gtk_dialog_set_response_sensitive’ is deprecated
/usr/include/gtk-4.0/gtk/deprecated/gtkappchooserdialog.h:31: included_from: Included from here.
/usr/include/gtk-4.0/gtk/gtk.h:43: included_from: Included from here.
/usr/include/gtk-4.0/gtk/deprecated/gtkdialog.h:153:6: note: declared here
#  151|   	gtk_progress_bar_set_text (GTK_PROGRESS_BAR (progress), "");
#  152|   
#  153|-> 	gtk_dialog_set_response_sensitive (GTK_DIALOG (dialog), RESPONSE_RETRY, TRUE);
#  154|   }
#  155|   

Error: COMPILER_WARNING (CWE-477): [#def48]
gnome-bluetooth-46.0-build/gnome-bluetooth-46.0/sendto/main.c: scope_hint: In function ‘response_callback’
gnome-bluetooth-46.0-build/gnome-bluetooth-46.0/sendto/main.c:399:17: warning[-Wdeprecated-declarations]: ‘gtk_dialog_set_response_sensitive’ is deprecated
/usr/include/gtk-4.0/gtk/deprecated/gtkdialog.h:153:6: note: declared here
#  397|   	if (response == RESPONSE_RETRY) {
#  398|   		/* Reset buttons */
#  399|-> 		gtk_dialog_set_response_sensitive (GTK_DIALOG (dialog), RESPONSE_RETRY, FALSE);
#  400|   
#  401|   		/* Reset status and progress bar */

Error: COMPILER_WARNING (CWE-477): [#def49]
gnome-bluetooth-46.0-build/gnome-bluetooth-46.0/sendto/main.c:405:17: warning[-Wdeprecated-declarations]: ‘gtk_widget_hide’ is deprecated: Use 'gtk_widget_set_visible' instead
/usr/include/gtk-4.0/gtk/gtkwidget.h:273:12: note: declared here
#  403|   					  _("Connecting…"));
#  404|   		gtk_label_set_text (GTK_LABEL (label_status), "");
#  405|-> 		gtk_widget_hide (image_status);
#  406|   
#  407|   		/* If we have a session, we don't need to create another one. */

Error: COMPILER_WARNING (CWE-477): [#def50]
gnome-bluetooth-46.0-build/gnome-bluetooth-46.0/sendto/main.c: scope_hint: In function ‘create_window’
gnome-bluetooth-46.0-build/gnome-bluetooth-46.0/sendto/main.c:446:9: warning[-Wdeprecated-declarations]: ‘gtk_dialog_add_buttons’ is deprecated
/usr/include/gtk-4.0/gtk/deprecated/gtkdialog.h:148:12: note: declared here
#  444|   			       "title", _("Bluetooth File Transfer"),
#  445|   			       NULL);
#  446|-> 	gtk_dialog_add_buttons(GTK_DIALOG (dialog),
#  447|   			       _("_Cancel"), GTK_RESPONSE_CANCEL,
#  448|   			       _("_Retry"), RESPONSE_RETRY,

Error: COMPILER_WARNING (CWE-477): [#def51]
gnome-bluetooth-46.0-build/gnome-bluetooth-46.0/sendto/main.c:450:9: warning[-Wdeprecated-declarations]: ‘gtk_dialog_set_response_sensitive’ is deprecated
/usr/include/gtk-4.0/gtk/deprecated/gtkdialog.h:153:6: note: declared here
#  448|   			       _("_Retry"), RESPONSE_RETRY,
#  449|   			       NULL);
#  450|-> 	gtk_dialog_set_response_sensitive (GTK_DIALOG (dialog), RESPONSE_RETRY, FALSE);
#  451|   	gtk_window_set_default_size(GTK_WINDOW(dialog), 400, -1);
#  452|   

Error: COMPILER_WARNING (CWE-477): [#def52]
gnome-bluetooth-46.0-build/gnome-bluetooth-46.0/sendto/main.c:509:9: warning[-Wdeprecated-declarations]: ‘gtk_widget_hide’ is deprecated: Use 'gtk_widget_set_visible' instead
/usr/include/gtk-4.0/gtk/gtkwidget.h:273:12: note: declared here
#  507|   
#  508|   	image_status = gtk_image_new_from_icon_name ("dialog-warning");
#  509|-> 	gtk_widget_hide(image_status);
#  510|   	gtk_box_append(GTK_BOX(hbox), image_status);
#  511|   

Error: COMPILER_WARNING (CWE-477): [#def53]
gnome-bluetooth-46.0-build/gnome-bluetooth-46.0/sendto/main.c: scope_hint: In function ‘on_transfer_complete’
gnome-bluetooth-46.0-build/gnome-bluetooth-46.0/sendto/main.c:658:17: warning[-Wdeprecated-declarations]: ‘gtk_dialog_get_widget_for_response’ is deprecated
/usr/include/gtk-4.0/gtk/deprecated/gtkdialog.h:160:12: note: declared here
#  656|   		g_free (complete);
#  657|   
#  658|-> 		button = gtk_dialog_get_widget_for_response(GTK_DIALOG (dialog), GTK_RESPONSE_CANCEL);
#  659|   		gtk_button_set_label (GTK_BUTTON (button), _("_Close"));
#  660|   	} else {

Error: COMPILER_WARNING (CWE-477): [#def54]
gnome-bluetooth-46.0-build/gnome-bluetooth-46.0/sendto/main.c: scope_hint: In function ‘on_transfer_error’
gnome-bluetooth-46.0-build/gnome-bluetooth-46.0/sendto/main.c:668:9: warning[-Wdeprecated-declarations]: ‘gtk_widget_show’ is deprecated: Use 'gtk_widget_set_visible or gtk_window_present' instead
/usr/include/gtk-4.0/gtk/gtkwidget.h:271:12: note: declared here
#  666|   on_transfer_error (void)
#  667|   {
#  668|-> 	gtk_widget_show (image_status);
#  669|   	gtk_label_set_markup (GTK_LABEL (label_status), _("There was an error"));
#  670|   

Error: COMPILER_WARNING (CWE-477): [#def55]
gnome-bluetooth-46.0-build/gnome-bluetooth-46.0/sendto/main.c:671:9: warning[-Wdeprecated-declarations]: ‘gtk_dialog_set_response_sensitive’ is deprecated
/usr/include/gtk-4.0/gtk/deprecated/gtkdialog.h:153:6: note: declared here
#  669|   	gtk_label_set_markup (GTK_LABEL (label_status), _("There was an error"));
#  670|   
#  671|-> 	gtk_dialog_set_response_sensitive (GTK_DIALOG (dialog), RESPONSE_RETRY, TRUE);
#  672|   
#  673|   	g_object_unref (current_transfer);

Error: COMPILER_WARNING (CWE-477): [#def56]
gnome-bluetooth-46.0-build/gnome-bluetooth-46.0/sendto/main.c: scope_hint: In function ‘show_select_dialog’
gnome-bluetooth-46.0-build/gnome-bluetooth-46.0/sendto/main.c:698:9: warning[-Wdeprecated-declarations]: ‘gtk_dialog_add_buttons’ is deprecated
/usr/include/gtk-4.0/gtk/deprecated/gtkdialog.h:148:12: note: declared here
#  696|   			       "hide-on-close", TRUE,
#  697|   			       NULL);
#  698|-> 	gtk_dialog_add_buttons(GTK_DIALOG (dialog),
#  699|   			       _("_Cancel"), GTK_RESPONSE_CANCEL,
#  700|   			       _("Select"), GTK_RESPONSE_ACCEPT, NULL);

Error: COMPILER_WARNING (CWE-477): [#def57]
gnome-bluetooth-46.0-build/gnome-bluetooth-46.0/sendto/main.c:701:9: warning[-Wdeprecated-declarations]: ‘gtk_file_chooser_set_select_multiple’ is deprecated
/usr/include/gtk-4.0/gtk/gtk.h:130: included_from: Included from here.
/usr/include/gtk-4.0/gtk/deprecated/gtkfilechooser.h:98:22: note: declared here
#  699|   			       _("_Cancel"), GTK_RESPONSE_CANCEL,
#  700|   			       _("Select"), GTK_RESPONSE_ACCEPT, NULL);
#  701|-> 	gtk_file_chooser_set_select_multiple(GTK_FILE_CHOOSER(dialog), TRUE);
#  702|   
#  703|   	button = gtk_dialog_get_widget_for_response(GTK_DIALOG (dialog), GTK_RESPONSE_ACCEPT);

Error: COMPILER_WARNING (CWE-477): [#def58]
gnome-bluetooth-46.0-build/gnome-bluetooth-46.0/sendto/main.c:703:9: warning[-Wdeprecated-declarations]: ‘gtk_dialog_get_widget_for_response’ is deprecated
/usr/include/gtk-4.0/gtk/deprecated/gtkdialog.h:160:12: note: declared here
#  701|   	gtk_file_chooser_set_select_multiple(GTK_FILE_CHOOSER(dialog), TRUE);
#  702|   
#  703|-> 	button = gtk_dialog_get_widget_for_response(GTK_DIALOG (dialog), GTK_RESPONSE_ACCEPT);
#  704|   	gtk_widget_add_css_class(button, "suggested-action");
#  705|   

Error: COMPILER_WARNING (CWE-477): [#def59]
gnome-bluetooth-46.0-build/gnome-bluetooth-46.0/sendto/main.c:708:9: warning[-Wdeprecated-declarations]: ‘gtk_widget_show’ is deprecated: Use 'gtk_widget_set_visible or gtk_window_present' instead
/usr/include/gtk-4.0/gtk/gtkwidget.h:271:12: note: declared here
#  706|   	g_signal_connect(dialog, "response", G_CALLBACK(select_dialog_response_callback), NULL);
#  707|   
#  708|-> 	gtk_widget_show(dialog);
#  709|   
#  710|   	select_dialog_mainloop = g_main_loop_new(NULL, FALSE);

Error: COMPILER_WARNING (CWE-477): [#def60]
gnome-bluetooth-46.0-build/gnome-bluetooth-46.0/sendto/main.c:717:17: warning[-Wdeprecated-declarations]: ‘gtk_file_chooser_get_files’ is deprecated
/usr/include/gtk-4.0/gtk/deprecated/gtkfilechooser.h:125:22: note: declared here
#  715|   		guint i, n_items;
#  716|   
#  717|-> 		selected_files = gtk_file_chooser_get_files(GTK_FILE_CHOOSER(dialog));
#  718|   		n_items = g_list_model_get_n_items(selected_files);
#  719|   

Scan Properties

analyzer-version-clang18.1.7
analyzer-version-cppcheck2.14.2
analyzer-version-gcc14.1.1
analyzer-version-gcc-analyzer14.1.1
analyzer-version-shellcheck0.10.0
enabled-pluginsclang, cppcheck, gcc, shellcheck
exit-code0
hostip-172-16-1-215.us-west-2.compute.internal
mock-configfedora-41-x86_64
project-namegnome-bluetooth-46.0-1.fc41
store-results-to/tmp/tmpf60hjji1/gnome-bluetooth-46.0-1.fc41.tar.xz
time-created2024-07-03 12:57:17
time-finished2024-07-03 13:00:07
toolcsmock
tool-args'/usr/bin/csmock' '-r' 'fedora-41-x86_64' '-t' 'cppcheck,gcc,clang,shellcheck' '-o' '/tmp/tmpf60hjji1/gnome-bluetooth-46.0-1.fc41.tar.xz' '--gcc-analyze' '/tmp/tmpf60hjji1/gnome-bluetooth-46.0-1.fc41.src.rpm'
tool-versioncsmock-3.5.3-1.el9