Fixed defects

List of Defects

Error: COMPILER_WARNING (CWE-477): [#def1]
bamf-0.5.5-build/bamf-0.5.5/lib/libbamf/bamf-application.c: scope_hint: In function 'bamf_application_class_init'
bamf-0.5.5-build/bamf-0.5.5/lib/libbamf/bamf-application.c:714:3: warning[-Wdeprecated-declarations]: 'g_type_class_add_private' is deprecated
#  714 |   g_type_class_add_private (obj_class, sizeof (BamfApplicationPrivate));
#      |   ^~~~~~~~~~~~~~~~~~~~~~~~
/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.
bamf-0.5.5-build/bamf-0.5.5/lib/libbamf-private/bamf-gdbus-generated.h:12: included_from: Included from here.
bamf-0.5.5-build/bamf-0.5.5/lib/libbamf-private/bamf-private.h:23: included_from: Included from here.
bamf-0.5.5-build/bamf-0.5.5/lib/libbamf/bamf-application.c:38: 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,
#      |          ^~~~~~~~~~~~~~~~~~~~~~~~
#  712|     view_class->click_behavior = bamf_application_get_click_suggestion;
#  713|   
#  714|->   g_type_class_add_private (obj_class, sizeof (BamfApplicationPrivate));
#  715|   
#  716|     application_signals [DESKTOP_FILE_UPDATED] =

Error: COMPILER_WARNING: [#def2]
bamf-0.5.5-build/bamf-0.5.5/lib/libbamf/bamf-application.c: scope_hint: In function 'bamf_application_init'
bamf-0.5.5-build/bamf-0.5.5/lib/libbamf/bamf-application.c:746:13: warning: Deprecated pre-processor symbol: replace with "G_ADD_PRIVATE"
#  746 |   priv = self->priv = BAMF_APPLICATION_GET_PRIVATE (self);
#      |             ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~                   
#  744|     BamfApplicationPrivate *priv;
#  745|   
#  746|->   priv = self->priv = BAMF_APPLICATION_GET_PRIVATE (self);
#  747|     priv->show_stubs = -1;
#  748|   

Error: COMPILER_WARNING (CWE-477): [#def3]
bamf-0.5.5-build/bamf-0.5.5/lib/libbamf/bamf-control.c: scope_hint: In function 'bamf_control_class_init'
bamf-0.5.5-build/bamf-0.5.5/lib/libbamf/bamf-control.c:90:3: 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.
bamf-0.5.5-build/bamf-0.5.5/lib/libbamf-private/bamf-gdbus-generated.h:12: included_from: Included from here.
bamf-0.5.5-build/bamf-0.5.5/lib/libbamf-private/bamf-private.h:23: included_from: Included from here.
bamf-0.5.5-build/bamf-0.5.5/lib/libbamf/bamf-control.c:38: included_from: Included from here.
/usr/include/glib-2.0/gobject/gtype.h:1497:10: note: declared here
#   88|     obj_class->finalize = bamf_control_finalize;
#   89|   
#   90|->   g_type_class_add_private (obj_class, sizeof (BamfControlPrivate));
#   91|     obj_class->dispose = bamf_control_dispose;
#   92|   }

Error: COMPILER_WARNING: [#def4]
bamf-0.5.5-build/bamf-0.5.5/lib/libbamf/bamf-control.c: scope_hint: In function 'bamf_control_init'
bamf-0.5.5-build/bamf-0.5.5/lib/libbamf/bamf-control.c:100:13: warning: Deprecated pre-processor symbol: replace with "G_ADD_PRIVATE"
#   98|     GError           *error = NULL;
#   99|   
#  100|->   priv = self->priv = BAMF_CONTROL_GET_PRIVATE (self);
#  101|   
#  102|     priv->proxy = _bamf_dbus_control_proxy_new_for_bus_sync (G_BUS_TYPE_SESSION,

Error: COMPILER_WARNING (CWE-477): [#def5]
bamf-0.5.5-build/bamf-0.5.5/lib/libbamf/bamf-factory.c: scope_hint: In function 'bamf_factory_class_init'
bamf-0.5.5-build/bamf-0.5.5/lib/libbamf/bamf-factory.c:111:3: 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.
bamf-0.5.5-build/bamf-0.5.5/lib/libbamf-private/bamf-gdbus-generated.h:12: included_from: Included from here.
bamf-0.5.5-build/bamf-0.5.5/lib/libbamf-private/bamf-private.h:23: included_from: Included from here.
bamf-0.5.5-build/bamf-0.5.5/lib/libbamf/bamf-factory.c:38: included_from: Included from here.
/usr/include/glib-2.0/gobject/gtype.h:1497:10: note: declared here
#  109|     obj_class->finalize = bamf_factory_finalize;
#  110|   
#  111|->   g_type_class_add_private (obj_class, sizeof (BamfFactoryPrivate));
#  112|   }
#  113|   

Error: COMPILER_WARNING: [#def6]
bamf-0.5.5-build/bamf-0.5.5/lib/libbamf/bamf-factory.c: scope_hint: In function 'bamf_factory_init'
bamf-0.5.5-build/bamf-0.5.5/lib/libbamf/bamf-factory.c:118:13: warning: Deprecated pre-processor symbol: replace with "G_ADD_PRIVATE"
#  116|   bamf_factory_init (BamfFactory *self)
#  117|   {
#  118|->   self->priv = BAMF_FACTORY_GET_PRIVATE (self);
#  119|     self->priv->open_views = g_hash_table_new_full (g_str_hash, g_str_equal,
#  120|                                                     g_free, g_object_unref);

Error: COMPILER_WARNING (CWE-477): [#def7]
bamf-0.5.5-build/bamf-0.5.5/lib/libbamf/bamf-matcher.c: scope_hint: In function 'bamf_matcher_class_init'
bamf-0.5.5-build/bamf-0.5.5/lib/libbamf/bamf-matcher.c:90:3: 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.
bamf-0.5.5-build/bamf-0.5.5/lib/libbamf-private/bamf-gdbus-generated.h:12: included_from: Included from here.
bamf-0.5.5-build/bamf-0.5.5/lib/libbamf-private/bamf-private.h:23: included_from: Included from here.
bamf-0.5.5-build/bamf-0.5.5/lib/libbamf/bamf-matcher.c:38: included_from: Included from here.
/usr/include/glib-2.0/gobject/gtype.h:1497:10: note: declared here
#   88|     GObjectClass *obj_class = G_OBJECT_CLASS (klass);
#   89|   
#   90|->   g_type_class_add_private (obj_class, sizeof (BamfMatcherPrivate));
#   91|     obj_class->dispose = bamf_matcher_dispose;
#   92|     obj_class->finalize = bamf_matcher_finalize;

Error: COMPILER_WARNING: [#def8]
bamf-0.5.5-build/bamf-0.5.5/lib/libbamf/bamf-matcher.c: scope_hint: In function 'bamf_matcher_init'
bamf-0.5.5-build/bamf-0.5.5/lib/libbamf/bamf-matcher.c:282:13: warning: Deprecated pre-processor symbol: replace with "G_ADD_PRIVATE"
#  280|     GError *error = NULL;
#  281|   
#  282|->   priv = self->priv = BAMF_MATCHER_GET_PRIVATE (self);
#  283|     priv->cancellable = g_cancellable_new ();
#  284|     priv->proxy = _bamf_dbus_matcher_proxy_new_for_bus_sync (G_BUS_TYPE_SESSION,

Error: COMPILER_WARNING (CWE-477): [#def9]
bamf-0.5.5-build/bamf-0.5.5/lib/libbamf/bamf-tab.c: scope_hint: In function 'bamf_tab_class_init'
bamf-0.5.5-build/bamf-0.5.5/lib/libbamf/bamf-tab.c:173:3: warning[-Wdeprecated-declarations]: 'g_type_class_add_private' is deprecated
#  173 |   g_type_class_add_private (obj_class, sizeof(BamfTabPrivate));
#      |   ^~~~~~~~~~~~~~~~~~~~~~~~
/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.
bamf-0.5.5-build/bamf-0.5.5/lib/libbamf-private/bamf-gdbus-generated.h:12: included_from: Included from here.
bamf-0.5.5-build/bamf-0.5.5/lib/libbamf-private/bamf-private.h:23: included_from: Included from here.
bamf-0.5.5-build/bamf-0.5.5/lib/libbamf/bamf-tab.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,
#      |          ^~~~~~~~~~~~~~~~~~~~~~~~
#  171|     g_object_class_install_property (obj_class, PROP_IS_FOREGROUND_TAB, pspec);
#  172|   
#  173|->   g_type_class_add_private (obj_class, sizeof(BamfTabPrivate));
#  174|   }
#  175|   

Error: COMPILER_WARNING: [#def10]
bamf-0.5.5-build/bamf-0.5.5/lib/libbamf/bamf-tab.c: scope_hint: In function 'bamf_tab_init'
bamf-0.5.5-build/bamf-0.5.5/lib/libbamf/bamf-tab.c:179:13: warning: Deprecated pre-processor symbol: replace with "G_ADD_PRIVATE"
#  179 |   self->priv = BAMF_TAB_GET_PRIVATE (self);
#      |             ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~                                  
#  177|   bamf_tab_init (BamfTab *self)
#  178|   {
#  179|->   self->priv = BAMF_TAB_GET_PRIVATE (self);
#  180|   }
#  181|   

Error: COMPILER_WARNING (CWE-477): [#def11]
bamf-0.5.5-build/bamf-0.5.5/lib/libbamf/bamf-view.c: scope_hint: In function 'bamf_view_class_init'
bamf-0.5.5-build/bamf-0.5.5/lib/libbamf/bamf-view.c:946:3: 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.
bamf-0.5.5-build/bamf-0.5.5/lib/libbamf-private/bamf-gdbus-generated.h:12: included_from: Included from here.
bamf-0.5.5-build/bamf-0.5.5/lib/libbamf-private/bamf-private.h:23: included_from: Included from here.
bamf-0.5.5-build/bamf-0.5.5/lib/libbamf/bamf-view.c:38: included_from: Included from here.
/usr/include/glib-2.0/gobject/gtype.h:1497:10: note: declared here
#  944|     g_object_class_install_property (obj_class, PROP_USER_VISIBLE, properties[PROP_USER_VISIBLE]);
#  945|   
#  946|->   g_type_class_add_private (obj_class, sizeof (BamfViewPrivate));
#  947|   
#  948|     view_signals [ACTIVE_CHANGED] =

Error: COMPILER_WARNING: [#def12]
bamf-0.5.5-build/bamf-0.5.5/lib/libbamf/bamf-view.c: scope_hint: In function 'bamf_view_init'
bamf-0.5.5-build/bamf-0.5.5/lib/libbamf/bamf-view.c:1053:13: warning: Deprecated pre-processor symbol: replace with "G_ADD_PRIVATE"
# 1051|     BamfViewPrivate *priv;
# 1052|   
# 1053|->   priv = self->priv = BAMF_VIEW_GET_PRIVATE (self);
# 1054|     priv->cancellable = g_cancellable_new ();
# 1055|     priv->is_closed = TRUE;

Error: COMPILER_WARNING (CWE-477): [#def13]
bamf-0.5.5-build/bamf-0.5.5/lib/libbamf/bamf-window.c: scope_hint: In function 'bamf_window_class_init'
bamf-0.5.5-build/bamf-0.5.5/lib/libbamf/bamf-window.c:415:3: warning[-Wdeprecated-declarations]: 'g_type_class_add_private' is deprecated
#  415 |   g_type_class_add_private (obj_class, sizeof (BamfWindowPrivate));
#      |   ^~~~~~~~~~~~~~~~~~~~~~~~
/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.
bamf-0.5.5-build/bamf-0.5.5/lib/libbamf-private/bamf-gdbus-generated.h:12: included_from: Included from here.
bamf-0.5.5-build/bamf-0.5.5/lib/libbamf-private/bamf-private.h:23: included_from: Included from here.
bamf-0.5.5-build/bamf-0.5.5/lib/libbamf/bamf-window.c:38: 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,
#      |          ^~~~~~~~~~~~~~~~~~~~~~~~
#  413|     BamfViewClass *view_class = BAMF_VIEW_CLASS (klass);
#  414|   
#  415|->   g_type_class_add_private (obj_class, sizeof (BamfWindowPrivate));
#  416|   
#  417|     obj_class->dispose = bamf_window_dispose;

Error: COMPILER_WARNING: [#def14]
bamf-0.5.5-build/bamf-0.5.5/lib/libbamf/bamf-window.c: scope_hint: In function 'bamf_window_init'
bamf-0.5.5-build/bamf-0.5.5/lib/libbamf/bamf-window.c:445:13: warning: Deprecated pre-processor symbol: replace with "G_ADD_PRIVATE"
#  445 |   priv = self->priv = BAMF_WINDOW_GET_PRIVATE (self);
#      |             ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~                        
#  443|     BamfWindowPrivate *priv;
#  444|   
#  445|->   priv = self->priv = BAMF_WINDOW_GET_PRIVATE (self);
#  446|     priv->xid = 0;
#  447|     priv->pid = 0;

Error: COMPILER_WARNING: [#def15]
bamf-0.5.5-build/bamf-0.5.5/src/bamf-application.c: scope_hint: In function ‘bamf_application_init’
bamf-0.5.5-build/bamf-0.5.5/src/bamf-application.c:1380:13: warning: Deprecated pre-processor symbol: replace with "G_ADD_PRIVATE"
# 1380 |   priv = self->priv = BAMF_APPLICATION_GET_PRIVATE (self);
#      |             ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~                   
# 1378|   {
# 1379|     BamfApplicationPrivate *priv;
# 1380|->   priv = self->priv = BAMF_APPLICATION_GET_PRIVATE (self);
# 1381|   
# 1382|     priv->app_type = BAMF_APPLICATION_SYSTEM;

Error: COMPILER_WARNING (CWE-477): [#def16]
bamf-0.5.5-build/bamf-0.5.5/src/bamf-application.c: scope_hint: In function ‘bamf_application_class_init’
bamf-0.5.5-build/bamf-0.5.5/src/bamf-application.c:1450:3: warning[-Wdeprecated-declarations]: ‘g_type_class_add_private’ is deprecated
# 1450 |   g_type_class_add_private (klass, sizeof (BamfApplicationPrivate));
#      |   ^~~~~~~~~~~~~~~~~~~~~~~~
/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.
bamf-0.5.5-build/bamf-0.5.5/src/bamf-view.h:25: included_from: Included from here.
bamf-0.5.5-build/bamf-0.5.5/src/bamf-application.h:24: included_from: Included from here.
bamf-0.5.5-build/bamf-0.5.5/src/bamf-application.c:21: 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,
#      |          ^~~~~~~~~~~~~~~~~~~~~~~~
# 1448|     klass->supported_mimes_changed = bamf_application_supported_mime_types_changed;
# 1449|   
# 1450|->   g_type_class_add_private (klass, sizeof (BamfApplicationPrivate));
# 1451|   
# 1452|     application_signals[SUPPORTED_MIMES_CHANGED] =

Error: COMPILER_WARNING: [#def17]
bamf-0.5.5-build/bamf-0.5.5/src/bamf-control.c: scope_hint: In function ‘bamf_control_init’
bamf-0.5.5-build/bamf-0.5.5/src/bamf-control.c:150:13: warning: Deprecated pre-processor symbol: replace with "G_ADD_PRIVATE"
#  148|   bamf_control_init (BamfControl * self)
#  149|   {
#  150|->   self->priv = BAMF_CONTROL_GET_PRIVATE (self);
#  151|     self->priv->sources = NULL;
#  152|   

Error: COMPILER_WARNING (CWE-477): [#def18]
bamf-0.5.5-build/bamf-0.5.5/src/bamf-control.c: scope_hint: In function ‘bamf_control_class_init’
bamf-0.5.5-build/bamf-0.5.5/src/bamf-control.c:197:3: 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.
bamf-0.5.5-build/bamf-0.5.5/lib/libbamf-private/bamf-gdbus-generated.h:12: included_from: Included from here.
bamf-0.5.5-build/bamf-0.5.5/lib/libbamf-private/bamf-private.h:23: included_from: Included from here.
bamf-0.5.5-build/bamf-0.5.5/src/bamf-control.c:22: included_from: Included from here.
/usr/include/glib-2.0/gobject/gtype.h:1497:10: note: declared here
#  195|     obj_class->finalize = bamf_control_finalize;
#  196|   
#  197|->   g_type_class_add_private (klass, sizeof (BamfControlPrivate));
#  198|   }
#  199|   

Error: COMPILER_WARNING: [#def19]
bamf-0.5.5-build/bamf-0.5.5/src/bamf-daemon.c: scope_hint: In function ‘bamf_daemon_init’
bamf-0.5.5-build/bamf-0.5.5/src/bamf-daemon.c:168:13: warning: Deprecated pre-processor symbol: replace with "G_ADD_PRIVATE"
#  166|   {
#  167|     BamfDaemonPrivate *priv;
#  168|->   priv = self->priv = BAMF_DAEMON_GET_PRIVATE (self);
#  169|   
#  170|     priv->loop = g_main_loop_new (NULL, FALSE);

Error: COMPILER_WARNING (CWE-477): [#def20]
bamf-0.5.5-build/bamf-0.5.5/src/bamf-daemon.c: scope_hint: In function ‘bamf_daemon_class_init’
bamf-0.5.5-build/bamf-0.5.5/src/bamf-daemon.c:181:3: 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.
bamf-0.5.5-build/bamf-0.5.5/src/bamf-daemon.h:24: included_from: Included from here.
bamf-0.5.5-build/bamf-0.5.5/src/bamf-daemon.c:20: included_from: Included from here.
/usr/include/glib-2.0/gobject/gtype.h:1497:10: note: declared here
#  179|     object_class->finalize = bamf_daemon_finalize;
#  180|   
#  181|->   g_type_class_add_private (klass, sizeof (BamfDaemonPrivate));
#  182|   }
#  183|   

Error: COMPILER_WARNING: [#def21]
bamf-0.5.5-build/bamf-0.5.5/src/bamf-legacy-screen.c: scope_hint: In function ‘bamf_legacy_screen_init’
bamf-0.5.5-build/bamf-0.5.5/src/bamf-legacy-screen.c:462:13: warning: Deprecated pre-processor symbol: replace with "G_ADD_PRIVATE"
#  462 |   self->priv = BAMF_LEGACY_SCREEN_GET_PRIVATE (self);
#      |             ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~                        
#  460|   bamf_legacy_screen_init (BamfLegacyScreen * self)
#  461|   {
#  462|->   self->priv = BAMF_LEGACY_SCREEN_GET_PRIVATE (self);
#  463|   }
#  464|   

Error: COMPILER_WARNING (CWE-477): [#def22]
bamf-0.5.5-build/bamf-0.5.5/src/bamf-legacy-screen.c: scope_hint: In function ‘bamf_legacy_screen_class_init’
bamf-0.5.5-build/bamf-0.5.5/src/bamf-legacy-screen.c:472:3: warning[-Wdeprecated-declarations]: ‘g_type_class_add_private’ is deprecated
#  472 |   g_type_class_add_private (klass, sizeof (BamfLegacyScreenPrivate));
#      |   ^~~~~~~~~~~~~~~~~~~~~~~~
/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.
bamf-0.5.5-build/bamf-0.5.5/src/bamf-view.h:25: included_from: Included from here.
bamf-0.5.5-build/bamf-0.5.5/src/bamf-legacy-screen.h:23: 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,
#      |          ^~~~~~~~~~~~~~~~~~~~~~~~
#  470|     object_class->finalize = bamf_legacy_screen_finalize;
#  471|   
#  472|->   g_type_class_add_private (klass, sizeof (BamfLegacyScreenPrivate));
#  473|   
#  474|     legacy_screen_signals [WINDOW_OPENING] =

Error: COMPILER_WARNING: [#def23]
bamf-0.5.5-build/bamf-0.5.5/src/bamf-legacy-window.c: scope_hint: In function ‘bamf_legacy_window_init’
bamf-0.5.5-build/bamf-0.5.5/src/bamf-legacy-window.c:707:13: warning: Deprecated pre-processor symbol: replace with "G_ADD_PRIVATE"
#  707 |   self->priv = BAMF_LEGACY_WINDOW_GET_PRIVATE (self);
#      |             ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~                        
#  705|   bamf_legacy_window_init (BamfLegacyWindow * self)
#  706|   {
#  707|->   self->priv = BAMF_LEGACY_WINDOW_GET_PRIVATE (self);
#  708|   
#  709|     g_signal_connect (wnck_screen_get_default (), "window-closed",

Error: COMPILER_WARNING (CWE-477): [#def24]
bamf-0.5.5-build/bamf-0.5.5/src/bamf-legacy-window.c: scope_hint: In function ‘bamf_legacy_window_class_init’
bamf-0.5.5-build/bamf-0.5.5/src/bamf-legacy-window.c:720:3: warning[-Wdeprecated-declarations]: ‘g_type_class_add_private’ is deprecated
#  720 |   g_type_class_add_private (klass, sizeof (BamfLegacyWindowPrivate));
#      |   ^~~~~~~~~~~~~~~~~~~~~~~~
/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.
bamf-0.5.5-build/bamf-0.5.5/src/bamf-view.h:25: included_from: Included from here.
bamf-0.5.5-build/bamf-0.5.5/src/bamf-legacy-window.h: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,
#      |          ^~~~~~~~~~~~~~~~~~~~~~~~
#  718|     object_class->dispose = bamf_legacy_window_dispose;
#  719|   
#  720|->   g_type_class_add_private (klass, sizeof (BamfLegacyWindowPrivate));
#  721|   
#  722|     legacy_window_signals [NAME_CHANGED] =

Error: COMPILER_WARNING: [#def25]
bamf-0.5.5-build/bamf-0.5.5/src/bamf-matcher.c: scope_hint: In function ‘bamf_matcher_init’
bamf-0.5.5-build/bamf-0.5.5/src/bamf-matcher.c:3114:13: warning: Deprecated pre-processor symbol: replace with "G_ADD_PRIVATE"
# 3112|     int i;
# 3113|   
# 3114|->   priv = self->priv = BAMF_MATCHER_GET_PRIVATE (self);
# 3115|   
# 3116|     priv->bad_prefixes = g_array_sized_new (FALSE, TRUE, sizeof (GRegex *),

Error: COMPILER_WARNING (CWE-477): [#def26]
bamf-0.5.5-build/bamf-0.5.5/src/bamf-matcher.c: scope_hint: In function ‘bamf_matcher_class_init’
bamf-0.5.5-build/bamf-0.5.5/src/bamf-matcher.c:3277:3: 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.
bamf-0.5.5-build/bamf-0.5.5/src/bamf-view.h:25: included_from: Included from here.
bamf-0.5.5-build/bamf-0.5.5/src/bamf-matcher.h:25: included_from: Included from here.
bamf-0.5.5-build/bamf-0.5.5/src/bamf-matcher.c:23: included_from: Included from here.
/usr/include/glib-2.0/gobject/gtype.h:1497:10: note: declared here
# 3275|     GObjectClass *object_class = G_OBJECT_CLASS (klass);
# 3276|   
# 3277|->   g_type_class_add_private (klass, sizeof (BamfMatcherPrivate));
# 3278|     object_class->dispose = bamf_matcher_dispose;
# 3279|     object_class->finalize = bamf_matcher_finalize;

Error: COMPILER_WARNING: [#def27]
bamf-0.5.5-build/bamf-0.5.5/src/bamf-tab.c: scope_hint: In function ‘bamf_tab_init’
bamf-0.5.5-build/bamf-0.5.5/src/bamf-tab.c:173:13: warning: Deprecated pre-processor symbol: replace with "G_ADD_PRIVATE"
#  171|   bamf_tab_init (BamfTab *self)
#  172|   {
#  173|->   self->priv = BAMF_TAB_GET_PRIVATE (self);
#  174|   
#  175|     self->priv->dbus_iface = _bamf_dbus_item_tab_skeleton_new ();

Error: COMPILER_WARNING (CWE-477): [#def28]
bamf-0.5.5-build/bamf-0.5.5/src/bamf-tab.c: scope_hint: In function ‘bamf_tab_class_init’
bamf-0.5.5-build/bamf-0.5.5/src/bamf-tab.c:211:3: 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.
bamf-0.5.5-build/bamf-0.5.5/src/bamf-view.h:25: included_from: Included from here.
bamf-0.5.5-build/bamf-0.5.5/src/bamf-tab.h:22: included_from: Included from here.
bamf-0.5.5-build/bamf-0.5.5/src/bamf-tab.c:27: included_from: Included from here.
/usr/include/glib-2.0/gobject/gtype.h:1497:10: note: declared here
#  209|     g_object_class_override_property (object_class, PROP_IS_FOREGROUND_TAB, "is-foreground-tab");
#  210|   
#  211|->   g_type_class_add_private (klass, sizeof (BamfTabPrivate));
#  212|   }
#  213|   

Error: COMPILER_WARNING: [#def29]
bamf-0.5.5-build/bamf-0.5.5/src/bamf-view.c: scope_hint: In function ‘bamf_view_init’
bamf-0.5.5-build/bamf-0.5.5/src/bamf-view.c:967:13: warning: Deprecated pre-processor symbol: replace with "G_ADD_PRIVATE"
#  965|   bamf_view_init (BamfView * self)
#  966|   {
#  967|->   self->priv = BAMF_VIEW_GET_PRIVATE (self);
#  968|   
#  969|     /* Initializing the dbus interface */

Error: COMPILER_WARNING (CWE-477): [#def30]
bamf-0.5.5-build/bamf-0.5.5/src/bamf-view.c: scope_hint: In function ‘bamf_view_class_init’
bamf-0.5.5-build/bamf-0.5.5/src/bamf-view.c:1034:3: 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.
bamf-0.5.5-build/bamf-0.5.5/src/bamf-view.h:25: included_from: Included from here.
bamf-0.5.5-build/bamf-0.5.5/src/bamf-view.c:21: included_from: Included from here.
/usr/include/glib-2.0/gobject/gtype.h:1497:10: note: declared here
# 1032|     object_class->set_property = bamf_view_set_property;
# 1033|   
# 1034|->   g_type_class_add_private (klass, sizeof (BamfViewPrivate));
# 1035|   
# 1036|     /* Overriding the properties defined in the interface, this is needed

Error: COMPILER_WARNING: [#def31]
bamf-0.5.5-build/bamf-0.5.5/src/bamf-window.c: scope_hint: In function ‘bamf_window_init’
bamf-0.5.5-build/bamf-0.5.5/src/bamf-window.c:661:13: warning: Deprecated pre-processor symbol: replace with "G_ADD_PRIVATE"
#  661 |   self->priv = BAMF_WINDOW_GET_PRIVATE (self);
#      |             ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~                               
#  659|   bamf_window_init (BamfWindow * self)
#  660|   {
#  661|->   self->priv = BAMF_WINDOW_GET_PRIVATE (self);
#  662|   
#  663|     /* Initializing the dbus interface */

Error: COMPILER_WARNING (CWE-477): [#def32]
bamf-0.5.5-build/bamf-0.5.5/src/bamf-window.c: scope_hint: In function ‘bamf_window_class_init’
bamf-0.5.5-build/bamf-0.5.5/src/bamf-window.c:729:3: warning[-Wdeprecated-declarations]: ‘g_type_class_add_private’ is deprecated
#  729 |   g_type_class_add_private (klass, sizeof (BamfWindowPrivate));
#      |   ^~~~~~~~~~~~~~~~~~~~~~~~
/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.
bamf-0.5.5-build/bamf-0.5.5/src/bamf-view.h:25: included_from: Included from here.
bamf-0.5.5-build/bamf-0.5.5/src/bamf-application.h:24: 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,
#      |          ^~~~~~~~~~~~~~~~~~~~~~~~
#  727|     g_object_class_install_property (object_class, PROP_WINDOW, pspec);
#  728|   
#  729|->   g_type_class_add_private (klass, sizeof (BamfWindowPrivate));
#  730|   }
#  731|   

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
diffbase-analyzer-version-clang18.1.7
diffbase-analyzer-version-cppcheck2.14.2
diffbase-analyzer-version-gcc14.1.1
diffbase-analyzer-version-gcc-analyzer14.1.1
diffbase-analyzer-version-shellcheck0.10.0
diffbase-enabled-pluginsclang, cppcheck, gcc, shellcheck
diffbase-exit-code0
diffbase-hostip-172-16-1-46.us-west-2.compute.internal
diffbase-mock-configfedora-41-x86_64
diffbase-project-namebamf-0.5.6-1.fc41
diffbase-store-results-to/tmp/tmpjysp2i78/bamf-0.5.6-1.fc41.tar.xz
diffbase-time-created2024-07-03 12:09:12
diffbase-time-finished2024-07-03 12:11:44
diffbase-toolcsmock
diffbase-tool-args'/usr/bin/csmock' '-r' 'fedora-41-x86_64' '-t' 'cppcheck,gcc,clang,shellcheck' '-o' '/tmp/tmpjysp2i78/bamf-0.5.6-1.fc41.tar.xz' '--gcc-analyze' '/tmp/tmpjysp2i78/bamf-0.5.6-1.fc41.src.rpm'
diffbase-tool-versioncsmock-3.5.3-1.el9
enabled-pluginsclang, cppcheck, gcc, shellcheck
exit-code0
hostip-172-16-1-46.us-west-2.compute.internal
mock-configfedora-41-x86_64
project-namebamf-0.5.5-8.fc40
store-results-to/tmp/tmpoi7yjftg/bamf-0.5.5-8.fc40.tar.xz
time-created2024-07-03 12:05:46
time-finished2024-07-03 12:08:45
titleFixed defects
toolcsmock
tool-args'/usr/bin/csmock' '-r' 'fedora-41-x86_64' '-t' 'cppcheck,gcc,clang,shellcheck' '-o' '/tmp/tmpoi7yjftg/bamf-0.5.5-8.fc40.tar.xz' '--gcc-analyze' '/tmp/tmpoi7yjftg/bamf-0.5.5-8.fc40.src.rpm'
tool-versioncsmock-3.5.3-1.el9