bamf-0.5.5-8.fc40
List of Defects
Error: CPPCHECK_WARNING: [#def1]
bamf-0.5.5-build/bamf-0.5.5/doc/reference/libbamf/libbamf-scan.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CLANG_WARNING: [#def2]
bamf-0.5.5-build/bamf-0.5.5/doc/reference/libbamf/libbamf-scan.c:194: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: [#def3]
bamf-0.5.5-build/bamf-0.5.5/lib/libbamf-private/bamf-gdbus-generated.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def4]
bamf-0.5.5-build/bamf-0.5.5/lib/libbamf-private/bamf-gdbus-view-generated.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def5]
bamf-0.5.5-build/bamf-0.5.5/lib/libbamf/bamf-application.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: COMPILER_WARNING (CWE-477): [#def6]
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: [#def7]
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): [#def8]
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: [#def9]
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: CPPCHECK_WARNING: [#def10]
bamf-0.5.5-build/bamf-0.5.5/lib/libbamf/bamf-factory.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: COMPILER_WARNING (CWE-477): [#def11]
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: [#def12]
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: CLANG_WARNING: [#def13]
bamf-0.5.5-build/bamf-0.5.5/lib/libbamf/bamf-factory.c:151:15: warning[deadcode.DeadStores]: Value stored to 'removed' is never read
# 149| {
# 150| g_hash_table_iter_remove (&iter);
# 151|-> removed = TRUE;
# 152| break;
# 153| }
Error: CPPCHECK_WARNING: [#def14]
bamf-0.5.5-build/bamf-0.5.5/lib/libbamf/bamf-matcher.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: COMPILER_WARNING (CWE-477): [#def15]
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: [#def16]
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): [#def17]
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: [#def18]
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: CPPCHECK_WARNING: [#def19]
bamf-0.5.5-build/bamf-0.5.5/lib/libbamf/bamf-view.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: COMPILER_WARNING (CWE-477): [#def20]
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: [#def21]
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: CPPCHECK_WARNING: [#def22]
bamf-0.5.5-build/bamf-0.5.5/lib/libbamf/bamf-window.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: COMPILER_WARNING (CWE-477): [#def23]
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: [#def24]
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: CPPCHECK_WARNING: [#def25]
bamf-0.5.5-build/bamf-0.5.5/lib/libbamf/tmp-introspectc5bl0txg/Bamf-3.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CLANG_WARNING: [#def26]
bamf-0.5.5-build/bamf-0.5.5/lib/libbamf/tmp-introspectc5bl0txg/Bamf-3.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: [#def27]
bamf-0.5.5-build/bamf-0.5.5/src/bamf-application.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CLANG_WARNING: [#def28]
bamf-0.5.5-build/bamf-0.5.5/src/bamf-application.c:1295:15: warning[deadcode.DeadStores]: Value stored to 'type' during its initialization is never read
# 1293| BamfApplication *self)
# 1294| {
# 1295|-> const char *type = "";
# 1296|
# 1297| switch (self->priv->app_type)
Error: COMPILER_WARNING: [#def29]
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): [#def30]
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: [#def31]
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): [#def32]
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: [#def33]
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): [#def34]
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: CPPCHECK_WARNING: [#def35]
bamf-0.5.5-build/bamf-0.5.5/src/bamf-legacy-screen.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: COMPILER_WARNING (CWE-477): [#def36]
bamf-0.5.5-build/bamf-0.5.5/src/bamf-legacy-screen.c: scope_hint: In function ‘bamf_legacy_screen_inject_window’
bamf-0.5.5-build/bamf-0.5.5/src/bamf-legacy-screen.c:331:3: warning[-Wdeprecated-declarations]: ‘wnck_window_get’ is deprecated: Use 'wnck_handle_get_window' instead
# 331 | WnckWindow *legacy_window = wnck_window_get (xid);
# | ^~~~~~~~~~
/usr/include/libwnck-3.0/libwnck/libwnck.h:28: included_from: Included from here.
bamf-0.5.5-build/bamf-0.5.5/src/bamf-legacy-window.h:30: included_from: Included from here.
bamf-0.5.5-build/bamf-0.5.5/src/bamf-legacy-screen.h:24: included_from: Included from here.
bamf-0.5.5-build/bamf-0.5.5/src/bamf-legacy-screen.c:20: included_from: Included from here.
/usr/include/libwnck-3.0/libwnck/window.h:293:13: note: declared here
# 293 | WnckWindow* wnck_window_get (gulong xwindow);
# | ^~~~~~~~~~~~~~~
# 329| }
# 330|
# 331|-> WnckWindow *legacy_window = wnck_window_get (xid);
# 332|
# 333| if (WNCK_IS_WINDOW (legacy_window))
Error: COMPILER_WARNING: [#def37]
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): [#def38]
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 (CWE-477): [#def39]
bamf-0.5.5-build/bamf-0.5.5/src/bamf-legacy-screen.c: scope_hint: In function ‘bamf_legacy_screen_get_default’
bamf-0.5.5-build/bamf-0.5.5/src/bamf-legacy-screen.c:595:3: warning[-Wdeprecated-declarations]: ‘wnck_set_default_icon_size’ is deprecated: Use 'wnck_handle_set_default_icon_size' instead
# 595 | wnck_set_default_icon_size (BAMF_DEFAULT_ICON_SIZE);
# | ^~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/libwnck-3.0/libwnck/wnck-handle.h:27: included_from: Included from here.
/usr/include/libwnck-3.0/libwnck/libwnck.h:26: included_from: Included from here.
/usr/include/libwnck-3.0/libwnck/util.h:110:6: note: declared here
# 110 | void wnck_set_default_icon_size (gsize size);
# | ^~~~~~~~~~~~~~~~~~~~~~~~~~
# 593| return static_screen;
# 594|
# 595|-> wnck_set_default_icon_size (BAMF_DEFAULT_ICON_SIZE);
# 596| wnck_set_default_mini_icon_size (BAMF_DEFAULT_MINI_ICON_SIZE);
# 597|
Error: COMPILER_WARNING (CWE-477): [#def40]
bamf-0.5.5-build/bamf-0.5.5/src/bamf-legacy-screen.c:596:3: warning[-Wdeprecated-declarations]: ‘wnck_set_default_mini_icon_size’ is deprecated: Use 'wnck_handle_set_default_mini_icon_size' instead
# 596 | wnck_set_default_mini_icon_size (BAMF_DEFAULT_MINI_ICON_SIZE);
# | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/libwnck-3.0/libwnck/util.h:113:6: note: declared here
# 113 | void wnck_set_default_mini_icon_size (gsize size);
# | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# 594|
# 595| wnck_set_default_icon_size (BAMF_DEFAULT_ICON_SIZE);
# 596|-> wnck_set_default_mini_icon_size (BAMF_DEFAULT_MINI_ICON_SIZE);
# 597|
# 598| self->priv->legacy_screen = wnck_screen_get_default ();
Error: COMPILER_WARNING (CWE-477): [#def41]
bamf-0.5.5-build/bamf-0.5.5/src/bamf-legacy-screen.c:598:3: warning[-Wdeprecated-declarations]: ‘wnck_screen_get_default’ is deprecated: Use 'wnck_handle_get_default_screen' instead
# 598 | self->priv->legacy_screen = wnck_screen_get_default ();
# | ^~~~
/usr/include/libwnck-3.0/libwnck/wnck-handle.h:26: included_from: Included from here.
/usr/include/libwnck-3.0/libwnck/screen.h:198:16: note: declared here
# 198 | WnckScreen* wnck_screen_get_default (void);
# | ^~~~~~~~~~~~~~~~~~~~~~~
# 596| wnck_set_default_mini_icon_size (BAMF_DEFAULT_MINI_ICON_SIZE);
# 597|
# 598|-> self->priv->legacy_screen = wnck_screen_get_default ();
# 599|
# 600| dpy = gdk_x11_get_default_xdisplay ();
Error: CPPCHECK_WARNING: [#def42]
bamf-0.5.5-build/bamf-0.5.5/src/bamf-legacy-window.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: COMPILER_WARNING (CWE-477): [#def43]
bamf-0.5.5-build/bamf-0.5.5/src/bamf-legacy-window.c: scope_hint: In function ‘bamf_legacy_window_is_active’
bamf-0.5.5-build/bamf-0.5.5/src/bamf-legacy-window.c:72:3: warning[-Wdeprecated-declarations]: ‘wnck_screen_get_default’ is deprecated: Use 'wnck_handle_get_default_screen' instead
# 72 | active = wnck_screen_get_active_window (wnck_screen_get_default ());
# | ^~~~~~
/usr/include/libwnck-3.0/libwnck/wnck-handle.h:26: included_from: Included from here.
/usr/include/libwnck-3.0/libwnck/libwnck.h:26: included_from: Included from here.
bamf-0.5.5-build/bamf-0.5.5/src/bamf-legacy-window.h:30: included_from: Included from here.
bamf-0.5.5-build/bamf-0.5.5/src/bamf-legacy-window.c:23: included_from: Included from here.
/usr/include/libwnck-3.0/libwnck/screen.h:198:16: note: declared here
# 198 | WnckScreen* wnck_screen_get_default (void);
# | ^~~~~~~~~~~~~~~~~~~~~~~
# 70| return BAMF_LEGACY_WINDOW_GET_CLASS (self)->is_active (self);
# 71|
# 72|-> active = wnck_screen_get_active_window (wnck_screen_get_default ());
# 73|
# 74| return active == self->priv->legacy_window;
Error: COMPILER_WARNING (CWE-477): [#def44]
bamf-0.5.5-build/bamf-0.5.5/src/bamf-legacy-window.c: scope_hint: In function ‘bamf_legacy_window_save_mini_icon’
bamf-0.5.5-build/bamf-0.5.5/src/bamf-legacy-window.c:324:3: warning[-Wdeprecated-declarations]: ‘wnck_window_get_icon’ is deprecated: Use 'wnck_window_get_icon_surface' instead
# 324 | pbuf = wnck_window_get_icon (window);
# | ^~~~
/usr/include/libwnck-3.0/libwnck/libwnck.h:28: included_from: Included from here.
/usr/include/libwnck-3.0/libwnck/window.h:385:12: note: declared here
# 385 | GdkPixbuf* wnck_window_get_icon (WnckWindow *window);
# | ^~~~~~~~~~~~~~~~~~~~
# 322|
# 323| output = g_io_stream_get_output_stream (G_IO_STREAM (iostream));
# 324|-> pbuf = wnck_window_get_icon (window);
# 325|
# 326| if (gdk_pixbuf_save_to_stream (pbuf, output, "png", NULL, NULL, NULL))
Error: COMPILER_WARNING (CWE-477): [#def45]
bamf-0.5.5-build/bamf-0.5.5/src/bamf-legacy-window.c: scope_hint: In function ‘top_window_action_menu’
bamf-0.5.5-build/bamf-0.5.5/src/bamf-legacy-window.c:548:3: warning[-Wdeprecated-declarations]: ‘gdk_screen_get_monitor_scale_factor’ is deprecated: Use 'gdk_monitor_get_scale_factor' instead
# 548 | scale = gdk_screen_get_monitor_scale_factor (gdk_screen_get_default (), 0);
# | ^~~~~
/usr/include/gtk-3.0/gdk/gdkapplaunchcontext.h:31: included_from: Included from here.
/usr/include/gtk-3.0/gdk/gdk.h:32: included_from: Included from here.
/usr/include/gtk-3.0/gtk/gtk.h:30: included_from: Included from here.
/usr/include/libwnck-3.0/libwnck/util.h:30: included_from: Included from here.
/usr/include/libwnck-3.0/libwnck/wnck-handle.h:27: included_from: Included from here.
/usr/include/gtk-3.0/gdk/gdkscreen.h:103:15: note: declared here
# 103 | gint gdk_screen_get_monitor_scale_factor (GdkScreen *screen,
# | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# 546| gint w, h, scale;
# 547|
# 548|-> scale = gdk_screen_get_monitor_scale_factor (gdk_screen_get_default (), 0);
# 549| scale = !scale ? 1: scale;
# 550|
Error: COMPILER_WARNING (CWE-477): [#def46]
bamf-0.5.5-build/bamf-0.5.5/src/bamf-legacy-window.c: scope_hint: In function ‘bamf_legacy_window_show_action_menu’
bamf-0.5.5-build/bamf-0.5.5/src/bamf-legacy-window.c:609:3: warning[-Wdeprecated-declarations]: ‘gtk_menu_popup’ is deprecated: Use '(gtk_menu_popup_at_widget, gtk_menu_popup_at_pointer, gtk_menu_popup_at_rect)' instead
# 609 | gtk_menu_popup (GTK_MENU (menu), NULL, NULL, position, self, button, time);
# | ^~~~~~~~~~~~~~
/usr/include/gtk-3.0/gtk/gtklabel.h:34: included_from: Included from here.
/usr/include/gtk-3.0/gtk/gtkaccellabel.h:35: included_from: Included from here.
/usr/include/gtk-3.0/gtk/gtk.h:33: included_from: Included from here.
/usr/include/gtk-3.0/gtk/gtkmenu.h:138:12: note: declared here
# 138 | void gtk_menu_popup (GtkMenu *menu,
# | ^~~~~~~~~~~~~~
# 607|
# 608| GtkMenuPositionFunc position = button ? NULL : top_window_action_menu;
# 609|-> gtk_menu_popup (GTK_MENU (menu), NULL, NULL, position, self, button, time);
# 610| }
# 611|
Error: COMPILER_WARNING (CWE-477): [#def47]
bamf-0.5.5-build/bamf-0.5.5/src/bamf-legacy-window.c: scope_hint: In function ‘bamf_legacy_window_dispose’
bamf-0.5.5-build/bamf-0.5.5/src/bamf-legacy-window.c:677:3: warning[-Wdeprecated-declarations]: ‘wnck_screen_get_default’ is deprecated: Use 'wnck_handle_get_default_screen' instead
# 677 | g_signal_handlers_disconnect_by_data (wnck_screen_get_default (), self);
# | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/libwnck-3.0/libwnck/screen.h:198:16: note: declared here
# 198 | WnckScreen* wnck_screen_get_default (void);
# | ^~~~~~~~~~~~~~~~~~~~~~~
# 675| g_clear_pointer (&self->priv->working_dir, g_free);
# 676|
# 677|-> g_signal_handlers_disconnect_by_data (wnck_screen_get_default (), self);
# 678|
# 679| if (self->priv->legacy_window)
Error: COMPILER_WARNING: [#def48]
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): [#def49]
bamf-0.5.5-build/bamf-0.5.5/src/bamf-legacy-window.c:709:3: warning[-Wdeprecated-declarations]: ‘wnck_screen_get_default’ is deprecated: Use 'wnck_handle_get_default_screen' instead
# 709 | g_signal_connect (wnck_screen_get_default (), "window-closed",
# | ^~~~~~~~~~~~~~~~
/usr/include/libwnck-3.0/libwnck/screen.h:198:16: note: declared here
# 198 | WnckScreen* wnck_screen_get_default (void);
# | ^~~~~~~~~~~~~~~~~~~~~~~
# 707| self->priv = BAMF_LEGACY_WINDOW_GET_PRIVATE (self);
# 708|
# 709|-> g_signal_connect (wnck_screen_get_default (), "window-closed",
# 710| (GCallback) handle_window_closed, self);
# 711| }
Error: COMPILER_WARNING (CWE-477): [#def50]
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: CPPCHECK_WARNING: [#def51]
bamf-0.5.5-build/bamf-0.5.5/src/bamf-matcher.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: COMPILER_WARNING: [#def52]
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): [#def53]
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: [#def54]
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): [#def55]
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: CPPCHECK_WARNING: [#def56]
bamf-0.5.5-build/bamf-0.5.5/src/bamf-view.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: COMPILER_WARNING: [#def57]
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): [#def58]
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: CPPCHECK_WARNING: [#def59]
bamf-0.5.5-build/bamf-0.5.5/src/bamf-window.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: COMPILER_WARNING (CWE-477): [#def60]
bamf-0.5.5-build/bamf-0.5.5/src/bamf-window.c: scope_hint: In function ‘bamf_window_get_monitor’
bamf-0.5.5-build/bamf-0.5.5/src/bamf-window.c:370:3: warning[-Wdeprecated-declarations]: ‘gdk_screen_get_monitor_at_point’ is deprecated: Use 'gdk_display_get_monitor_at_point' instead
# 370 | return gdk_screen_get_monitor_at_point (gdk_screen, x + width/2, y + height/2);
# | ^~~~~~
/usr/include/gtk-3.0/gdk/gdkapplaunchcontext.h:31: included_from: Included from here.
/usr/include/gtk-3.0/gdk/gdk.h:32: included_from: Included from here.
/usr/include/gtk-3.0/gtk/gtk.h:30: included_from: Included from here.
/usr/include/libwnck-3.0/libwnck/util.h:30: included_from: Included from here.
/usr/include/libwnck-3.0/libwnck/wnck-handle.h:27: included_from: Included from here.
/usr/include/libwnck-3.0/libwnck/libwnck.h:26: included_from: Included from here.
bamf-0.5.5-build/bamf-0.5.5/src/bamf-legacy-window.h:30: included_from: Included from here.
bamf-0.5.5-build/bamf-0.5.5/src/bamf-window.h:24: included_from: Included from here.
bamf-0.5.5-build/bamf-0.5.5/src/bamf-application.h:25: included_from: Included from here.
bamf-0.5.5-build/bamf-0.5.5/src/bamf-window.c:20: included_from: Included from here.
/usr/include/gtk-3.0/gdk/gdkscreen.h:87:15: note: declared here
# 87 | gint gdk_screen_get_monitor_at_point (GdkScreen *screen,
# | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# 368| bamf_legacy_window_get_geometry (self->priv->legacy_window, &x, &y, &width, &height);
# 369|
# 370|-> return gdk_screen_get_monitor_at_point (gdk_screen, x + width/2, y + height/2);
# 371| }
# 372|
Error: COMPILER_WARNING: [#def61]
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): [#def62]
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|
Error: CPPCHECK_WARNING: [#def63]
bamf-0.5.5-build/bamf-0.5.5/src/bamf-xutils.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: COMPILER_WARNING (CWE-477): [#def64]
bamf-0.5.5-build/bamf-0.5.5/src/bamf-xutils.c: scope_hint: In function ‘gdk_error_trap_pop_and_print’
bamf-0.5.5-build/bamf-0.5.5/src/bamf-xutils.c:51:3: warning[-Wdeprecated-declarations]: ‘gdk_flush’ is deprecated: Use 'gdk_display_flush' instead
/usr/include/gtk-3.0/gdk/gdk.h:50: included_from: Included from here.
/usr/include/gtk-3.0/gdk/gdkx.h:28: included_from: Included from here.
bamf-0.5.5-build/bamf-0.5.5/src/bamf-xutils.h:26: included_from: Included from here.
bamf-0.5.5-build/bamf-0.5.5/src/bamf-xutils.c:21: included_from: Included from here.
/usr/include/gtk-3.0/gdk/gdkmain.h:124:6: note: declared here
# 49| gdk_error_trap_pop_and_print (Display *dpy)
# 50| {
# 51|-> gdk_flush ();
# 52| gint error_code = gdk_error_trap_pop ();
# 53|
Error: COMPILER_WARNING (CWE-477): [#def65]
bamf-0.5.5-build/bamf-0.5.5/src/bamf-xutils.c:52:3: warning[-Wdeprecated-declarations]: ‘gdk_error_trap_pop’ is deprecated: Use 'gdk_x11_display_error_trap_pop' instead
/usr/include/gtk-3.0/gdk/gdkmain.h:73:32: note: declared here
# 50| {
# 51| gdk_flush ();
# 52|-> gint error_code = gdk_error_trap_pop ();
# 53|
# 54| if (error_code)
Error: COMPILER_WARNING (CWE-477): [#def66]
bamf-0.5.5-build/bamf-0.5.5/src/bamf-xutils.c: scope_hint: In function ‘bamf_xutils_get_string_window_hint_and_type’
bamf-0.5.5-build/bamf-0.5.5/src/bamf-xutils.c:98:3: warning[-Wdeprecated-declarations]: ‘gdk_error_trap_push’ is deprecated: Use 'gdk_x11_display_error_trap_push' instead
/usr/include/gtk-3.0/gdk/gdkmain.h:70:32: note: declared here
# 96| }
# 97|
# 98|-> gdk_error_trap_push ();
# 99|
# 100| int result = XGetWindowProperty (XDisplay, xid,
Error: COMPILER_WARNING (CWE-477): [#def67]
bamf-0.5.5-build/bamf-0.5.5/src/bamf-xutils.c: scope_hint: In function ‘bamf_xutils_set_string_window_hint’
bamf-0.5.5-build/bamf-0.5.5/src/bamf-xutils.c:176:3: warning[-Wdeprecated-declarations]: ‘gdk_error_trap_push’ is deprecated: Use 'gdk_x11_display_error_trap_push' instead
/usr/include/gtk-3.0/gdk/gdkmain.h:70:32: note: declared here
# 174| }
# 175|
# 176|-> gdk_error_trap_push ();
# 177|
# 178| XChangeProperty (XDisplay, xid, gdk_x11_get_xatom_by_name (atom_name),
Error: COMPILER_WARNING (CWE-477): [#def68]
bamf-0.5.5-build/bamf-0.5.5/src/bamf-xutils.c: scope_hint: In function ‘bamf_xutils_unset_window_hint’
bamf-0.5.5-build/bamf-0.5.5/src/bamf-xutils.c:204:3: warning[-Wdeprecated-declarations]: ‘gdk_error_trap_push’ is deprecated: Use 'gdk_x11_display_error_trap_push' instead
/usr/include/gtk-3.0/gdk/gdkmain.h:70:32: note: declared here
# 202| }
# 203|
# 204|-> gdk_error_trap_push ();
# 205| XDeleteProperty (XDisplay, xid, gdk_x11_get_xatom_by_name (atom_name));
# 206| gdk_error_trap_pop_and_print (XDisplay);
Error: COMPILER_WARNING (CWE-477): [#def69]
bamf-0.5.5-build/bamf-0.5.5/src/bamf-xutils.c: scope_hint: In function ‘bamf_xutils_get_window_class_hints’
bamf-0.5.5-build/bamf-0.5.5/src/bamf-xutils.c:230:3: warning[-Wdeprecated-declarations]: ‘gdk_error_trap_push’ is deprecated: Use 'gdk_x11_display_error_trap_push' instead
/usr/include/gtk-3.0/gdk/gdkmain.h:70:32: note: declared here
# 228| class_hint.res_class = NULL;
# 229|
# 230|-> gdk_error_trap_push ();
# 231|
# 232| XGetClassHint (xdisplay, xid, &class_hint);
Error: CPPCHECK_WARNING: [#def70]
bamf-0.5.5-build/bamf-0.5.5/tests/bamfdaemon/test-application.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def71]
bamf-0.5.5-build/bamf-0.5.5/tests/bamfdaemon/test-matcher.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Scan Properties
analyzer-version-clang | 18.1.7 |
analyzer-version-cppcheck | 2.14.2 |
analyzer-version-gcc | 14.1.1 |
analyzer-version-gcc-analyzer | 14.1.1 |
analyzer-version-shellcheck | 0.10.0 |
enabled-plugins | clang, cppcheck, gcc, shellcheck |
exit-code | 0 |
host | ip-172-16-1-46.us-west-2.compute.internal |
mock-config | fedora-41-x86_64 |
project-name | bamf-0.5.5-8.fc40 |
store-results-to | /tmp/tmpoi7yjftg/bamf-0.5.5-8.fc40.tar.xz |
time-created | 2024-07-03 12:05:46 |
time-finished | 2024-07-03 12:08:45 |
tool | csmock |
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-version | csmock-3.5.3-1.el9 |