xdg-desktop-portal-gtk-1.15.3-1.fc43

List of Findings

Error: COMPILER_WARNING (CWE-563): [#def1]
xdg-desktop-portal-gtk-1.15.3/src/access.c: scope_hint: In function ‘access_dialog_response’
xdg-desktop-portal-gtk-1.15.3/src/access.c:113:36: warning[-Wunused-parameter]: unused parameter ‘widget’
#  113 | access_dialog_response (GtkWidget *widget,
#      |                         ~~~~~~~~~~~^~~~~~
#  111|   
#  112|   static void
#  113|-> access_dialog_response (GtkWidget *widget,
#  114|                           int response,
#  115|                           gpointer user_data)

Error: COMPILER_WARNING (CWE-563): [#def2]
xdg-desktop-portal-gtk-1.15.3/src/access.c: scope_hint: In function ‘handle_close’
xdg-desktop-portal-gtk-1.15.3/src/access.c:141:31: warning[-Wunused-parameter]: unused parameter ‘object’
#  141 | handle_close (XdpImplRequest *object,
#      |               ~~~~~~~~~~~~~~~~^~~~~~
#  139|   
#  140|   static gboolean
#  141|-> handle_close (XdpImplRequest *object,
#  142|                 GDBusMethodInvocation *invocation,
#  143|                 AccessDialogHandle *handle)

Error: COMPILER_WARNING (CWE-563): [#def3]
xdg-desktop-portal-gtk-1.15.3/src/access.c:142:38: warning[-Wunused-parameter]: unused parameter ‘invocation’
#  142 |               GDBusMethodInvocation *invocation,
#      |               ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~
#  140|   static gboolean
#  141|   handle_close (XdpImplRequest *object,
#  142|->               GDBusMethodInvocation *invocation,
#  143|                 AccessDialogHandle *handle)
#  144|   {

Error: COMPILER_WARNING (CWE-195): [#def4]
xdg-desktop-portal-gtk-1.15.3/src/access.c: scope_hint: In function ‘add_choice’
xdg-desktop-portal-gtk-1.15.3/src/access.c:193:21: warning[-Wsign-compare]: comparison of integer expressions of different signedness: ‘int’ and ‘gsize’ {aka ‘long unsigned int’}
#  193 |       for (i = 0; i < g_variant_n_children (options); i++)
#      |                     ^
#  191|         gtk_container_add (GTK_CONTAINER (box), label);
#  192|   
#  193|->       for (i = 0; i < g_variant_n_children (options); i++)
#  194|           {
#  195|             const char *option_id;

Error: COMPILER_WARNING (CWE-195): [#def5]
xdg-desktop-portal-gtk-1.15.3/src/access.c: scope_hint: In function ‘handle_access_dialog’
xdg-desktop-portal-gtk-1.15.3/src/access.c:321:21: warning[-Wsign-compare]: comparison of integer expressions of different signedness: ‘int’ and ‘gsize’ {aka ‘long unsigned int’}
#  321 |       for (i = 0; i < g_variant_n_children (choices); i++)
#      |                     ^
#  319|   
#  320|         choice_table = g_hash_table_new_full (g_str_hash, g_str_equal, g_free, NULL);
#  321|->       for (i = 0; i < g_variant_n_children (choices); i++)
#  322|           add_choice (area, g_variant_get_child_value (choices, i), choice_table);
#  323|       }

Error: COMPILER_WARNING (CWE-563): [#def6]
xdg-desktop-portal-gtk-1.15.3/src/account.c: scope_hint: In function ‘account_dialog_done’
xdg-desktop-portal-gtk-1.15.3/src/account.c:87:33: warning[-Wunused-parameter]: unused parameter ‘widget’
#   87 | account_dialog_done (GtkWidget *widget,
#      |                      ~~~~~~~~~~~^~~~~~
#   85|   
#   86|   static void
#   87|-> account_dialog_done (GtkWidget *widget,
#   88|                        int response,
#   89|                        const char *user_name,

Error: COMPILER_WARNING (CWE-563): [#def7]
xdg-desktop-portal-gtk-1.15.3/src/account.c: scope_hint: In function ‘handle_close’
xdg-desktop-portal-gtk-1.15.3/src/account.c:126:31: warning[-Wunused-parameter]: unused parameter ‘object’
#  126 | handle_close (XdpImplRequest *object,
#      |               ~~~~~~~~~~~~~~~~^~~~~~
#  124|   
#  125|   static gboolean
#  126|-> handle_close (XdpImplRequest *object,
#  127|                 GDBusMethodInvocation *invocation,
#  128|                 AccountDialogHandle *handle)

Error: COMPILER_WARNING (CWE-563): [#def8]
xdg-desktop-portal-gtk-1.15.3/src/account.c:127:38: warning[-Wunused-parameter]: unused parameter ‘invocation’
#  127 |               GDBusMethodInvocation *invocation,
#      |               ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~
#  125|   static gboolean
#  126|   handle_close (XdpImplRequest *object,
#  127|->               GDBusMethodInvocation *invocation,
#  128|                 AccountDialogHandle *handle)
#  129|   {

Error: COMPILER_WARNING (CWE-563): [#def9]
xdg-desktop-portal-gtk-1.15.3/src/accountdialog.c: scope_hint: In function ‘account_dialog_delete_event’
xdg-desktop-portal-gtk-1.15.3/src/accountdialog.c:61:62: warning[-Wunused-parameter]: unused parameter ‘event’
#   61 | account_dialog_delete_event (GtkWidget *dialog, GdkEventAny *event)
#      |                                                 ~~~~~~~~~~~~~^~~~~
#   59|   
#   60|   static gboolean
#   61|-> account_dialog_delete_event (GtkWidget *dialog, GdkEventAny *event)
#   62|   {
#   63|     gtk_widget_hide (dialog);

Error: COMPILER_WARNING (CWE-563): [#def10]
xdg-desktop-portal-gtk-1.15.3/src/appchooser.c: scope_hint: In function ‘handle_update_choices’
xdg-desktop-portal-gtk-1.15.3/src/appchooser.c:231:43: warning[-Wunused-parameter]: unused parameter ‘object’
#  231 | handle_update_choices (XdpImplAppChooser *object,
#      |                        ~~~~~~~~~~~~~~~~~~~^~~~~~
#  229|   
#  230|   static gboolean
#  231|-> handle_update_choices (XdpImplAppChooser *object,
#  232|                          GDBusMethodInvocation *invocation,
#  233|                          const char *arg_handle,

Error: COMPILER_WARNING (CWE-563): [#def11]
xdg-desktop-portal-gtk-1.15.3/src/appchooserdialog.c: scope_hint: In function ‘update_header’
xdg-desktop-portal-gtk-1.15.3/src/appchooserdialog.c:79:31: warning[-Wunused-parameter]: unused parameter ‘data’
#   79 |                gpointer       data)
#      |                ~~~~~~~~~~~~~~~^~~~
#   77|   update_header (GtkListBoxRow *row,
#   78|                  GtkListBoxRow *before,
#   79|->                gpointer       data)
#   80|   {
#   81|     if (before != NULL &&

Error: COMPILER_WARNING (CWE-563): [#def12]
xdg-desktop-portal-gtk-1.15.3/src/appchooserdialog.c: scope_hint: In function ‘row_activated’
xdg-desktop-portal-gtk-1.15.3/src/appchooserdialog.c:150:28: warning[-Wunused-parameter]: unused parameter ‘list’
#  150 | row_activated (GtkListBox *list,
#      |                ~~~~~~~~~~~~^~~~
#  148|   
#  149|   static void
#  150|-> row_activated (GtkListBox *list,
#  151|                  GtkWidget *row,
#  152|                  AppChooserDialog *dialog)

Error: COMPILER_WARNING (CWE-563): [#def13]
xdg-desktop-portal-gtk-1.15.3/src/appchooserdialog.c: scope_hint: In function ‘row_selected’
xdg-desktop-portal-gtk-1.15.3/src/appchooserdialog.c:168:27: warning[-Wunused-parameter]: unused parameter ‘list’
#  168 | row_selected (GtkListBox *list,
#      |               ~~~~~~~~~~~~^~~~
#  166|   
#  167|   static void
#  168|-> row_selected (GtkListBox *list,
#  169|                 GtkWidget *row,
#  170|                 AppChooserDialog *dialog)

Error: COMPILER_WARNING (CWE-563): [#def14]
xdg-desktop-portal-gtk-1.15.3/src/appchooserdialog.c: scope_hint: In function ‘cancel_clicked’
xdg-desktop-portal-gtk-1.15.3/src/appchooserdialog.c:177:28: warning[-Wunused-parameter]: unused parameter ‘button’
#  177 | cancel_clicked (GtkWidget *button,
#      |                 ~~~~~~~~~~~^~~~~~
#  175|   
#  176|   static void
#  177|-> cancel_clicked (GtkWidget *button,
#  178|                   AppChooserDialog *dialog)
#  179|   {

Error: COMPILER_WARNING (CWE-563): [#def15]
xdg-desktop-portal-gtk-1.15.3/src/appchooserdialog.c: scope_hint: In function ‘open_clicked’
xdg-desktop-portal-gtk-1.15.3/src/appchooserdialog.c:184:26: warning[-Wunused-parameter]: unused parameter ‘button’
#  184 | open_clicked (GtkWidget *button,
#      |               ~~~~~~~~~~~^~~~~~
#  182|   
#  183|   static void
#  184|-> open_clicked (GtkWidget *button,
#  185|                 AppChooserDialog *dialog)
#  186|   {

Error: COMPILER_WARNING (CWE-563): [#def16]
xdg-desktop-portal-gtk-1.15.3/src/appchooserdialog.c: scope_hint: In function ‘find_in_software’
xdg-desktop-portal-gtk-1.15.3/src/appchooserdialog.c:233:30: warning[-Wunused-parameter]: unused parameter ‘button’
#  233 | find_in_software (GtkWidget *button,
#      |                   ~~~~~~~~~~~^~~~~~
#  231|   
#  232|   static void
#  233|-> find_in_software (GtkWidget *button,
#  234|                     AppChooserDialog *dialog)
#  235|   {

Error: COMPILER_WARNING (CWE-563): [#def17]
xdg-desktop-portal-gtk-1.15.3/src/appchooserdialog.c: scope_hint: In function ‘app_chooser_delete_event’
xdg-desktop-portal-gtk-1.15.3/src/appchooserdialog.c:240:59: warning[-Wunused-parameter]: unused parameter ‘event’
#  240 | app_chooser_delete_event (GtkWidget *dialog, GdkEventAny *event)
#      |                                              ~~~~~~~~~~~~~^~~~~
#  238|   
#  239|   static gboolean
#  240|-> app_chooser_delete_event (GtkWidget *dialog, GdkEventAny *event)
#  241|   {
#  242|     close_dialog (APP_CHOOSER_DIALOG (dialog), NULL);

Error: COMPILER_WARNING (CWE-195): [#def18]
xdg-desktop-portal-gtk-1.15.3/src/appchooserdialog.c: scope_hint: In function ‘ensure_default_in_initial_list’
xdg-desktop-portal-gtk-1.15.3/src/appchooserdialog.c:338:33: warning[-Wsign-compare]: comparison of integer expressions of different signedness: ‘int’ and ‘guint’ {aka ‘unsigned int’}
#  338 |   for (i = INITIAL_LIST_SIZE; i < n_choices; i++)
#      |                                 ^
#  336|       }
#  337|   
#  338|->   for (i = INITIAL_LIST_SIZE; i < n_choices; i++)
#  339|       {
#  340|         if (strcmp (choices[i], default_id) == 0)

Error: COMPILER_WARNING (CWE-563): [#def19]
xdg-desktop-portal-gtk-1.15.3/src/appchooserdialog.c: scope_hint: In function ‘more_pressed’
xdg-desktop-portal-gtk-1.15.3/src/appchooserdialog.c:353:37: warning[-Wunused-parameter]: unused parameter ‘gesture’
#  353 | more_pressed (GtkGestureMultiPress *gesture,
#      |               ~~~~~~~~~~~~~~~~~~~~~~^~~~~~~
#  351|   
#  352|   static void
#  353|-> more_pressed (GtkGestureMultiPress *gesture,
#  354|                 int n_press,
#  355|                 double x,

Error: COMPILER_WARNING (CWE-563): [#def20]
xdg-desktop-portal-gtk-1.15.3/src/appchooserdialog.c:355:22: warning[-Wunused-parameter]: unused parameter ‘x’
#  355 |               double x,
#      |               ~~~~~~~^
#  353|   more_pressed (GtkGestureMultiPress *gesture,
#  354|                 int n_press,
#  355|->               double x,
#  356|                 double y,
#  357|                 AppChooserDialog *dialog)

Error: COMPILER_WARNING (CWE-563): [#def21]
xdg-desktop-portal-gtk-1.15.3/src/dynamic-launcher.c: scope_hint: In function ‘handle_prepare_install_response’
xdg-desktop-portal-gtk-1.15.3/src/dynamic-launcher.c:140:45: warning[-Wunused-parameter]: unused parameter ‘dialog’
#  140 | handle_prepare_install_response (GtkDialog *dialog,
#      |                                  ~~~~~~~~~~~^~~~~~
#  138|   
#  139|   static void
#  140|-> handle_prepare_install_response (GtkDialog *dialog,
#  141|                                    gint       response,
#  142|                                    gpointer   data)

Error: COMPILER_WARNING (CWE-563): [#def22]
xdg-desktop-portal-gtk-1.15.3/src/dynamic-launcher.c: scope_hint: In function ‘handle_request_install_token’
xdg-desktop-portal-gtk-1.15.3/src/dynamic-launcher.c:355:55: warning[-Wunused-parameter]: unused parameter ‘arg_options’
#  355 |                               GVariant               *arg_options)
#      |                               ~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~
#  353|                                 GDBusMethodInvocation  *invocation,
#  354|                                 const char             *arg_app_id,
#  355|->                               GVariant               *arg_options)
#  356|   {
#  357|     /* Generally these should be allowed in each desktop specific x-d-p backend,

Error: COMPILER_WARNING (CWE-563): [#def23]
xdg-desktop-portal-gtk-1.15.3/src/email.c: scope_hint: In function ‘handle_compose_email’
xdg-desktop-portal-gtk-1.15.3/src/email.c:127:35: warning[-Wunused-parameter]: unused parameter ‘arg_parent_window’
#  127 |                       const char *arg_parent_window,
#      |                       ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~
#  125|                         const char *arg_handle,
#  126|                         const char *arg_app_id,
#  127|->                       const char *arg_parent_window,
#  128|                         GVariant *arg_options)
#  129|   {

Error: COMPILER_WARNING (CWE-563): [#def24]
xdg-desktop-portal-gtk-1.15.3/src/externalwindow-wayland.c: scope_hint: In function ‘external_window_wayland_init’
xdg-desktop-portal-gtk-1.15.3/src/externalwindow-wayland.c:105:54: warning[-Wunused-parameter]: unused parameter ‘external_window_wayland’
#  105 | external_window_wayland_init (ExternalWindowWayland *external_window_wayland)
#      |                               ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~
#  103|   
#  104|   static void
#  105|-> external_window_wayland_init (ExternalWindowWayland *external_window_wayland)
#  106|   {
#  107|   }

Error: COMPILER_WARNING (CWE-563): [#def25]
xdg-desktop-portal-gtk-1.15.3/src/externalwindow-x11.c: scope_hint: In function ‘external_window_x11_init’
xdg-desktop-portal-gtk-1.15.3/src/externalwindow-x11.c:123:46: warning[-Wunused-parameter]: unused parameter ‘external_window_x11’
#  123 | external_window_x11_init (ExternalWindowX11 *external_window_x11)
#      |                           ~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~
#  121|   
#  122|   static void
#  123|-> external_window_x11_init (ExternalWindowX11 *external_window_x11)
#  124|   {
#  125|   }

Error: COMPILER_WARNING (CWE-563): [#def26]
xdg-desktop-portal-gtk-1.15.3/src/externalwindow.c: scope_hint: In function ‘external_window_init’
xdg-desktop-portal-gtk-1.15.3/src/externalwindow.c:142:39: warning[-Wunused-parameter]: unused parameter ‘external_window’
#  142 | external_window_init (ExternalWindow *external_window)
#      |                       ~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~
#  140|   
#  141|   static void
#  142|-> external_window_init (ExternalWindow *external_window)
#  143|   {
#  144|   }

Error: COMPILER_WARNING (CWE-563): [#def27]
xdg-desktop-portal-gtk-1.15.3/src/fdonotification.c: scope_hint: In function ‘notify_signal’
xdg-desktop-portal-gtk-1.15.3/src/fdonotification.c:94:28: warning[-Wunused-parameter]: unused parameter ‘sender_name’
#   94 |                const char *sender_name,
#      |                ~~~~~~~~~~~~^~~~~~~~~~~
#   92|   static void
#   93|   notify_signal (GDBusConnection *connection,
#   94|->                const char *sender_name,
#   95|                  const char *object_path,
#   96|                  const char *interface_name,

Error: COMPILER_WARNING (CWE-563): [#def28]
xdg-desktop-portal-gtk-1.15.3/src/fdonotification.c:95:28: warning[-Wunused-parameter]: unused parameter ‘object_path’
#   95 |                const char *object_path,
#      |                ~~~~~~~~~~~~^~~~~~~~~~~
#   93|   notify_signal (GDBusConnection *connection,
#   94|                  const char *sender_name,
#   95|->                const char *object_path,
#   96|                  const char *interface_name,
#   97|                  const char *signal_name,

Error: COMPILER_WARNING (CWE-563): [#def29]
xdg-desktop-portal-gtk-1.15.3/src/fdonotification.c:96:28: warning[-Wunused-parameter]: unused parameter ‘interface_name’
#   96 |                const char *interface_name,
#      |                ~~~~~~~~~~~~^~~~~~~~~~~~~~
#   94|                  const char *sender_name,
#   95|                  const char *object_path,
#   96|->                const char *interface_name,
#   97|                  const char *signal_name,
#   98|                  GVariant *parameters,

Error: COMPILER_WARNING (CWE-563): [#def30]
xdg-desktop-portal-gtk-1.15.3/src/fdonotification.c:99:25: warning[-Wunused-parameter]: unused parameter ‘user_data’
#   99 |                gpointer user_data)
#      |                ~~~~~~~~~^~~~~~~~~
#   97|                  const char *signal_name,
#   98|                  GVariant *parameters,
#   99|->                gpointer user_data)
#  100|   {
#  101|     guint32 id = 0;

Error: COMPILER_WARNING (CWE-195): [#def31]
xdg-desktop-portal-gtk-1.15.3/src/filechooser.c: scope_hint: In function ‘deserialize_choice’
xdg-desktop-portal-gtk-1.15.3/src/filechooser.c:309:21: warning[-Wsign-compare]: comparison of integer expressions of different signedness: ‘int’ and ‘gsize’ {aka ‘long unsigned int’}
#  309 |       for (i = 0; i < g_variant_n_children (choices); i++)
#      |                     ^
#  307|         gtk_container_add (GTK_CONTAINER (box), combo);
#  308|   
#  309|->       for (i = 0; i < g_variant_n_children (choices); i++)
#  310|           {
#  311|             const char *id;

Error: COMPILER_WARNING (CWE-195): [#def32]
xdg-desktop-portal-gtk-1.15.3/src/filechooser.c: scope_hint: In function ‘handle_open’
xdg-desktop-portal-gtk-1.15.3/src/filechooser.c:530:21: warning[-Wsign-compare]: comparison of integer expressions of different signedness: ‘int’ and ‘gsize’ {aka ‘long unsigned int’}
#  530 |       for (i = 0; i < g_variant_n_children (choices); i++)
#      |                     ^
#  528|         box = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 12);
#  529|         gtk_widget_show (box);
#  530|->       for (i = 0; i < g_variant_n_children (choices); i++)
#  531|           {
#  532|             GVariant *value = g_variant_get_child_value (choices, i);

Error: COMPILER_WARNING (CWE-563): [#def33]
xdg-desktop-portal-gtk-1.15.3/src/inhibit.c: scope_hint: In function ‘uninhibit_done_gnome’
xdg-desktop-portal-gtk-1.15.3/src/inhibit.c:41:32: warning[-Wunused-parameter]: unused parameter ‘source’
#   41 | uninhibit_done_gnome (GObject *source,
#      |                       ~~~~~~~~~^~~~~~
#   39|   
#   40|   static void
#   41|-> uninhibit_done_gnome (GObject *source,
#   42|                         GAsyncResult *result,
#   43|                         gpointer data)

Error: COMPILER_WARNING (CWE-563): [#def34]
xdg-desktop-portal-gtk-1.15.3/src/inhibit.c:43:32: warning[-Wunused-parameter]: unused parameter ‘data’
#   43 |                       gpointer data)
#      |                       ~~~~~~~~~^~~~
#   41|   uninhibit_done_gnome (GObject *source,
#   42|                         GAsyncResult *result,
#   43|->                       gpointer data)
#   44|   {
#   45|     g_autoptr(GError) error = NULL;

Error: COMPILER_WARNING (CWE-563): [#def35]
xdg-desktop-portal-gtk-1.15.3/src/inhibit.c: scope_hint: In function ‘handle_close_gnome’
xdg-desktop-portal-gtk-1.15.3/src/inhibit.c:54:30: warning[-Wunused-parameter]: unused parameter ‘data’
#   54 |                     gpointer data)
#      |                     ~~~~~~~~~^~~~
#   52|   handle_close_gnome (XdpImplRequest *object,
#   53|                       GDBusMethodInvocation *invocation,
#   54|->                     gpointer data)
#   55|   {
#   56|     Request *request = (Request *)object;

Error: COMPILER_WARNING (CWE-563): [#def36]
xdg-desktop-portal-gtk-1.15.3/src/inhibit.c: scope_hint: In function ‘inhibit_done_gnome’
xdg-desktop-portal-gtk-1.15.3/src/inhibit.c:77:30: warning[-Wunused-parameter]: unused parameter ‘source’
#   77 | inhibit_done_gnome (GObject *source,
#      |                     ~~~~~~~~~^~~~~~
#   75|   
#   76|   static void
#   77|-> inhibit_done_gnome (GObject *source,
#   78|                       GAsyncResult *result,
#   79|                       gpointer data)

Error: COMPILER_WARNING (CWE-563): [#def37]
xdg-desktop-portal-gtk-1.15.3/src/inhibit.c: scope_hint: In function ‘handle_inhibit_gnome’
xdg-desktop-portal-gtk-1.15.3/src/inhibit.c:102:36: warning[-Wunused-parameter]: unused parameter ‘arg_window’
#  102 |                       const gchar *arg_window,
#      |                       ~~~~~~~~~~~~~^~~~~~~~~~
#  100|                         const gchar *arg_handle,
#  101|                         const gchar *arg_app_id,
#  102|->                       const gchar *arg_window,
#  103|                         guint arg_flags,
#  104|                         GVariant *arg_options)

Error: COMPILER_WARNING (CWE-563): [#def38]
xdg-desktop-portal-gtk-1.15.3/src/inhibit.c: scope_hint: In function ‘query_end_response’
xdg-desktop-portal-gtk-1.15.3/src/inhibit.c:188:30: warning[-Wunused-parameter]: unused parameter ‘data’
#  188 | query_end_response (gpointer data)
#      |                     ~~~~~~~~~^~~~
#  186|   
#  187|   static gboolean
#  188|-> query_end_response (gpointer data)
#  189|   {
#  190|     g_debug ("1 second wait is over");

Error: COMPILER_WARNING (CWE-563): [#def39]
xdg-desktop-portal-gtk-1.15.3/src/inhibit.c: scope_hint: In function ‘client_proxy_signal’
xdg-desktop-portal-gtk-1.15.3/src/inhibit.c:229:35: warning[-Wunused-parameter]: unused parameter ‘sender_name’
#  229 |                      const gchar *sender_name,
#      |                      ~~~~~~~~~~~~~^~~~~~~~~~~
#  227|   static void
#  228|   client_proxy_signal (GDBusProxy  *proxy,
#  229|->                      const gchar *sender_name,
#  230|                        const gchar *signal_name,
#  231|                        GVariant    *parameters,

Error: COMPILER_WARNING (CWE-563): [#def40]
xdg-desktop-portal-gtk-1.15.3/src/inhibit.c:231:35: warning[-Wunused-parameter]: unused parameter ‘parameters’
#  231 |                      GVariant    *parameters,
#      |                      ~~~~~~~~~~~~~^~~~~~~~~~
#  229|                        const gchar *sender_name,
#  230|                        const gchar *signal_name,
#  231|->                      GVariant    *parameters,
#  232|                        gpointer     user_data)
#  233|   {

Error: COMPILER_WARNING (CWE-563): [#def41]
xdg-desktop-portal-gtk-1.15.3/src/inhibit.c:232:35: warning[-Wunused-parameter]: unused parameter ‘user_data’
#  232 |                      gpointer     user_data)
#      |                      ~~~~~~~~~~~~~^~~~~~~~~
#  230|                        const gchar *signal_name,
#  231|                        GVariant    *parameters,
#  232|->                      gpointer     user_data)
#  233|   {
#  234|     if (g_str_equal (signal_name, "QueryEndSession"))

Error: COMPILER_WARNING (CWE-563): [#def42]
xdg-desktop-portal-gtk-1.15.3/src/inhibit.c: scope_hint: In function ‘uninhibit_done_fdo’
xdg-desktop-portal-gtk-1.15.3/src/inhibit.c:263:30: warning[-Wunused-parameter]: unused parameter ‘source’
#  263 | uninhibit_done_fdo (GObject *source,
#      |                     ~~~~~~~~~^~~~~~
#  261|   
#  262|   static void
#  263|-> uninhibit_done_fdo (GObject *source,
#  264|                       GAsyncResult *result,
#  265|                       gpointer data)

Error: COMPILER_WARNING (CWE-563): [#def43]
xdg-desktop-portal-gtk-1.15.3/src/inhibit.c:265:30: warning[-Wunused-parameter]: unused parameter ‘data’
#  265 |                     gpointer data)
#      |                     ~~~~~~~~~^~~~
#  263|   uninhibit_done_fdo (GObject *source,
#  264|                       GAsyncResult *result,
#  265|->                     gpointer data)
#  266|   {
#  267|     g_autoptr(GError) error = NULL;

Error: COMPILER_WARNING (CWE-563): [#def44]
xdg-desktop-portal-gtk-1.15.3/src/inhibit.c: scope_hint: In function ‘handle_close_fdo’
xdg-desktop-portal-gtk-1.15.3/src/inhibit.c:278:28: warning[-Wunused-parameter]: unused parameter ‘data’
#  278 |                   gpointer data)
#      |                   ~~~~~~~~~^~~~
#  276|   handle_close_fdo (XdpImplRequest *object,
#  277|                     GDBusMethodInvocation *invocation,
#  278|->                   gpointer data)
#  279|   {
#  280|     Request *request = (Request *)object;

Error: COMPILER_WARNING (CWE-563): [#def45]
xdg-desktop-portal-gtk-1.15.3/src/inhibit.c: scope_hint: In function ‘inhibit_done_fdo’
xdg-desktop-portal-gtk-1.15.3/src/inhibit.c:305:28: warning[-Wunused-parameter]: unused parameter ‘source’
#  305 | inhibit_done_fdo (GObject *source,
#      |                   ~~~~~~~~~^~~~~~
#  303|   
#  304|   static void
#  305|-> inhibit_done_fdo (GObject *source,
#  306|                     GAsyncResult *result,
#  307|                     gpointer data)

Error: COMPILER_WARNING (CWE-563): [#def46]
xdg-desktop-portal-gtk-1.15.3/src/inhibit.c: scope_hint: In function ‘handle_inhibit_fdo’
xdg-desktop-portal-gtk-1.15.3/src/inhibit.c:337:34: warning[-Wunused-parameter]: unused parameter ‘arg_window’
#  337 |                     const gchar *arg_window,
#      |                     ~~~~~~~~~~~~~^~~~~~~~~~
#  335|                       const gchar *arg_handle,
#  336|                       const gchar *arg_app_id,
#  337|->                     const gchar *arg_window,
#  338|                       guint arg_flags,
#  339|                       GVariant *arg_options)

Error: COMPILER_WARNING (CWE-563): [#def47]
xdg-desktop-portal-gtk-1.15.3/src/inhibit.c: scope_hint: In function ‘inhibit_session_init’
xdg-desktop-portal-gtk-1.15.3/src/inhibit.c:460:39: warning[-Wunused-parameter]: unused parameter ‘inhibit_session’
#  460 | inhibit_session_init (InhibitSession *inhibit_session)
#      |                       ~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~
#  458|   
#  459|   static void
#  460|-> inhibit_session_init (InhibitSession *inhibit_session)
#  461|   {
#  462|   }

Error: COMPILER_WARNING (CWE-563): [#def48]
xdg-desktop-portal-gtk-1.15.3/src/inhibit.c: scope_hint: In function ‘inhibit_session_new’
xdg-desktop-portal-gtk-1.15.3/src/inhibit.c:478:34: warning[-Wunused-parameter]: unused parameter ‘app_id’
#  478 | inhibit_session_new (const char *app_id,
#      |                      ~~~~~~~~~~~~^~~~~~
#  476|   
#  477|   static InhibitSession *
#  478|-> inhibit_session_new (const char *app_id,
#  479|                        const char *session_handle)
#  480|   {

Error: COMPILER_WARNING (CWE-563): [#def49]
xdg-desktop-portal-gtk-1.15.3/src/inhibit.c: scope_hint: In function ‘handle_create_monitor’
xdg-desktop-portal-gtk-1.15.3/src/inhibit.c:497:36: warning[-Wunused-parameter]: unused parameter ‘arg_handle’
#  497 |                        const char *arg_handle,
#      |                        ~~~~~~~~~~~~^~~~~~~~~~
#  495|   handle_create_monitor (XdpImplInhibit *object,
#  496|                          GDBusMethodInvocation *invocation,
#  497|->                        const char *arg_handle,
#  498|                          const char *arg_session_handle,
#  499|                          const char *arg_app_id,

Error: COMPILER_WARNING (CWE-563): [#def50]
xdg-desktop-portal-gtk-1.15.3/src/inhibit.c:500:36: warning[-Wunused-parameter]: unused parameter ‘arg_window’
#  500 |                        const char *arg_window)
#      |                        ~~~~~~~~~~~~^~~~~~~~~~
#  498|                          const char *arg_session_handle,
#  499|                          const char *arg_app_id,
#  500|->                        const char *arg_window)
#  501|   {
#  502|     g_autoptr(GError) error = NULL;

Error: COMPILER_WARNING (CWE-563): [#def51]
xdg-desktop-portal-gtk-1.15.3/src/inhibit.c: scope_hint: In function ‘global_active_changed_cb’
xdg-desktop-portal-gtk-1.15.3/src/inhibit.c:547:36: warning[-Wunused-parameter]: unused parameter ‘object’
#  547 | global_active_changed_cb (GObject *object,
#      |                           ~~~~~~~~~^~~~~~
#  545|   
#  546|   static void
#  547|-> global_active_changed_cb (GObject *object,
#  548|                             gboolean active)
#  549|   {

Error: COMPILER_WARNING (CWE-563): [#def52]
xdg-desktop-portal-gtk-1.15.3/src/notification.c: scope_hint: In function ‘activate_action’
xdg-desktop-portal-gtk-1.15.3/src/notification.c:51:27: warning[-Wunused-parameter]: unused parameter ‘data’
#   51 |                  gpointer data)
#      |                  ~~~~~~~~~^~~~
#   49|                    GVariant *parameter,
#   50|                    const char *activation_token,
#   51|->                  gpointer data)
#   52|   {
#   53|     g_autofree char *object_path = NULL;

Error: COMPILER_WARNING (CWE-563): [#def53]
xdg-desktop-portal-gtk-1.15.3/src/print.c: scope_hint: In function ‘handle_print_response’
xdg-desktop-portal-gtk-1.15.3/src/print.c:375:35: warning[-Wunused-parameter]: unused parameter ‘dialog’
#  375 | handle_print_response (GtkDialog *dialog,
#      |                        ~~~~~~~~~~~^~~~~~
#  373|   
#  374|   static void
#  375|-> handle_print_response (GtkDialog *dialog,
#  376|                          gint response,
#  377|                          gpointer data)

Error: COMPILER_WARNING (CWE-563): [#def54]
xdg-desktop-portal-gtk-1.15.3/src/print.c: scope_hint: In function ‘handle_prepare_print_response’
xdg-desktop-portal-gtk-1.15.3/src/print.c:605:43: warning[-Wunused-parameter]: unused parameter ‘dialog’
#  605 | handle_prepare_print_response (GtkDialog *dialog,
#      |                                ~~~~~~~~~~~^~~~~~
#  603|   
#  604|   static void
#  605|-> handle_prepare_print_response (GtkDialog *dialog,
#  606|                                  gint response,
#  607|                                  gpointer data)

Error: COMPILER_WARNING (CWE-563): [#def55]
xdg-desktop-portal-gtk-1.15.3/src/request.c: scope_hint: In function ‘request_init’
xdg-desktop-portal-gtk-1.15.3/src/request.c:53:24: warning[-Wunused-parameter]: unused parameter ‘request’
#   53 | request_init (Request *request)
#      |               ~~~~~~~~~^~~~~~~
#   51|   
#   52|   static void
#   53|-> request_init (Request *request)
#   54|   {
#   55|   }

Error: COMPILER_WARNING (CWE-563): [#def56]
xdg-desktop-portal-gtk-1.15.3/src/session.c: scope_hint: In function ‘session_init’
xdg-desktop-portal-gtk-1.15.3/src/session.c:169:24: warning[-Wunused-parameter]: unused parameter ‘session’
#  169 | session_init (Session *session)
#      |               ~~~~~~~~~^~~~~~~
#  167|   
#  168|   static void
#  169|-> session_init (Session *session)
#  170|   {
#  171|   }

Error: COMPILER_WARNING (CWE-563): [#def57]
xdg-desktop-portal-gtk-1.15.3/src/settings.c: scope_hint: In function ‘settings_handle_read_all’
xdg-desktop-portal-gtk-1.15.3/src/settings.c:120:50: warning[-Wunused-parameter]: unused parameter ‘object’
#  120 | settings_handle_read_all (XdpImplSettings       *object,
#      |                           ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~
#  118|   
#  119|   static gboolean
#  120|-> settings_handle_read_all (XdpImplSettings       *object,
#  121|                             GDBusMethodInvocation *invocation,
#  122|                             const char * const    *arg_namespaces,

Error: COMPILER_WARNING (CWE-563): [#def58]
xdg-desktop-portal-gtk-1.15.3/src/settings.c:123:50: warning[-Wunused-parameter]: unused parameter ‘data’
#  123 |                           gpointer               data)
#      |                           ~~~~~~~~~~~~~~~~~~~~~~~^~~~
#  121|                             GDBusMethodInvocation *invocation,
#  122|                             const char * const    *arg_namespaces,
#  123|->                           gpointer               data)
#  124|   {
#  125|     g_autoptr(GVariantBuilder) builder = g_variant_builder_new (G_VARIANT_TYPE ("(a{sa{sv}})"));

Error: COMPILER_WARNING (CWE-563): [#def59]
xdg-desktop-portal-gtk-1.15.3/src/settings.c: scope_hint: In function ‘settings_handle_read’
xdg-desktop-portal-gtk-1.15.3/src/settings.c:185:46: warning[-Wunused-parameter]: unused parameter ‘object’
#  185 | settings_handle_read (XdpImplSettings       *object,
#      |                       ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~
#  183|   
#  184|   static gboolean
#  185|-> settings_handle_read (XdpImplSettings       *object,
#  186|                         GDBusMethodInvocation *invocation,
#  187|                         const char            *arg_namespace,

Error: COMPILER_WARNING (CWE-563): [#def60]
xdg-desktop-portal-gtk-1.15.3/src/settings.c:189:46: warning[-Wunused-parameter]: unused parameter ‘data’
#  189 |                       gpointer               data)
#      |                       ~~~~~~~~~~~~~~~~~~~~~~~^~~~
#  187|                         const char            *arg_namespace,
#  188|                         const char            *arg_key,
#  189|->                       gpointer               data)
#  190|   {
#  191|     g_debug ("Read %s %s", arg_namespace, arg_key);

Error: COMPILER_WARNING (CWE-563): [#def61]
xdg-desktop-portal-gtk-1.15.3/src/settings.c: scope_hint: In function ‘changed_signal_user_data_destroy’
xdg-desktop-portal-gtk-1.15.3/src/settings.c:261:45: warning[-Wunused-parameter]: unused parameter ‘closure’
#  261 |                                   GClosure *closure)
#      |                                   ~~~~~~~~~~^~~~~~~
#  259|   static void
#  260|   changed_signal_user_data_destroy (gpointer  data,
#  261|->                                   GClosure *closure)
#  262|   {
#  263|     g_free (data);

Error: COMPILER_WARNING (CWE-563): [#def62]
xdg-desktop-portal-gtk-1.15.3/src/settings.c: scope_hint: In function ‘fontconfig_changed’
xdg-desktop-portal-gtk-1.15.3/src/settings.c:342:38: warning[-Wunused-parameter]: unused parameter ‘monitor’
#  342 | fontconfig_changed (FcMonitor       *monitor,
#      |                     ~~~~~~~~~~~~~~~~~^~~~~~~
#  340|   
#  341|   static void
#  342|-> fontconfig_changed (FcMonitor       *monitor,
#  343|                       XdpImplSettings *impl)
#  344|   {

Error: COMPILER_WARNING (CWE-563): [#def63]
xdg-desktop-portal-gtk-1.15.3/src/testappchooser.c: scope_hint: In function ‘close_cb’
xdg-desktop-portal-gtk-1.15.3/src/testappchooser.c:6:22: warning[-Wunused-parameter]: unused parameter ‘data’
#    6 |           gpointer   data)
#      |           ~~~~~~~~~~~^~~~
#    4|   static void
#    5|   close_cb (AppChooserDialog *dialog,
#    6|->           gpointer   data)
#    7|   {
#    8|           GAppInfo *info;

Error: COMPILER_WARNING (CWE-563): [#def64]
xdg-desktop-portal-gtk-1.15.3/src/xdg-desktop-portal-gtk.c: scope_hint: In function ‘message_handler’
xdg-desktop-portal-gtk-1.15.3/src/xdg-desktop-portal-gtk.c:87:31: warning[-Wunused-parameter]: unused parameter ‘log_domain’
#   87 | message_handler (const gchar *log_domain,
#      |                  ~~~~~~~~~~~~~^~~~~~~~~~
#   85|   
#   86|   static void
#   87|-> message_handler (const gchar *log_domain,
#   88|                    GLogLevelFlags log_level,
#   89|                    const gchar *message,

Error: COMPILER_WARNING (CWE-563): [#def65]
xdg-desktop-portal-gtk-1.15.3/src/xdg-desktop-portal-gtk.c:90:27: warning[-Wunused-parameter]: unused parameter ‘user_data’
#   90 |                  gpointer user_data)
#      |                  ~~~~~~~~~^~~~~~~~~
#   88|                    GLogLevelFlags log_level,
#   89|                    const gchar *message,
#   90|->                  gpointer user_data)
#   91|   {
#   92|     /* Make this look like normal console output */

Error: COMPILER_WARNING (CWE-563): [#def66]
xdg-desktop-portal-gtk-1.15.3/src/xdg-desktop-portal-gtk.c: scope_hint: In function ‘on_bus_acquired’
xdg-desktop-portal-gtk-1.15.3/src/xdg-desktop-portal-gtk.c:115:35: warning[-Wunused-parameter]: unused parameter ‘name’
#  115 |                  const gchar     *name,
#      |                  ~~~~~~~~~~~~~~~~~^~~~
#  113|   static void
#  114|   on_bus_acquired (GDBusConnection *connection,
#  115|->                  const gchar     *name,
#  116|                    gpointer         user_data)
#  117|   {

Error: COMPILER_WARNING (CWE-563): [#def67]
xdg-desktop-portal-gtk-1.15.3/src/xdg-desktop-portal-gtk.c:116:35: warning[-Wunused-parameter]: unused parameter ‘user_data’
#  116 |                  gpointer         user_data)
#      |                  ~~~~~~~~~~~~~~~~~^~~~~~~~~
#  114|   on_bus_acquired (GDBusConnection *connection,
#  115|                    const gchar     *name,
#  116|->                  gpointer         user_data)
#  117|   {
#  118|     GError *error = NULL;

Error: COMPILER_WARNING (CWE-563): [#def68]
xdg-desktop-portal-gtk-1.15.3/src/xdg-desktop-portal-gtk.c: scope_hint: In function ‘on_name_acquired’
xdg-desktop-portal-gtk-1.15.3/src/xdg-desktop-portal-gtk.c:202:36: warning[-Wunused-parameter]: unused parameter ‘connection’
#  202 | on_name_acquired (GDBusConnection *connection,
#      |                   ~~~~~~~~~~~~~~~~~^~~~~~~~~~
#  200|   
#  201|   static void
#  202|-> on_name_acquired (GDBusConnection *connection,
#  203|                     const gchar     *name,
#  204|                     gpointer         user_data)

Error: COMPILER_WARNING (CWE-563): [#def69]
xdg-desktop-portal-gtk-1.15.3/src/xdg-desktop-portal-gtk.c:203:36: warning[-Wunused-parameter]: unused parameter ‘name’
#  203 |                   const gchar     *name,
#      |                   ~~~~~~~~~~~~~~~~~^~~~
#  201|   static void
#  202|   on_name_acquired (GDBusConnection *connection,
#  203|->                   const gchar     *name,
#  204|                     gpointer         user_data)
#  205|   {

Error: COMPILER_WARNING (CWE-563): [#def70]
xdg-desktop-portal-gtk-1.15.3/src/xdg-desktop-portal-gtk.c:204:36: warning[-Wunused-parameter]: unused parameter ‘user_data’
#  204 |                   gpointer         user_data)
#      |                   ~~~~~~~~~~~~~~~~~^~~~~~~~~
#  202|   on_name_acquired (GDBusConnection *connection,
#  203|                     const gchar     *name,
#  204|->                   gpointer         user_data)
#  205|   {
#  206|     g_debug ("org.freedesktop.impl.portal.desktop.gtk acquired");

Error: COMPILER_WARNING (CWE-563): [#def71]
xdg-desktop-portal-gtk-1.15.3/src/xdg-desktop-portal-gtk.c: scope_hint: In function ‘on_name_lost’
xdg-desktop-portal-gtk-1.15.3/src/xdg-desktop-portal-gtk.c:210:32: warning[-Wunused-parameter]: unused parameter ‘connection’
#  210 | on_name_lost (GDBusConnection *connection,
#      |               ~~~~~~~~~~~~~~~~~^~~~~~~~~~
#  208|   
#  209|   static void
#  210|-> on_name_lost (GDBusConnection *connection,
#  211|                 const gchar     *name,
#  212|                 gpointer         user_data)

Error: COMPILER_WARNING (CWE-563): [#def72]
xdg-desktop-portal-gtk-1.15.3/src/xdg-desktop-portal-gtk.c:211:32: warning[-Wunused-parameter]: unused parameter ‘name’
#  211 |               const gchar     *name,
#      |               ~~~~~~~~~~~~~~~~~^~~~
#  209|   static void
#  210|   on_name_lost (GDBusConnection *connection,
#  211|->               const gchar     *name,
#  212|                 gpointer         user_data)
#  213|   {

Error: COMPILER_WARNING (CWE-563): [#def73]
xdg-desktop-portal-gtk-1.15.3/src/xdg-desktop-portal-gtk.c:212:32: warning[-Wunused-parameter]: unused parameter ‘user_data’
#  212 |               gpointer         user_data)
#      |               ~~~~~~~~~~~~~~~~~^~~~~~~~~
#  210|   on_name_lost (GDBusConnection *connection,
#  211|                 const gchar     *name,
#  212|->               gpointer         user_data)
#  213|   {
#  214|     g_main_loop_quit (loop);

Scan Properties

analyzer-version-clippy1.86.0
analyzer-version-cppcheck2.17.1
analyzer-version-gcc15.0.1
analyzer-version-gcc-analyzer15.0.1
analyzer-version-shellcheck0.10.0
analyzer-version-unicontrol0.0.2
enabled-pluginsclippy, cppcheck, gcc, shellcheck, unicontrol
exit-code0
hostip-172-16-1-174.us-west-2.compute.internal
known-false-positives/usr/share/csmock/known-false-positives.js
known-false-positives-rpmknown-false-positives-0.0.0.20250425.124705.g1c7c448.main-1.el9.noarch
mock-configfedora-rawhide-x86_64
project-namexdg-desktop-portal-gtk-1.15.3-1.fc43
store-results-to/tmp/tmpz6i47nz6/xdg-desktop-portal-gtk-1.15.3-1.fc43.tar.xz
time-created2025-04-25 15:59:57
time-finished2025-04-25 16:01:59
toolcsmock
tool-args'/usr/bin/csmock' '-r' 'fedora-rawhide-x86_64' '-t' 'unicontrol,cppcheck,gcc,clippy,shellcheck' '-o' '/tmp/tmpz6i47nz6/xdg-desktop-portal-gtk-1.15.3-1.fc43.tar.xz' '--gcc-analyze' '--unicontrol-notests' '--unicontrol-bidi-only' '--install' 'pam' '--gcc-analyzer-bin=/usr/bin/gcc' '/tmp/tmpz6i47nz6/xdg-desktop-portal-gtk-1.15.3-1.fc43.src.rpm'
tool-versioncsmock-3.8.1.20250422.172604.g26bc3d6-1.el9