Error: COMPILER_WARNING (CWE-477): [#def1] xdg-desktop-portal-gnome-47.1-build/xdg-desktop-portal-gnome-47.1/src/access.c: scope_hint: In function ‘create_access_dialog’ xdg-desktop-portal-gnome-47.1-build/xdg-desktop-portal-gnome-47.1/src/access.c:213:3: warning[-Wdeprecated-declarations]: ‘adw_message_dialog_new’ is deprecated: Use 'adw_alert_dialog_new' instead # 213 | dialog = adw_message_dialog_new (GTK_WINDOW (fake_parent), title, subtitle); # | ^~~~~~ /usr/include/libadwaita-1/adwaita.h:62: included_from: Included from here. xdg-desktop-portal-gnome-47.1-build/xdg-desktop-portal-gnome-47.1/src/access.c:5: included_from: Included from here. /usr/include/libadwaita-1/adw-message-dialog.h:40:12: note: declared here # 40 | GtkWidget *adw_message_dialog_new (GtkWindow *parent, # | ^~~~~~~~~~~~~~~~~~~~~~ # 211| g_object_ref_sink (fake_parent); # 212| # 213|-> dialog = adw_message_dialog_new (GTK_WINDOW (fake_parent), title, subtitle); # 214| gtk_window_set_transient_for (GTK_WINDOW (dialog), GTK_WINDOW (fake_parent)); # 215| gtk_window_set_default_size (GTK_WINDOW (dialog), 450, 200); Error: COMPILER_WARNING (CWE-477): [#def2] xdg-desktop-portal-gnome-47.1-build/xdg-desktop-portal-gnome-47.1/src/access.c:218:3: warning[-Wdeprecated-declarations]: ‘adw_message_dialog_add_responses’ is deprecated: Use 'adw_alert_dialog_add_responses' instead # 218 | adw_message_dialog_add_responses (ADW_MESSAGE_DIALOG (dialog), # | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/libadwaita-1/adw-message-dialog.h:104:6: note: declared here # 104 | void adw_message_dialog_add_responses (AdwMessageDialog *self, # | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ # 216| gtk_window_set_modal (GTK_WINDOW (dialog), modal); # 217| # 218|-> adw_message_dialog_add_responses (ADW_MESSAGE_DIALOG (dialog), # 219| "deny", deny_label, # 220| "grant", grant_label, Error: COMPILER_WARNING (CWE-477): [#def3] xdg-desktop-portal-gnome-47.1-build/xdg-desktop-portal-gnome-47.1/src/access.c:223:3: warning[-Wdeprecated-declarations]: ‘adw_message_dialog_set_default_response’ is deprecated: Use 'adw_alert_dialog_set_default_response' instead # 223 | adw_message_dialog_set_default_response (ADW_MESSAGE_DIALOG (dialog), "deny"); # | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/libadwaita-1/adw-message-dialog.h:135:13: note: declared here # 135 | void adw_message_dialog_set_default_response (AdwMessageDialog *self, # | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ # 221| NULL); # 222| # 223|-> adw_message_dialog_set_default_response (ADW_MESSAGE_DIALOG (dialog), "deny"); # 224| # 225| extra = adw_preferences_group_new (); Error: COMPILER_WARNING (CWE-477): [#def4] xdg-desktop-portal-gnome-47.1-build/xdg-desktop-portal-gnome-47.1/src/access.c:226:3: warning[-Wdeprecated-declarations]: ‘adw_message_dialog_set_extra_child’ is deprecated: Use 'adw_alert_dialog_set_extra_child' instead # 226 | adw_message_dialog_set_extra_child (ADW_MESSAGE_DIALOG (dialog), extra); # | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/libadwaita-1/adw-message-dialog.h:91:12: note: declared here # 91 | void adw_message_dialog_set_extra_child (AdwMessageDialog *self, # | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ # 224| # 225| extra = adw_preferences_group_new (); # 226|-> adw_message_dialog_set_extra_child (ADW_MESSAGE_DIALOG (dialog), extra); # 227| # 228| if (choices) Error: COMPILER_WARNING (CWE-477): [#def5] xdg-desktop-portal-gnome-47.1-build/xdg-desktop-portal-gnome-47.1/src/accountdialog.c: scope_hint: In function ‘file_chooser_response’ xdg-desktop-portal-gnome-47.1-build/xdg-desktop-portal-gnome-47.1/src/accountdialog.c:128:3: warning[-Wdeprecated-declarations]: ‘gtk_file_chooser_get_file’ is deprecated # 128 | file = gtk_file_chooser_get_file (GTK_FILE_CHOOSER (widget)); # | ^~~~ /usr/include/gtk-4.0/gtk/gtk.h:130: included_from: Included from here. /usr/include/libadwaita-1/adwaita.h:9: included_from: Included from here. xdg-desktop-portal-gnome-47.1-build/xdg-desktop-portal-gnome-47.1/src/accountdialog.c:5: included_from: Included from here. /usr/include/gtk-4.0/gtk/deprecated/gtkfilechooser.h:119:22: note: declared here # 119 | GFile * gtk_file_chooser_get_file (GtkFileChooser *chooser); # | ^~~~~~~~~~~~~~~~~~~~~~~~~ # 126| g_autofree char *path = NULL; # 127| # 128|-> file = gtk_file_chooser_get_file (GTK_FILE_CHOOSER (widget)); # 129| path = file ? g_file_get_path (file) : NULL; # 130| Error: COMPILER_WARNING (CWE-477): [#def6] xdg-desktop-portal-gnome-47.1-build/xdg-desktop-portal-gnome-47.1/src/accountdialog.c: scope_hint: In function ‘image_button_clicked’ xdg-desktop-portal-gnome-47.1-build/xdg-desktop-portal-gnome-47.1/src/accountdialog.c:159:3: warning[-Wdeprecated-declarations]: ‘gtk_file_chooser_dialog_new’ is deprecated # 159 | chooser = gtk_file_chooser_dialog_new (_("Select an Image"), # | ^~~~~~~ /usr/include/gtk-4.0/gtk/gtk.h:131: included_from: Included from here. /usr/include/gtk-4.0/gtk/deprecated/gtkfilechooserdialog.h:39:12: note: declared here # 39 | GtkWidget *gtk_file_chooser_dialog_new (const char *title, # | ^~~~~~~~~~~~~~~~~~~~~~~~~~~ # 157| GtkFileFilter *filter; # 158| # 159|-> chooser = gtk_file_chooser_dialog_new (_("Select an Image"), # 160| GTK_WINDOW (dialog), # 161| GTK_FILE_CHOOSER_ACTION_OPEN, Error: COMPILER_WARNING (CWE-477): [#def7] xdg-desktop-portal-gnome-47.1-build/xdg-desktop-portal-gnome-47.1/src/accountdialog.c:168:3: warning[-Wdeprecated-declarations]: ‘gtk_dialog_set_default_response’ is deprecated # 168 | gtk_dialog_set_default_response (GTK_DIALOG (chooser), GTK_RESPONSE_OK); # | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /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:157:6: note: declared here # 157 | void gtk_dialog_set_default_response (GtkDialog *dialog, # | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ # 166| gtk_window_set_modal (GTK_WINDOW (chooser), TRUE); # 167| # 168|-> gtk_dialog_set_default_response (GTK_DIALOG (chooser), GTK_RESPONSE_OK); # 169| # 170| filter = gtk_file_filter_new (); Error: COMPILER_WARNING (CWE-477): [#def8] xdg-desktop-portal-gnome-47.1-build/xdg-desktop-portal-gnome-47.1/src/accountdialog.c:173:3: warning[-Wdeprecated-declarations]: ‘gtk_file_chooser_add_filter’ is deprecated # 173 | gtk_file_chooser_add_filter (GTK_FILE_CHOOSER (chooser), filter); # | ^~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/gtk-4.0/gtk/deprecated/gtkfilechooser.h:136:22: note: declared here # 136 | void gtk_file_chooser_add_filter (GtkFileChooser *chooser, # | ^~~~~~~~~~~~~~~~~~~~~~~~~~~ # 171| gtk_file_filter_set_name (filter, _("Images")); # 172| gtk_file_filter_add_pixbuf_formats (filter); # 173|-> gtk_file_chooser_add_filter (GTK_FILE_CHOOSER (chooser), filter); # 174| # 175| g_signal_connect (chooser, "response", G_CALLBACK (file_chooser_response), dialog); Error: COMPILER_WARNING (CWE-477): [#def9] xdg-desktop-portal-gnome-47.1-build/xdg-desktop-portal-gnome-47.1/src/appchooserdialog.c: scope_hint: In function ‘show_error_dialog’ xdg-desktop-portal-gnome-47.1-build/xdg-desktop-portal-gnome-47.1/src/appchooserdialog.c:179:3: warning[-Wdeprecated-declarations]: ‘adw_message_dialog_new’ is deprecated: Use 'adw_alert_dialog_new' instead # 179 | message_dialog = adw_message_dialog_new (parent, primary, secondary); # | ^~~~~~~~~~~~~~ /usr/include/libadwaita-1/adwaita.h:62: included_from: Included from here. xdg-desktop-portal-gnome-47.1-build/xdg-desktop-portal-gnome-47.1/src/appchooserdialog.c:27: included_from: Included from here. /usr/include/libadwaita-1/adw-message-dialog.h:40:12: note: declared here # 40 | GtkWidget *adw_message_dialog_new (GtkWindow *parent, # | ^~~~~~~~~~~~~~~~~~~~~~ # 177| GtkWidget *message_dialog; # 178| # 179|-> message_dialog = adw_message_dialog_new (parent, primary, secondary); # 180| adw_message_dialog_add_response (ADW_MESSAGE_DIALOG (message_dialog), "ok", _("_OK")); # 181| adw_message_dialog_set_default_response (ADW_MESSAGE_DIALOG (message_dialog), "ok"); Error: COMPILER_WARNING (CWE-477): [#def10] xdg-desktop-portal-gnome-47.1-build/xdg-desktop-portal-gnome-47.1/src/appchooserdialog.c:180:3: warning[-Wdeprecated-declarations]: ‘adw_message_dialog_add_response’ is deprecated: Use 'adw_alert_dialog_add_response' instead # 180 | adw_message_dialog_add_response (ADW_MESSAGE_DIALOG (message_dialog), "ok", _("_OK")); # | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/libadwaita-1/adw-message-dialog.h:95:6: note: declared here # 95 | void adw_message_dialog_add_response (AdwMessageDialog *self, # | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ # 178| # 179| message_dialog = adw_message_dialog_new (parent, primary, secondary); # 180|-> adw_message_dialog_add_response (ADW_MESSAGE_DIALOG (message_dialog), "ok", _("_OK")); # 181| adw_message_dialog_set_default_response (ADW_MESSAGE_DIALOG (message_dialog), "ok"); # 182| gtk_window_present (GTK_WINDOW (message_dialog)); Error: COMPILER_WARNING (CWE-477): [#def11] xdg-desktop-portal-gnome-47.1-build/xdg-desktop-portal-gnome-47.1/src/appchooserdialog.c:181:3: warning[-Wdeprecated-declarations]: ‘adw_message_dialog_set_default_response’ is deprecated: Use 'adw_alert_dialog_set_default_response' instead # 181 | adw_message_dialog_set_default_response (ADW_MESSAGE_DIALOG (message_dialog), "ok"); # | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/libadwaita-1/adw-message-dialog.h:135:13: note: declared here # 135 | void adw_message_dialog_set_default_response (AdwMessageDialog *self, # | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ # 179| message_dialog = adw_message_dialog_new (parent, primary, secondary); # 180| adw_message_dialog_add_response (ADW_MESSAGE_DIALOG (message_dialog), "ok", _("_OK")); # 181|-> adw_message_dialog_set_default_response (ADW_MESSAGE_DIALOG (message_dialog), "ok"); # 182| gtk_window_present (GTK_WINDOW (message_dialog)); # 183| } Error: GCC_ANALYZER_WARNING (CWE-457): [#def12] xdg-desktop-portal-gnome-47.1-build/xdg-desktop-portal-gnome-47.1/src/clipboard.c: scope_hint: In function ‘handle_selection_write’ xdg-desktop-portal-gnome-47.1-build/xdg-desktop-portal-gnome-47.1/src/clipboard.c:262:3: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘out_fd_id’ # 260| # 261| out: # 262|-> xdp_impl_clipboard_complete_selection_write (object, # 263| invocation, # 264| out_fd_list, Error: COMPILER_WARNING (CWE-457): [#def13] xdg-desktop-portal-gnome-47.1-build/xdg-desktop-portal-gnome-47.1/src/clipboard.c: scope_hint: In function ‘handle_selection_write’ xdg-desktop-portal-gnome-47.1-build/xdg-desktop-portal-gnome-47.1/src/clipboard.c:262:3: warning[-Wmaybe-uninitialized]: ‘out_fd_id’ may be used uninitialized # 262 | xdp_impl_clipboard_complete_selection_write (object, # | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ # 263 | invocation, # | ~~~~~~~~~~~ # 264 | out_fd_list, # | ~~~~~~~~~~~~ # 265 | g_variant_new_handle (out_fd_id)); # | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ xdg-desktop-portal-gnome-47.1-build/xdg-desktop-portal-gnome-47.1/src/clipboard.c:214:7: note: ‘out_fd_id’ was declared here # 214 | int out_fd_id; # | ^~~~~~~~~ # 260| # 261| out: # 262|-> xdp_impl_clipboard_complete_selection_write (object, # 263| invocation, # 264| out_fd_list, Error: GCC_ANALYZER_WARNING (CWE-457): [#def14] xdg-desktop-portal-gnome-47.1-build/xdg-desktop-portal-gnome-47.1/src/clipboard.c: scope_hint: In function ‘handle_selection_read’ xdg-desktop-portal-gnome-47.1-build/xdg-desktop-portal-gnome-47.1/src/clipboard.c:372:3: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘fd’ # 370| # 371| out: # 372|-> xdp_impl_clipboard_complete_selection_read (object, invocation, out_fd_list, fd); # 373| return TRUE; # 374| } Error: COMPILER_WARNING (CWE-477): [#def15] xdg-desktop-portal-gnome-47.1-build/xdg-desktop-portal-gnome-47.1/src/dynamic-launcher.c: scope_hint: In function ‘handle_prepare_install’ xdg-desktop-portal-gnome-47.1-build/xdg-desktop-portal-gnome-47.1/src/dynamic-launcher.c:255:3: warning[-Wdeprecated-declarations]: ‘gtk_dialog_new_with_buttons’ 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. xdg-desktop-portal-gnome-47.1-build/xdg-desktop-portal-gnome-47.1/src/dynamic-launcher.c:27: included_from: Included from here. /usr/include/gtk-4.0/gtk/deprecated/gtkdialog.h:133:12: note: declared here # 253| # 254| /* Show dialog with icon, title. */ # 255|-> dialog = GTK_WINDOW (gtk_dialog_new_with_buttons (title, # 256| GTK_WINDOW (fake_parent), # 257| dialog_flags, Error: COMPILER_WARNING (CWE-477): [#def16] xdg-desktop-portal-gnome-47.1-build/xdg-desktop-portal-gnome-47.1/src/dynamic-launcher.c:264:3: warning[-Wdeprecated-declarations]: ‘gtk_dialog_get_content_area’ is deprecated /usr/include/gtk-4.0/gtk/deprecated/gtkdialog.h:172:13: note: declared here # 262| NULL)); # 263| # 264|-> content_area = gtk_dialog_get_content_area (GTK_DIALOG (dialog)); # 265| # 266| box = gtk_box_new (GTK_ORIENTATION_VERTICAL, 5); Error: COMPILER_WARNING (CWE-477): [#def17] xdg-desktop-portal-gnome-47.1-build/xdg-desktop-portal-gnome-47.1/src/dynamic-launcher.c:290:3: warning[-Wdeprecated-declarations]: ‘gtk_image_set_from_pixbuf’ is deprecated: Use 'gtk_image_set_from_paintable' instead /usr/include/gtk-4.0/gtk/gtkentry.h:40: included_from: Included from here. /usr/include/gtk-4.0/gtk/deprecated/gtktreeview.h:27: included_from: Included from here. /usr/include/gtk-4.0/gtk/deprecated/gtkcombobox.h:26: included_from: Included from here. /usr/include/gtk-4.0/gtk/gtk.h:94: included_from: Included from here. /usr/include/gtk-4.0/gtk/gtkimage.h:95:6: note: declared here # 288| goto err; # 289| } # 290|-> gtk_image_set_from_pixbuf (GTK_IMAGE (image), pixbuf); # 291| # 292| entry = gtk_entry_new (); Error: COMPILER_WARNING (CWE-477): [#def18] xdg-desktop-portal-gnome-47.1-build/xdg-desktop-portal-gnome-47.1/src/dynamic-launcher.c:315:3: warning[-Wdeprecated-declarations]: ‘gtk_dialog_set_default_response’ is deprecated /usr/include/gtk-4.0/gtk/deprecated/gtkdialog.h:157:6: note: declared here # 313| } # 314| # 315|-> gtk_dialog_set_default_response (GTK_DIALOG (dialog), GTK_RESPONSE_OK); # 316| # 317| window_group = gtk_window_group_new (); Error: COMPILER_WARNING (CWE-477): [#def19] xdg-desktop-portal-gnome-47.1-build/xdg-desktop-portal-gnome-47.1/src/print.c: scope_hint: In function ‘handle_prepare_print’ xdg-desktop-portal-gnome-47.1-build/xdg-desktop-portal-gnome-47.1/src/print.c:692:7: warning[-Wdeprecated-declarations]: ‘gtk_dialog_get_widget_for_response’ is deprecated # 692 | GtkWidget *button = gtk_dialog_get_widget_for_response (GTK_DIALOG (dialog), GTK_RESPONSE_OK); # | ^~~~~~~~~ /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. xdg-desktop-portal-gnome-47.1-build/xdg-desktop-portal-gnome-47.1/src/print.c:28: included_from: Included from here. /usr/include/gtk-4.0/gtk/deprecated/gtkdialog.h:160:12: note: declared here # 160 | GtkWidget* gtk_dialog_get_widget_for_response (GtkDialog *dialog, # | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ # 690| if (g_variant_lookup (arg_options, "accept_label", "&s", &accept_label)) # 691| { # 692|-> GtkWidget *button = gtk_dialog_get_widget_for_response (GTK_DIALOG (dialog), GTK_RESPONSE_OK); # 693| gtk_button_set_label (GTK_BUTTON (button), accept_label); # 694| } Error: COMPILER_WARNING (CWE-457): [#def20] xdg-desktop-portal-gnome-47.1-build/xdg-desktop-portal-gnome-47.1/src/screencast.c: scope_hint: In function ‘serialize_screen_cast_streams_as_restore_data’ xdg-desktop-portal-gnome-47.1-build/xdg-desktop-portal-gnome-47.1/src/screencast.c:155:7: warning[-Wmaybe-uninitialized]: ‘stream_variant’ may be used uninitialized # 155 | g_variant_builder_add (impl_builder, # | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ # 156 | "(uuv)", # | ~~~~~~~~ # 157 | info->id, # | ~~~~~~~~~ # 158 | info->type, # | ~~~~~~~~~~~ # 159 | stream_variant); # | ~~~~~~~~~~~~~~~ xdg-desktop-portal-gnome-47.1-build/xdg-desktop-portal-gnome-47.1/src/screencast.c:127:17: note: ‘stream_variant’ was declared here # 127 | GVariant *stream_variant; # | ^~~~~~~~~~~~~~ # 153| } # 154| # 155|-> g_variant_builder_add (impl_builder, # 156| "(uuv)", # 157| info->id,
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-182.us-west-2.compute.internal |
mock-config | fedora-rawhide-gcc-latest-x86_64 |
project-name | xdg-desktop-portal-gnome-47.1-2.fc42 |
store-results-to | /tmp/tmpukn7kgsp/xdg-desktop-portal-gnome-47.1-2.fc42.tar.xz |
time-created | 2024-11-13 03:36:56 |
time-finished | 2024-11-13 03:39:31 |
tool | csmock |
tool-args | '/usr/bin/csmock' '-r' 'fedora-rawhide-gcc-latest-x86_64' '-t' 'clippy,cppcheck,gcc,unicontrol,shellcheck' '-o' '/tmp/tmpukn7kgsp/xdg-desktop-portal-gnome-47.1-2.fc42.tar.xz' '--gcc-analyze' '--unicontrol-notests' '--unicontrol-bidi-only' '--install=gcc-latest' '--gcc-analyzer-bin=/opt/gcc-latest/bin/gcc' '/tmp/tmpukn7kgsp/xdg-desktop-portal-gnome-47.1-2.fc42.src.rpm' |
tool-version | csmock-3.7.1.20241107.094801.gb3f0f26.pr_192-1.el9 |