Fixed defects

List of Defects

Error: COMPILER_WARNING (CWE-670): [#def1]
gtk4-4.14.2-build/gtk-4.14.2/demos/gtk-demo/main.c: scope_hint: In function ‘activate_about’
gtk4-4.14.2-build/gtk-4.14.2/demos/gtk-demo/main.c:203:74: warning[-Wduplicated-branches]: this condition has identical branches
#  203 |                              g_strcmp0 (PROFILE, "devel") == 0 ? VCS_TAG : "",
#      |                                                                          ^
#  201|                                PACKAGE_VERSION,
#  202|                                g_strcmp0 (PROFILE, "devel") == 0 ? "-" : "",
#  203|->                              g_strcmp0 (PROFILE, "devel") == 0 ? VCS_TAG : "",
#  204|                                gtk_get_major_version (),
#  205|                                gtk_get_minor_version (),

Error: COMPILER_WARNING (CWE-670): [#def2]
gtk4-4.14.2-build/gtk-4.14.2/demos/gtk-demo/main.c: scope_hint: In function ‘print_version’
gtk4-4.14.2-build/gtk-4.14.2/demos/gtk-demo/main.c:1090:56: warning[-Wduplicated-branches]: this condition has identical branches
# 1090 |            g_strcmp0 (PROFILE, "devel") == 0 ? VCS_TAG : "");
#      |                                                        ^
# 1088|              PACKAGE_VERSION,
# 1089|              g_strcmp0 (PROFILE, "devel") == 0 ? "-" : "",
# 1090|->            g_strcmp0 (PROFILE, "devel") == 0 ? VCS_TAG : "");
# 1091|   }
# 1092|   

Error: COMPILER_WARNING (CWE-670): [#def3]
gtk4-4.14.2-build/gtk-4.14.2/demos/icon-browser/iconbrowserapp.c: scope_hint: In function ‘about_activated’
gtk4-4.14.2-build/gtk-4.14.2/demos/icon-browser/iconbrowserapp.c:83:74: warning[-Wduplicated-branches]: this condition has identical branches
#   83 |                              g_strcmp0 (PROFILE, "devel") == 0 ? VCS_TAG : "",
#      |                                                                          ^
#   81|                                PACKAGE_VERSION,
#   82|                                g_strcmp0 (PROFILE, "devel") == 0 ? "-" : "",
#   83|->                              g_strcmp0 (PROFILE, "devel") == 0 ? VCS_TAG : "",
#   84|                                gtk_get_major_version (),
#   85|                                gtk_get_minor_version (),

Error: COMPILER_WARNING (CWE-670): [#def4]
gtk4-4.14.2-build/gtk-4.14.2/demos/node-editor/node-editor-application.c: scope_hint: In function ‘activate_about’
gtk4-4.14.2-build/gtk-4.14.2/demos/node-editor/node-editor-application.c:104:74: warning[-Wduplicated-branches]: this condition has identical branches
#  104 |                              g_strcmp0 (PROFILE, "devel") == 0 ? VCS_TAG : "",
#      |                                                                          ^
#  102|                                PACKAGE_VERSION,
#  103|                                g_strcmp0 (PROFILE, "devel") == 0 ? "-" : "",
#  104|->                              g_strcmp0 (PROFILE, "devel") == 0 ? VCS_TAG : "",
#  105|                                gtk_get_major_version (),
#  106|                                gtk_get_minor_version (),

Error: COMPILER_WARNING (CWE-670): [#def5]
gtk4-4.14.2-build/gtk-4.14.2/demos/node-editor/node-editor-application.c: scope_hint: In function ‘print_version’
gtk4-4.14.2-build/gtk-4.14.2/demos/node-editor/node-editor-application.c:258:56: warning[-Wduplicated-branches]: this condition has identical branches
#  258 |            g_strcmp0 (PROFILE, "devel") == 0 ? VCS_TAG : "");
#      |                                                        ^
#  256|              PACKAGE_VERSION,
#  257|              g_strcmp0 (PROFILE, "devel") == 0 ? "-" : "",
#  258|->            g_strcmp0 (PROFILE, "devel") == 0 ? VCS_TAG : "");
#  259|   }
#  260|   

Error: COMPILER_WARNING (CWE-670): [#def6]
gtk4-4.14.2-build/gtk-4.14.2/demos/print-editor/print-editor.c: scope_hint: In function ‘activate_about’
gtk4-4.14.2-build/gtk-4.14.2/demos/print-editor/print-editor.c:623:74: warning[-Wduplicated-branches]: this condition has identical branches
#  623 |                              g_strcmp0 (PROFILE, "devel") == 0 ? VCS_TAG : "",
#      |                                                                          ^
#  621|                                PACKAGE_VERSION,
#  622|                                g_strcmp0 (PROFILE, "devel") == 0 ? "-" : "",
#  623|->                              g_strcmp0 (PROFILE, "devel") == 0 ? VCS_TAG : "",
#  624|                                gtk_get_major_version (),
#  625|                                gtk_get_minor_version (),

Error: COMPILER_WARNING (CWE-670): [#def7]
gtk4-4.14.2-build/gtk-4.14.2/demos/widget-factory/widget-factory.c: scope_hint: In function ‘activate_about’
gtk4-4.14.2-build/gtk-4.14.2/demos/widget-factory/widget-factory.c:338:74: warning[-Wduplicated-branches]: this condition has identical branches
#  338 |                              g_strcmp0 (PROFILE, "devel") == 0 ? VCS_TAG : "",
#      |                                                                          ^
#  336|                                PACKAGE_VERSION,
#  337|                                g_strcmp0 (PROFILE, "devel") == 0 ? "-" : "",
#  338|->                              g_strcmp0 (PROFILE, "devel") == 0 ? VCS_TAG : "",
#  339|                                gtk_get_major_version (),
#  340|                                gtk_get_minor_version (),

Error: COMPILER_WARNING (CWE-670): [#def8]
gtk4-4.14.2-build/gtk-4.14.2/demos/widget-factory/widget-factory.c: scope_hint: In function ‘print_version’
gtk4-4.14.2-build/gtk-4.14.2/demos/widget-factory/widget-factory.c:2509:56: warning[-Wduplicated-branches]: this condition has identical branches
# 2509 |            g_strcmp0 (PROFILE, "devel") == 0 ? VCS_TAG : "");
#      |                                                        ^
# 2507|              PACKAGE_VERSION,
# 2508|              g_strcmp0 (PROFILE, "devel") == 0 ? "-" : "",
# 2509|->            g_strcmp0 (PROFILE, "devel") == 0 ? VCS_TAG : "");
# 2510|   }
# 2511|   

Error: GCC_ANALYZER_WARNING (CWE-476): [#def9]
gtk4-4.14.2-build/gtk-4.14.2/gdk/gdkarrayimpl.c:303:11: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘v.start’
gtk4-4.14.2-build/gtk-4.14.2/testsuite/gdk/arrayimpl.c: scope_hint: In function ‘free_int_array_test_splice’
gtk4-4.14.2-build/gtk-4.14.2/gdk/gdkarrayimpl.c:51:57: note: in definition of macro ‘gdk_array_paste_more’
gtk4-4.14.2-build/gtk-4.14.2/gdk/gdkarrayimpl.c:53:30: note: in expansion of macro ‘gdk_array_paste’
gtk4-4.14.2-build/gtk-4.14.2/gdk/gdkarrayimpl.c:53:47: note: in expansion of macro ‘GDK_ARRAY_NAME’
gtk4-4.14.2-build/gtk-4.14.2/testsuite/gdk/arrayimpl.c:55:1: note: in expansion of macro ‘gdk_array’
gtk4-4.14.2-build/gtk-4.14.2/gdk/gdkarrayimpl.c:51:57: note: in definition of macro ‘gdk_array_paste_more’
gtk4-4.14.2-build/gtk-4.14.2/gdk/gdkarrayimpl.c:53:30: note: in expansion of macro ‘gdk_array_paste’
gtk4-4.14.2-build/gtk-4.14.2/gdk/gdkarrayimpl.c:53:47: note: in expansion of macro ‘GDK_ARRAY_NAME’
gtk4-4.14.2-build/gtk-4.14.2/testsuite/gdk/arrayimpl.c:62:3: note: in expansion of macro ‘gdk_array’
gtk4-4.14.2-build/gtk-4.14.2/testsuite/gdk/arrayimpl.c: scope_hint: In function ‘free_int_array_test_splice’
gtk4-4.14.2-build/gtk-4.14.2/gdk/gdkarrayimpl.c:51:57: note: in definition of macro ‘gdk_array_paste_more’
gtk4-4.14.2-build/gtk-4.14.2/gdk/gdkarrayimpl.c:53:30: note: in expansion of macro ‘gdk_array_paste’
gtk4-4.14.2-build/gtk-4.14.2/gdk/gdkarrayimpl.c:53:47: note: in expansion of macro ‘GDK_ARRAY_NAME’
gtk4-4.14.2-build/gtk-4.14.2/testsuite/gdk/arrayimpl.c:67:24: note: in expansion of macro ‘gdk_array’
gtk4-4.14.2-build/gtk-4.14.2/testsuite/gdk/arrayimpl.c: scope_hint: In function ‘free_int_array_test_splice’
gtk4-4.14.2-build/gtk-4.14.2/gdk/gdkarrayimpl.c:51:57: note: in definition of macro ‘gdk_array_paste_more’
gtk4-4.14.2-build/gtk-4.14.2/gdk/gdkarrayimpl.c:53:30: note: in expansion of macro ‘gdk_array_paste’
gtk4-4.14.2-build/gtk-4.14.2/gdk/gdkarrayimpl.c:53:47: note: in expansion of macro ‘GDK_ARRAY_NAME’
gtk4-4.14.2-build/gtk-4.14.2/testsuite/gdk/arrayimpl.c:80:7: note: in expansion of macro ‘gdk_array’
gtk4-4.14.2-build/gtk-4.14.2/gdk/gdkarrayimpl.c:51:57: note: in definition of macro ‘gdk_array_paste_more’
gtk4-4.14.2-build/gtk-4.14.2/gdk/gdkarrayimpl.c:53:30: note: in expansion of macro ‘gdk_array_paste’
gtk4-4.14.2-build/gtk-4.14.2/gdk/gdkarrayimpl.c:53:47: note: in expansion of macro ‘GDK_ARRAY_NAME’
gtk4-4.14.2-build/gtk-4.14.2/gdk/gdkarrayimpl.c:214:1: note: in expansion of macro ‘gdk_array’
gtk4-4.14.2-build/gtk-4.14.2/gdk/gdkarrayimpl.c:51:57: note: in definition of macro ‘gdk_array_paste_more’
gtk4-4.14.2-build/gtk-4.14.2/gdk/gdkarrayimpl.c:53:30: note: in expansion of macro ‘gdk_array_paste’
gtk4-4.14.2-build/gtk-4.14.2/gdk/gdkarrayimpl.c:53:47: note: in expansion of macro ‘GDK_ARRAY_NAME’
gtk4-4.14.2-build/gtk-4.14.2/gdk/gdkarrayimpl.c:228:10: note: in expansion of macro ‘gdk_array’
gtk4-4.14.2-build/gtk-4.14.2/gdk/gdkarrayimpl.c: scope_hint: In function ‘free_int_array_test_splice’
gtk4-4.14.2-build/gtk-4.14.2/gdk/gdkarrayimpl.c:51:57: note: in definition of macro ‘gdk_array_paste_more’
gtk4-4.14.2-build/gtk-4.14.2/gdk/gdkarrayimpl.c:53:30: note: in expansion of macro ‘gdk_array_paste’
gtk4-4.14.2-build/gtk-4.14.2/gdk/gdkarrayimpl.c:53:47: note: in expansion of macro ‘GDK_ARRAY_NAME’
gtk4-4.14.2-build/gtk-4.14.2/gdk/gdkarrayimpl.c:236:3: note: in expansion of macro ‘gdk_array’
gtk4-4.14.2-build/gtk-4.14.2/gdk/gdkarrayimpl.c:51:57: note: in definition of macro ‘gdk_array_paste_more’
gtk4-4.14.2-build/gtk-4.14.2/gdk/gdkarrayimpl.c:53:30: note: in expansion of macro ‘gdk_array_paste’
gtk4-4.14.2-build/gtk-4.14.2/gdk/gdkarrayimpl.c:53:47: note: in expansion of macro ‘GDK_ARRAY_NAME’
gtk4-4.14.2-build/gtk-4.14.2/gdk/gdkarrayimpl.c:177:1: note: in expansion of macro ‘gdk_array’
gtk4-4.14.2-build/gtk-4.14.2/gdk/gdkarrayimpl.c:51:57: note: in definition of macro ‘gdk_array_paste_more’
gtk4-4.14.2-build/gtk-4.14.2/gdk/gdkarrayimpl.c:53:30: note: in expansion of macro ‘gdk_array_paste’
gtk4-4.14.2-build/gtk-4.14.2/gdk/gdkarrayimpl.c:53:47: note: in expansion of macro ‘GDK_ARRAY_NAME’
gtk4-4.14.2-build/gtk-4.14.2/gdk/gdkarrayimpl.c:182:12: note: in expansion of macro ‘gdk_array’
gtk4-4.14.2-build/gtk-4.14.2/gdk/gdkarrayimpl.c: scope_hint: In function ‘free_int_array_test_splice’
gtk4-4.14.2-build/gtk-4.14.2/gdk/gdkarrayimpl.c:51:57: note: in definition of macro ‘gdk_array_paste_more’
gtk4-4.14.2-build/gtk-4.14.2/gdk/gdkarrayimpl.c:53:30: note: in expansion of macro ‘gdk_array_paste’
gtk4-4.14.2-build/gtk-4.14.2/gdk/gdkarrayimpl.c:53:47: note: in expansion of macro ‘GDK_ARRAY_NAME’
gtk4-4.14.2-build/gtk-4.14.2/gdk/gdkarrayimpl.c:236:3: note: in expansion of macro ‘gdk_array’
gtk4-4.14.2-build/gtk-4.14.2/gdk/gdkarrayimpl.c:51:57: note: in definition of macro ‘gdk_array_paste_more’
gtk4-4.14.2-build/gtk-4.14.2/gdk/gdkarrayimpl.c:53:30: note: in expansion of macro ‘gdk_array_paste’
gtk4-4.14.2-build/gtk-4.14.2/gdk/gdkarrayimpl.c:53:47: note: in expansion of macro ‘GDK_ARRAY_NAME’
gtk4-4.14.2-build/gtk-4.14.2/testsuite/gdk/arrayimpl.c:80:7: note: in expansion of macro ‘gdk_array’
gtk4-4.14.2-build/gtk-4.14.2/gdk/gdkarrayimpl.c:51:57: note: in definition of macro ‘gdk_array_paste_more’
gtk4-4.14.2-build/gtk-4.14.2/gdk/gdkarrayimpl.c:53:30: note: in expansion of macro ‘gdk_array_paste’
gtk4-4.14.2-build/gtk-4.14.2/gdk/gdkarrayimpl.c:53:47: note: in expansion of macro ‘GDK_ARRAY_NAME’
gtk4-4.14.2-build/gtk-4.14.2/testsuite/gdk/arrayimpl.c:83:25: note: in expansion of macro ‘gdk_array’
gtk4-4.14.2-build/gtk-4.14.2/testsuite/gdk/arrayimpl.c: scope_hint: In function ‘free_int_array_test_splice’
gtk4-4.14.2-build/gtk-4.14.2/gdk/gdkarrayimpl.c:51:57: note: in definition of macro ‘gdk_array_paste_more’
gtk4-4.14.2-build/gtk-4.14.2/gdk/gdkarrayimpl.c:53:30: note: in expansion of macro ‘gdk_array_paste’
gtk4-4.14.2-build/gtk-4.14.2/gdk/gdkarrayimpl.c:53:47: note: in expansion of macro ‘GDK_ARRAY_NAME’
gtk4-4.14.2-build/gtk-4.14.2/testsuite/gdk/arrayimpl.c:84:20: note: in expansion of macro ‘gdk_array’
gtk4-4.14.2-build/gtk-4.14.2/gdk/gdkarrayimpl.c:51:57: note: in definition of macro ‘gdk_array_paste_more’
gtk4-4.14.2-build/gtk-4.14.2/gdk/gdkarrayimpl.c:53:30: note: in expansion of macro ‘gdk_array_paste’
gtk4-4.14.2-build/gtk-4.14.2/gdk/gdkarrayimpl.c:53:47: note: in expansion of macro ‘GDK_ARRAY_NAME’
gtk4-4.14.2-build/gtk-4.14.2/gdk/gdkarrayimpl.c:303:12: note: in expansion of macro ‘gdk_array’
#  301|                   gsize           pos)
#  302|    {
#  303|->    return *gdk_array(index) (self, pos);
#  304|    }
#  305|   #endif

Error: CLANG_WARNING: [#def10]
gtk4-4.14.2-build/gtk-4.14.2/gdk/x11/gdkglcontext-glx.c:576:11: warning[core.UndefinedBinaryOperatorResult]: The left operand of '==' is a garbage value
#  574|       }
#  575|   
#  576|->   if (ctx == NULL)
#  577|       {
#  578|         GDK_DISPLAY_DEBUG (display, OPENGL, "Failed to create a GLX context");

Error: CLANG_WARNING: [#def11]
gtk4-4.14.2-build/gtk-4.14.2/gsk/gskcurve.c:247:3: warning[core.uninitialized.UndefReturn]: Undefined or garbage value returned to caller
#  245|       }
#  246|   
#  247|->   return t;
#  248|   }
#  249|   /* }}} */

Error: GCC_ANALYZER_WARNING (CWE-457): [#def12]
gtk4-4.14.2-build/gtk-4.14.2/gsk/gskcurve.c: scope_hint: In function ‘get_t_by_bisection’
gtk4-4.14.2-build/gtk-4.14.2/gsk/gskcurve.c:247:10: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘t’
#  245|       }
#  246|   
#  247|->   return t;
#  248|   }
#  249|   /* }}} */

Error: CLANG_WARNING: [#def13]
gtk4-4.14.2-build/gtk-4.14.2/testsuite/gtk/bitmask.c:22: included_from: Included from here.
gtk4-4.14.2-build/gtk-4.14.2/gtk/gtkbitmaskprivate.h:63: included_from: Included from here.
gtk4-4.14.2-build/gtk-4.14.2/gtk/gtkbitmaskprivateimpl.h:134:58: warning[core.BitwiseShift]: Left shift by '4294967295' overflows the capacity of 'gsize'
#  132|     else
#  133|       {
#  134|->       gsize invert = (((gsize) 1) << end) - (((gsize) 1) << start);
#  135|         
#  136|         return _gtk_bitmask_from_bits (_gtk_bitmask_to_bits (mask) ^ invert);

Error: CLANG_WARNING: [#def14]
gtk4-4.14.2-build/gtk-4.14.2/gtk/gtkbitmaskprivateimpl.h:134:58: warning[core.BitwiseShift]: Left shift overflows the capacity of 'gsize'
#  132|     else
#  133|       {
#  134|->       gsize invert = (((gsize) 1) << end) - (((gsize) 1) << start);
#  135|         
#  136|         return _gtk_bitmask_from_bits (_gtk_bitmask_to_bits (mask) ^ invert);

Error: CPPCHECK_WARNING (CWE-682): [#def15]
gtk4-4.14.2-build/gtk-4.14.2/gtk/gtkcheckbutton.c:148: error[nullPointerArithmetic]: Pointer addition with NULL pointer.
#  146|   static GParamSpec *props[LAST_PROP] = { NULL, };
#  147|   
#  148|-> G_DEFINE_TYPE_WITH_CODE (GtkCheckButton, gtk_check_button, GTK_TYPE_WIDGET,
#  149|                            G_ADD_PRIVATE (GtkCheckButton)
#  150|                            G_IMPLEMENT_INTERFACE (GTK_TYPE_ACTIONABLE, gtk_check_button_actionable_iface_init))

Error: GCC_ANALYZER_WARNING (CWE-457): [#def16]
gtk4-4.14.2-build/gtk-4.14.2/gtk/gtkcssselector.c: scope_hint: In function ‘gtk_css_selector_compare_one’
gtk4-4.14.2-build/gtk-4.14.2/gtk/gtkcssselector.c:191:20: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘*b.class’
gtk4-4.14.2-build/gtk-4.14.2/gtk/gtkcssselector.c: scope_hint: In function ‘gtk_css_selector_compare_one’
#  189|   gtk_css_selector_compare_one (const GtkCssSelector *a, const GtkCssSelector *b)
#  190|   {
#  191|->   if (a->class != b->class)
#  192|       return strcmp (a->class->name, b->class->name);
#  193|     else

Error: GCC_ANALYZER_WARNING (CWE-476): [#def17]
gtk4-4.14.2-build/gtk-4.14.2/gtk/gtkcssselector.c: scope_hint: In function ‘gtk_css_selectors_skip_initial_selector’
gtk4-4.14.2-build/gtk-4.14.2/gtk/gtkcssselector.c:1798:11: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘found’
gtk4-4.14.2-build/gtk-4.14.2/gtk/gtkcssselector.c: scope_hint: In function ‘gtk_css_selectors_skip_initial_selector’
gtk4-4.14.2-build/gtk-4.14.2/gdk/gdkarrayimpl.c:51:57: note: in definition of macro ‘gdk_array_paste_more’
gtk4-4.14.2-build/gtk-4.14.2/gdk/gdkarrayimpl.c:53:30: note: in expansion of macro ‘gdk_array_paste’
gtk4-4.14.2-build/gtk-4.14.2/gdk/gdkarrayimpl.c:53:47: note: in expansion of macro ‘GDK_ARRAY_NAME’
gtk4-4.14.2-build/gtk-4.14.2/gdk/gdkarrayimpl.c:114:1: note: in expansion of macro ‘gdk_array’
gtk4-4.14.2-build/gtk-4.14.2/gdk/gdkarrayimpl.c:51:57: note: in definition of macro ‘gdk_array_paste_more’
gtk4-4.14.2-build/gtk-4.14.2/gdk/gdkarrayimpl.c:53:30: note: in expansion of macro ‘gdk_array_paste’
gtk4-4.14.2-build/gtk-4.14.2/gdk/gdkarrayimpl.c:53:47: note: in expansion of macro ‘GDK_ARRAY_NAME’
gtk4-4.14.2-build/gtk-4.14.2/gdk/gdkarrayimpl.c:122:3: note: in expansion of macro ‘gdk_array’
gtk4-4.14.2-build/gtk-4.14.2/gtk/gtkcssselector.c: scope_hint: In function ‘gtk_css_selectors_skip_initial_selector’
gtk4-4.14.2-build/gtk-4.14.2/gtk/gtkcssselector.c:119:44: note: in expansion of macro ‘G_MAXINT32’
gtk4-4.14.2-build/gtk-4.14.2/gtk/gtkcssselector.c:2120:12: note: in expansion of macro ‘GTK_CSS_SELECTOR_TREE_EMPTY_OFFSET’
gtk4-4.14.2-build/gtk-4.14.2/gtk/gtkcssselector.c: scope_hint: In function ‘gtk_css_selectors_skip_initial_selector’
gtk4-4.14.2-build/gtk-4.14.2/gtk/gtkcssselector.c: scope_hint: In function ‘gtk_css_selectors_skip_initial_selector’
gtk4-4.14.2-build/gtk-4.14.2/gtk/gtkcssselector.c: scope_hint: In function ‘gtk_css_selectors_skip_initial_selector’
# 1796|         g_assert (found != NULL && gtk_css_selector_is_simple (found));
# 1797|   
# 1798|->       tmp = *found;
# 1799|         *found = *selector;
# 1800|         *selector = tmp;

Error: GCC_ANALYZER_WARNING (CWE-476): [#def18]
gtk4-4.14.2-build/gtk-4.14.2/gtk/gtktextlayout.c: scope_hint: In function ‘allocate_child_widgets’
gtk4-4.14.2-build/gtk-4.14.2/gtk/gtktextlayout.c:1956:27: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘widgets’
# 1954|             for (i = 0; i < n_widgets; i++)
# 1955|               {
# 1956|->               GtkWidget  *child = widgets[i];
# 1957|                 PangoRectangle extents;
# 1958|   

Error: CPPCHECK_WARNING (CWE-682): [#def19]
gtk4-4.14.2-build/gtk-4.14.2/gtk/gtktogglebutton.c:141: error[nullPointerArithmetic]: Pointer addition with NULL pointer.
#  139|   static GParamSpec *toggle_button_props[NUM_PROPERTIES] = { NULL, };
#  140|   
#  141|-> G_DEFINE_TYPE_WITH_CODE (GtkToggleButton, gtk_toggle_button, GTK_TYPE_BUTTON,
#  142|                            G_ADD_PRIVATE (GtkToggleButton))
#  143|   

Error: CPPCHECK_WARNING (CWE-682): [#def20]
gtk4-4.14.2-build/gtk-4.14.2/tests/gtkgears.c:596: error[nullPointerArithmetic]: Pointer addition with NULL pointer.
#  594|     /* Set up the position of the attributes in the vertex buffer object */
#  595|     glVertexAttribPointer(0, 3, GL_FLOAT, GL_FALSE, 6 * sizeof(GLfloat), NULL);
#  596|->   glVertexAttribPointer(1, 3, GL_FLOAT, GL_FALSE, 6 * sizeof(GLfloat), (GLfloat *) 0 + 3);
#  597|   
#  598|     /* Enable the attributes */

Error: CLANG_WARNING: [#def21]
gtk4-4.14.2-build/gtk-4.14.2/tests/gtkgears.c:924:5: warning[deadcode.DeadStores]: Value stored to 'previous_frame_time' is never read
#  922|                                                     gdk_frame_timings_get_frame_counter (timings) - 1);
#  923|     if (previous_timings != NULL)
#  924|->     previous_frame_time = gdk_frame_timings_get_frame_time (previous_timings);
#  925|   
#  926|     return G_SOURCE_CONTINUE;

Error: CPPCHECK_WARNING: [#def22]
gtk4-4.14.2-build/gtk-4.14.2/tests/rendernode-create-tests.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def23]
gtk4-4.14.2-build/gtk-4.14.2/tests/rendernode.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def24]
gtk4-4.14.2-build/gtk-4.14.2/tests/showrendernode.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def25]
gtk4-4.14.2-build/gtk-4.14.2/tests/testbaseline.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CLANG_WARNING: [#def26]
gtk4-4.14.2-build/gtk-4.14.2/tests/testbaseline.c:157:3: warning[deadcode.DeadStores]: Value stored to 'grid_hbox' is never read
#  155|       }
#  156|   
#  157|->   grid_hbox = hbox = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 10);
#  158|     gtk_box_append (GTK_BOX (vbox), hbox);
#  159|   

Error: CPPCHECK_WARNING: [#def27]
gtk4-4.14.2-build/gtk-4.14.2/tests/testcellarea.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CLANG_WARNING: [#def28]
gtk4-4.14.2-build/gtk-4.14.2/tests/testcolumnview.c:303:7: warning[deadcode.DeadStores]: Value stored to 'result' is never read
#  301|       {
#  302|         g_string_append_printf (string, " (%u directories remaining)", active + g_slist_length (pending));
#  303|->       result = G_SOURCE_CONTINUE;
#  304|       }
#  305|         result = G_SOURCE_CONTINUE;

Error: CPPCHECK_WARNING (CWE-664): [#def29]
gtk4-4.14.2-build/gtk-4.14.2/tests/testcombochange.c:66: error[va_end_missing]: va_list 'vap' was opened but not closed by va_end().
#   64|   
#   65|     g_free (msg);
#   66|-> }
#   67|   
#   68|   static void

Error: CLANG_WARNING: [#def30]
gtk4-4.14.2-build/gtk-4.14.2/tests/testdialog.c:345:3: warning[deadcode.DeadStores]: Value stored to 'button' is never read
#  343|     gtk_flow_box_insert (GTK_FLOW_BOX (box), button, -1);
#  344|   
#  345|->   button = gtk_button_new_with_label ("Builtin");
#  346|     button = gtk_button_new_with_label ("Builtin");
#  347|     g_signal_connect_swapped (button, "clicked", G_CALLBACK (show_color_chooser), window);

Error: CLANG_WARNING: [#def31]
gtk4-4.14.2-build/gtk-4.14.2/tests/testdialog.c:374:3: warning[deadcode.DeadStores]: Value stored to 'button' is never read
#  372|     gtk_flow_box_insert (GTK_FLOW_BOX (box), button, -1);
#  373|   
#  374|->   button = gtk_button_new_with_label ("Template");
#  375|     button = gtk_button_new_with_label ("Template");
#  376|     g_signal_connect_swapped (button, "clicked", G_CALLBACK (show_dialog_from_template), window);

Error: CPPCHECK_WARNING: [#def32]
gtk4-4.14.2-build/gtk-4.14.2/tests/testdmabuf.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING (CWE-457): [#def33]
gtk4-4.14.2-build/gtk-4.14.2/tests/testdmabuf.c:149: error[uninitvar]: Uninitialized variable: vk_memory
#  147|                           },
#  148|                           NULL,
#  149|->                         &vk_memory) != VK_SUCCESS)
#  150|       return -1;
#  151|   

Error: CPPCHECK_WARNING (CWE-457): [#def34]
gtk4-4.14.2-build/gtk-4.14.2/tests/testdmabuf.c:158: error[uninitvar]: Uninitialized variable: fd
#  156|                                  .handleType = VK_EXTERNAL_MEMORY_HANDLE_TYPE_DMA_BUF_BIT_EXT,
#  157|                                },
#  158|->                              &fd) != VK_SUCCESS)
#  159|       return -1;
#  160|   

Error: COMPILER_WARNING (CWE-252): [#def35]
gtk4-4.14.2-build/gtk-4.14.2/tests/testdmabuf.c: scope_hint: In function ‘allocate_memfd’
gtk4-4.14.2-build/gtk-4.14.2/tests/testdmabuf.c:192:3: warning[-Wunused-result]: ignoring return value of ‘ftruncate’ declared with attribute ‘warn_unused_result’
#  192 |   ftruncate (fd, size);
#      |   ^~~~~~~~~~~~~~~~~~~~
#  190|       g_error ("memfd allocation failed");
#  191|   
#  192|->   ftruncate (fd, size);
#  193|   
#  194|     return fd;

Error: CPPCHECK_WARNING: [#def36]
gtk4-4.14.2-build/gtk-4.14.2/tests/testdropdown.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def37]
gtk4-4.14.2-build/gtk-4.14.2/tests/testfilechooser.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def38]
gtk4-4.14.2-build/gtk-4.14.2/tests/testfiledialog.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def39]
gtk4-4.14.2-build/gtk-4.14.2/tests/testgmenu.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def40]
gtk4-4.14.2-build/gtk-4.14.2/tests/testgtk.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def41]
gtk4-4.14.2-build/gtk-4.14.2/tests/testmountoperation.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CLANG_WARNING: [#def42]
gtk4-4.14.2-build/gtk-4.14.2/tests/testscale.c:178:3: warning[deadcode.DeadStores]: Value stored to 'box2' is never read
#  176|   
#  177|     frame = gtk_frame_new ("Labeled marks");
#  178|->   box2 = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 6);
#  179|   
#  180|     scale = gtk_scale_new_with_range (GTK_ORIENTATION_HORIZONTAL, 0, 100, 1);

Error: CPPCHECK_WARNING: [#def43]
gtk4-4.14.2-build/gtk-4.14.2/tests/testsections.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def44]
gtk4-4.14.2-build/gtk-4.14.2/tests/testtreecolumns.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def45]
gtk4-4.14.2-build/gtk-4.14.2/tests/testtreecolumnsizing.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: GCC_ANALYZER_WARNING (CWE-476): [#def46]
gtk4-4.14.2-build/gtk-4.14.2/tests/video-timer.c: scope_hint: In function ‘on_update’
gtk4-4.14.2-build/gtk-4.14.2/tests/video-timer.c:322:7: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
#  320|     g_assert (pending_frame);
#  321|   
#  322|->   if (stream_time_to_clock_time (pending_frame->stream_time)
#  323|         < predicted_presentation_time + refresh_interval / 2)
#  324|       {

Error: COMPILER_WARNING (CWE-476): [#def47]
gtk4-4.14.2-build/gtk-4.14.2/tests/video-timer.c: scope_hint: In function ‘on_update’
gtk4-4.14.2-build/gtk-4.14.2/tests/video-timer.c:322:7: warning[-Wnull-dereference]: potential null pointer dereference
#  322 |   if (stream_time_to_clock_time (pending_frame->stream_time)
#      |       ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
#  320|     g_assert (pending_frame);
#  321|   
#  322|->   if (stream_time_to_clock_time (pending_frame->stream_time)
#  323|         < predicted_presentation_time + refresh_interval / 2)
#  324|       {

Error: CLANG_WARNING: [#def48]
gtk4-4.14.2-build/gtk-4.14.2/tests/video-timer.c:335:15: warning[deadcode.DeadStores]: Value stored to 'pending_frame' is never read
#  333|                 n_frames++;
#  334|                 dropped_frames++;
#  335|->               pending_frame = next_frame;
#  336|               }
#  337|             else

Error: COMPILER_WARNING (CWE-476): [#def49]
gtk4-4.14.2-build/gtk-4.14.2/tests/video-timer.c:347:35: warning[-Wnull-dereference]: potential null pointer dereference
#  347 |       displayed_frame->clock_time = stream_time_to_clock_time (displayed_frame->stream_time);
#      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
#  345|         displayed_frame = unqueue_frame ();
#  346|         g_assert (displayed_frame);
#  347|->       displayed_frame->clock_time = stream_time_to_clock_time (displayed_frame->stream_time);
#  348|   
#  349|         displayed_frame->frame_counter = gdk_frame_timings_get_frame_counter (timings);

Error: GCC_ANALYZER_WARNING (CWE-476): [#def50]
gtk4-4.14.2-build/gtk-4.14.2/tests/video-timer.c:347:37: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
#  345|         displayed_frame = unqueue_frame ();
#  346|         g_assert (displayed_frame);
#  347|->       displayed_frame->clock_time = stream_time_to_clock_time (displayed_frame->stream_time);
#  348|   
#  349|         displayed_frame->frame_counter = gdk_frame_timings_get_frame_counter (timings);

Error: COMPILER_WARNING (CWE-476): [#def51]
gtk4-4.14.2-build/gtk-4.14.2/tests/video-timer.c:347:37: warning[-Wnull-dereference]: potential null pointer dereference
#  347 |       displayed_frame->clock_time = stream_time_to_clock_time (displayed_frame->stream_time);
#      |                                     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
#  345|         displayed_frame = unqueue_frame ();
#  346|         g_assert (displayed_frame);
#  347|->       displayed_frame->clock_time = stream_time_to_clock_time (displayed_frame->stream_time);
#  348|   
#  349|         displayed_frame->frame_counter = gdk_frame_timings_get_frame_counter (timings);

Error: COMPILER_WARNING (CWE-476): [#def52]
gtk4-4.14.2-build/gtk-4.14.2/tests/video-timer.c:349:38: warning[-Wnull-dereference]: potential null pointer dereference
#  349 |       displayed_frame->frame_counter = gdk_frame_timings_get_frame_counter (timings);
#      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
#  347|         displayed_frame->clock_time = stream_time_to_clock_time (displayed_frame->stream_time);
#  348|   
#  349|->       displayed_frame->frame_counter = gdk_frame_timings_get_frame_counter (timings);
#  350|         variable_add (&time_factor_stats, time_factor);
#  351|   

Error: CPPCHECK_WARNING: [#def53]
gtk4-4.14.2-build/gtk-4.14.2/testsuite/a11y/inscription.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def54]
gtk4-4.14.2-build/gtk-4.14.2/testsuite/a11y/label.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def55]
gtk4-4.14.2-build/gtk-4.14.2/testsuite/a11y/text.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def56]
gtk4-4.14.2-build/gtk-4.14.2/testsuite/a11y/textview.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def57]
gtk4-4.14.2-build/gtk-4.14.2/testsuite/css/change/test-css-change.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def58]
gtk4-4.14.2-build/gtk-4.14.2/testsuite/css/data.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def59]
gtk4-4.14.2-build/gtk-4.14.2/testsuite/css/nodes/test-css-nodes.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def60]
gtk4-4.14.2-build/gtk-4.14.2/testsuite/css/parser/test-css-parser.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: GCC_ANALYZER_WARNING (CWE-688): [#def61]
/usr/include/glib-2.0/glib/giochannel.h:36: included_from: Included from here.
/usr/include/glib-2.0/glib.h:56: included_from: Included from here.
/usr/include/glib-2.0/glib/gprintf.h:23: included_from: Included from here.
/usr/include/glib-2.0/glib/gstdio.h:24: included_from: Included from here.
gtk4-4.14.2-build/gtk-4.14.2/testsuite/css/parser/test-css-parser.c:26: included_from: Included from here.
gtk4-4.14.2-build/gtk-4.14.2/testsuite/css/parser/test-css-parser.c: scope_hint: In function ‘test_get_errors_file’
gtk4-4.14.2-build/gtk-4.14.2/testsuite/css/parser/test-css-parser.c:61:42: warning[-Wanalyzer-null-argument]: use of NULL ‘css_file’ where non-null expected
/usr/include/glib-2.0/glib/gstring.h:247:42: note: in definition of macro ‘g_string_append_len’
gtk4-4.14.2-build/gtk-4.14.2/testsuite/css/parser/test-css-parser.c:48:7: note: in expansion of macro ‘g_string_free’
/usr/include/glib-2.0/glib/gstring.h:37: included_from: Included from here.
gtk4-4.14.2-build/gtk-4.14.2/testsuite/css/parser/test-css-parser.c:49:14: note: in expansion of macro ‘g_strdup’
gtk4-4.14.2-build/gtk-4.14.2/testsuite/css/parser/test-css-parser.c: scope_hint: In function ‘test_get_errors_file’
gtk4-4.14.2-build/gtk-4.14.2/testsuite/css/parser/test-css-parser.c:49:14: note: in expansion of macro ‘g_strdup’
/usr/lib64/glib-2.0/include/glibconfig.h:9: included_from: Included from here.
/usr/include/glib-2.0/glib/gtypes.h:34: included_from: Included from here.
/usr/include/glib-2.0/glib/galloca.h:34: included_from: Included from here.
/usr/include/glib-2.0/glib.h:32: included_from: Included from here.
/usr/include/glib-2.0/glib/gmacros.h:1243:31: note: in expansion of macro ‘_G_BOOLEAN_EXPR_IMPL’
/usr/include/glib-2.0/glib/gmacros.h:1245:45: note: in expansion of macro ‘_G_BOOLEAN_EXPR’
/usr/include/glib-2.0/glib/gstrfuncs.h:190:11: note: in expansion of macro ‘G_UNLIKELY’
gtk4-4.14.2-build/gtk-4.14.2/testsuite/css/parser/test-css-parser.c:60:7: note: in expansion of macro ‘g_str_has_suffix’
/usr/include/glib-2.0/glib/gstring.h:247:42: note: in definition of macro ‘g_string_append_len’
/usr/include/glib-2.0/glib/gstring.h:247:42: note: in definition of macro ‘g_string_append_len’
<built-in>: note: argument 1 of ‘__builtin_strlen’ must be non-null
#   59|   
#   60|     if (g_str_has_suffix (css_file, ".css"))
#   61|->     g_string_append_len (file, css_file, strlen (css_file) - 4);
#   62|     else
#   63|       g_string_append (file, css_file);

Error: CPPCHECK_WARNING: [#def62]
gtk4-4.14.2-build/gtk-4.14.2/testsuite/css/style/test-css-style.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def63]
gtk4-4.14.2-build/gtk-4.14.2/testsuite/css/transition.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def64]
gtk4-4.14.2-build/gtk-4.14.2/testsuite/gdk/array.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def65]
gtk4-4.14.2-build/gtk-4.14.2/testsuite/gdk/clipboard-client.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def66]
gtk4-4.14.2-build/gtk-4.14.2/testsuite/gdk/clipboard.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def67]
gtk4-4.14.2-build/gtk-4.14.2/testsuite/gdk/contentformats.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CLANG_WARNING: [#def68]
gtk4-4.14.2-build/gtk-4.14.2/testsuite/gdk/contentserializer.c:401:3: warning[unix.Malloc]: Potential leak of memory pointed to by 'data'
#  399|     g_value_take_boxed (value, data);
#  400|   
#  401|->   gdk_content_deserializer_return_success (deserializer);
#  402|   }
#  403|   

Error: CPPCHECK_WARNING: [#def69]
gtk4-4.14.2-build/gtk-4.14.2/testsuite/gdk/dmabufformats.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def70]
gtk4-4.14.2-build/gtk-4.14.2/testsuite/gdk/dmabuftexture.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def71]
gtk4-4.14.2-build/gtk-4.14.2/testsuite/gdk/glcontext.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def72]
gtk4-4.14.2-build/gtk-4.14.2/testsuite/gdk/gltexture.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def73]
gtk4-4.14.2-build/gtk-4.14.2/testsuite/gdk/image.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING (CWE-457): [#def74]
gtk4-4.14.2-build/gtk-4.14.2/testsuite/gdk/image.c:65: error[legacyUninitvar]: Uninitialized variable: texture
#   63|     g_assert_cmpint (gdk_texture_get_height (texture), ==, 32);
#   64|   
#   65|->   g_object_unref (texture);
#   66|     g_bytes_unref (bytes);
#   67|     g_object_unref (file);

Error: CPPCHECK_WARNING: [#def75]
gtk4-4.14.2-build/gtk-4.14.2/testsuite/gdk/keysyms.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def76]
gtk4-4.14.2-build/gtk-4.14.2/testsuite/gdk/memorytexture.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def77]
gtk4-4.14.2-build/gtk-4.14.2/testsuite/gdk/popuplayout.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def78]
gtk4-4.14.2-build/gtk-4.14.2/testsuite/gdk/seat.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def79]
gtk4-4.14.2-build/gtk-4.14.2/testsuite/gdk/subsurface.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def80]
gtk4-4.14.2-build/gtk-4.14.2/testsuite/gdk/texture.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def81]
gtk4-4.14.2-build/gtk-4.14.2/testsuite/gdk/toplevellayout.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def82]
gtk4-4.14.2-build/gtk-4.14.2/testsuite/gsk/compare-render.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def83]
gtk4-4.14.2-build/gtk-4.14.2/testsuite/gsk/curve.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def84]
gtk4-4.14.2-build/gtk-4.14.2/testsuite/gsk/half-float.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def85]
gtk4-4.14.2-build/gtk-4.14.2/testsuite/gsk/misc.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: GCC_ANALYZER_WARNING (CWE-686): [#def86]
gtk4-4.14.2-build/gtk-4.14.2/testsuite/gsk/misc.c:50:3: warning[-Wanalyzer-va-arg-type-mismatch]: ‘va_arg’ expected ‘double’ but received ‘GskRenderNode *’ {aka ‘struct _GskRenderNode *’} for variadic argument 1 of ‘ap’
/usr/include/glib-2.0/gobject/gvaluecollector.h:85:5: note: in expansion of macro ‘G_VALUE_COLLECT_INIT2’
/usr/include/glib-2.0/gobject/gvaluecollector.h:174:3: note: in expansion of macro ‘G_VALUE_COLLECT_INIT’
gtk4-4.14.2-build/gtk-4.14.2/testsuite/gsk/misc.c:50:3: note: in expansion of macro ‘G_VALUE_COLLECT’
/usr/include/glib-2.0/gobject/gvaluecollector.h:85:5: note: in expansion of macro ‘G_VALUE_COLLECT_INIT2’
/usr/include/glib-2.0/gobject/gvaluecollector.h:174:3: note: in expansion of macro ‘G_VALUE_COLLECT_INIT’
gtk4-4.14.2-build/gtk-4.14.2/testsuite/gsk/misc.c:50:3: note: in expansion of macro ‘G_VALUE_COLLECT’
/usr/include/glib-2.0/gobject/gvaluecollector.h:85:5: note: in expansion of macro ‘G_VALUE_COLLECT_INIT2’
/usr/include/glib-2.0/gobject/gvaluecollector.h:174:3: note: in expansion of macro ‘G_VALUE_COLLECT_INIT’
gtk4-4.14.2-build/gtk-4.14.2/testsuite/gsk/misc.c:50:3: note: in expansion of macro ‘G_VALUE_COLLECT’
/usr/include/glib-2.0/gobject/gvaluecollector.h:85:5: note: in expansion of macro ‘G_VALUE_COLLECT_INIT2’
/usr/include/glib-2.0/gobject/gvaluecollector.h:174:3: note: in expansion of macro ‘G_VALUE_COLLECT_INIT’
gtk4-4.14.2-build/gtk-4.14.2/testsuite/gsk/misc.c:50:3: note: in expansion of macro ‘G_VALUE_COLLECT’
#   48|   
#   49|     va_start (ap, node);
#   50|->   G_VALUE_COLLECT (&value, ap, 0, &err);
#   51|     va_end (ap);
#   52|   

Error: GCC_ANALYZER_WARNING (CWE-686): [#def87]
gtk4-4.14.2-build/gtk-4.14.2/testsuite/gsk/misc.c:50:3: warning[-Wanalyzer-va-arg-type-mismatch]: ‘va_arg’ expected ‘double’ but received ‘void *’ for variadic argument 2 of ‘ap’
/usr/include/glib-2.0/gobject/gvaluecollector.h:85:5: note: in expansion of macro ‘G_VALUE_COLLECT_INIT2’
/usr/include/glib-2.0/gobject/gvaluecollector.h:174:3: note: in expansion of macro ‘G_VALUE_COLLECT_INIT’
gtk4-4.14.2-build/gtk-4.14.2/testsuite/gsk/misc.c:50:3: note: in expansion of macro ‘G_VALUE_COLLECT’
/usr/include/glib-2.0/gobject/gvaluecollector.h:85:5: note: in expansion of macro ‘G_VALUE_COLLECT_INIT2’
/usr/include/glib-2.0/gobject/gvaluecollector.h:174:3: note: in expansion of macro ‘G_VALUE_COLLECT_INIT’
gtk4-4.14.2-build/gtk-4.14.2/testsuite/gsk/misc.c:50:3: note: in expansion of macro ‘G_VALUE_COLLECT’
/usr/include/glib-2.0/gobject/gvaluecollector.h:85:5: note: in expansion of macro ‘G_VALUE_COLLECT_INIT2’
/usr/include/glib-2.0/gobject/gvaluecollector.h:174:3: note: in expansion of macro ‘G_VALUE_COLLECT_INIT’
gtk4-4.14.2-build/gtk-4.14.2/testsuite/gsk/misc.c:50:3: note: in expansion of macro ‘G_VALUE_COLLECT’
/usr/include/glib-2.0/gobject/gvaluecollector.h:85:5: note: in expansion of macro ‘G_VALUE_COLLECT_INIT2’
/usr/include/glib-2.0/gobject/gvaluecollector.h:174:3: note: in expansion of macro ‘G_VALUE_COLLECT_INIT’
gtk4-4.14.2-build/gtk-4.14.2/testsuite/gsk/misc.c:50:3: note: in expansion of macro ‘G_VALUE_COLLECT’
/usr/include/glib-2.0/gobject/gvaluecollector.h:85:5: note: in expansion of macro ‘G_VALUE_COLLECT_INIT2’
/usr/include/glib-2.0/gobject/gvaluecollector.h:174:3: note: in expansion of macro ‘G_VALUE_COLLECT_INIT’
gtk4-4.14.2-build/gtk-4.14.2/testsuite/gsk/misc.c:50:3: note: in expansion of macro ‘G_VALUE_COLLECT’
/usr/include/glib-2.0/gobject/gvaluecollector.h:85:5: note: in expansion of macro ‘G_VALUE_COLLECT_INIT2’
/usr/include/glib-2.0/gobject/gvaluecollector.h:174:3: note: in expansion of macro ‘G_VALUE_COLLECT_INIT’
gtk4-4.14.2-build/gtk-4.14.2/testsuite/gsk/misc.c:50:3: note: in expansion of macro ‘G_VALUE_COLLECT’
/usr/include/glib-2.0/gobject/gvaluecollector.h:85:5: note: in expansion of macro ‘G_VALUE_COLLECT_INIT2’
/usr/include/glib-2.0/gobject/gvaluecollector.h:174:3: note: in expansion of macro ‘G_VALUE_COLLECT_INIT’
gtk4-4.14.2-build/gtk-4.14.2/testsuite/gsk/misc.c:50:3: note: in expansion of macro ‘G_VALUE_COLLECT’
/usr/include/glib-2.0/gobject/gvaluecollector.h:85:5: note: in expansion of macro ‘G_VALUE_COLLECT_INIT2’
/usr/include/glib-2.0/gobject/gvaluecollector.h:174:3: note: in expansion of macro ‘G_VALUE_COLLECT_INIT’
gtk4-4.14.2-build/gtk-4.14.2/testsuite/gsk/misc.c:50:3: note: in expansion of macro ‘G_VALUE_COLLECT’
#   48|   
#   49|     va_start (ap, node);
#   50|->   G_VALUE_COLLECT (&value, ap, 0, &err);
#   51|     va_end (ap);
#   52|   

Error: GCC_ANALYZER_WARNING (CWE-686): [#def88]
gtk4-4.14.2-build/gtk-4.14.2/testsuite/gsk/misc.c: scope_hint: In function ‘test_collect_varargs’
gtk4-4.14.2-build/gtk-4.14.2/testsuite/gsk/misc.c:50:3: warning[-Wanalyzer-va-arg-type-mismatch]: ‘va_arg’ expected ‘int’ but received ‘GskRenderNode *’ {aka ‘struct _GskRenderNode *’} for variadic argument 1 of ‘ap’
gtk4-4.14.2-build/gtk-4.14.2/testsuite/gsk/misc.c:4: included_from: Included from here.
/usr/include/glib-2.0/gobject/gvaluecollector.h:85:5: note: in expansion of macro ‘G_VALUE_COLLECT_INIT2’
/usr/include/glib-2.0/gobject/gvaluecollector.h:174:3: note: in expansion of macro ‘G_VALUE_COLLECT_INIT’
gtk4-4.14.2-build/gtk-4.14.2/testsuite/gsk/misc.c:50:3: note: in expansion of macro ‘G_VALUE_COLLECT’
/usr/include/glib-2.0/gobject/gvaluecollector.h:85:5: note: in expansion of macro ‘G_VALUE_COLLECT_INIT2’
/usr/include/glib-2.0/gobject/gvaluecollector.h:174:3: note: in expansion of macro ‘G_VALUE_COLLECT_INIT’
gtk4-4.14.2-build/gtk-4.14.2/testsuite/gsk/misc.c:50:3: note: in expansion of macro ‘G_VALUE_COLLECT’
/usr/include/glib-2.0/gobject/gvaluecollector.h:85:5: note: in expansion of macro ‘G_VALUE_COLLECT_INIT2’
/usr/include/glib-2.0/gobject/gvaluecollector.h:174:3: note: in expansion of macro ‘G_VALUE_COLLECT_INIT’
gtk4-4.14.2-build/gtk-4.14.2/testsuite/gsk/misc.c:50:3: note: in expansion of macro ‘G_VALUE_COLLECT’
/usr/include/glib-2.0/gobject/gvaluecollector.h:85:5: note: in expansion of macro ‘G_VALUE_COLLECT_INIT2’
/usr/include/glib-2.0/gobject/gvaluecollector.h:174:3: note: in expansion of macro ‘G_VALUE_COLLECT_INIT’
gtk4-4.14.2-build/gtk-4.14.2/testsuite/gsk/misc.c:50:3: note: in expansion of macro ‘G_VALUE_COLLECT’
#   48|   
#   49|     va_start (ap, node);
#   50|->   G_VALUE_COLLECT (&value, ap, 0, &err);
#   51|     va_end (ap);
#   52|   

Error: GCC_ANALYZER_WARNING (CWE-686): [#def89]
gtk4-4.14.2-build/gtk-4.14.2/testsuite/gsk/misc.c:50:3: warning[-Wanalyzer-va-arg-type-mismatch]: ‘va_arg’ expected ‘int’ but received ‘void *’ for variadic argument 2 of ‘ap’
/usr/include/glib-2.0/gobject/gvaluecollector.h:85:5: note: in expansion of macro ‘G_VALUE_COLLECT_INIT2’
/usr/include/glib-2.0/gobject/gvaluecollector.h:174:3: note: in expansion of macro ‘G_VALUE_COLLECT_INIT’
gtk4-4.14.2-build/gtk-4.14.2/testsuite/gsk/misc.c:50:3: note: in expansion of macro ‘G_VALUE_COLLECT’
/usr/include/glib-2.0/gobject/gvaluecollector.h:85:5: note: in expansion of macro ‘G_VALUE_COLLECT_INIT2’
/usr/include/glib-2.0/gobject/gvaluecollector.h:174:3: note: in expansion of macro ‘G_VALUE_COLLECT_INIT’
gtk4-4.14.2-build/gtk-4.14.2/testsuite/gsk/misc.c:50:3: note: in expansion of macro ‘G_VALUE_COLLECT’
/usr/include/glib-2.0/gobject/gvaluecollector.h:85:5: note: in expansion of macro ‘G_VALUE_COLLECT_INIT2’
/usr/include/glib-2.0/gobject/gvaluecollector.h:174:3: note: in expansion of macro ‘G_VALUE_COLLECT_INIT’
gtk4-4.14.2-build/gtk-4.14.2/testsuite/gsk/misc.c:50:3: note: in expansion of macro ‘G_VALUE_COLLECT’
/usr/include/glib-2.0/gobject/gvaluecollector.h:85:5: note: in expansion of macro ‘G_VALUE_COLLECT_INIT2’
/usr/include/glib-2.0/gobject/gvaluecollector.h:174:3: note: in expansion of macro ‘G_VALUE_COLLECT_INIT’
gtk4-4.14.2-build/gtk-4.14.2/testsuite/gsk/misc.c:50:3: note: in expansion of macro ‘G_VALUE_COLLECT’
/usr/include/glib-2.0/gobject/gvaluecollector.h:85:5: note: in expansion of macro ‘G_VALUE_COLLECT_INIT2’
/usr/include/glib-2.0/gobject/gvaluecollector.h:174:3: note: in expansion of macro ‘G_VALUE_COLLECT_INIT’
gtk4-4.14.2-build/gtk-4.14.2/testsuite/gsk/misc.c:50:3: note: in expansion of macro ‘G_VALUE_COLLECT’
/usr/include/glib-2.0/gobject/gvaluecollector.h:85:5: note: in expansion of macro ‘G_VALUE_COLLECT_INIT2’
/usr/include/glib-2.0/gobject/gvaluecollector.h:174:3: note: in expansion of macro ‘G_VALUE_COLLECT_INIT’
gtk4-4.14.2-build/gtk-4.14.2/testsuite/gsk/misc.c:50:3: note: in expansion of macro ‘G_VALUE_COLLECT’
/usr/include/glib-2.0/gobject/gvaluecollector.h:85:5: note: in expansion of macro ‘G_VALUE_COLLECT_INIT2’
/usr/include/glib-2.0/gobject/gvaluecollector.h:174:3: note: in expansion of macro ‘G_VALUE_COLLECT_INIT’
gtk4-4.14.2-build/gtk-4.14.2/testsuite/gsk/misc.c:50:3: note: in expansion of macro ‘G_VALUE_COLLECT’
/usr/include/glib-2.0/gobject/gvaluecollector.h:85:5: note: in expansion of macro ‘G_VALUE_COLLECT_INIT2’
/usr/include/glib-2.0/gobject/gvaluecollector.h:174:3: note: in expansion of macro ‘G_VALUE_COLLECT_INIT’
gtk4-4.14.2-build/gtk-4.14.2/testsuite/gsk/misc.c:50:3: note: in expansion of macro ‘G_VALUE_COLLECT’
#   48|   
#   49|     va_start (ap, node);
#   50|->   G_VALUE_COLLECT (&value, ap, 0, &err);
#   51|     va_end (ap);
#   52|   

Error: GCC_ANALYZER_WARNING (CWE-686): [#def90]
gtk4-4.14.2-build/gtk-4.14.2/testsuite/gsk/misc.c:50:3: warning[-Wanalyzer-va-arg-type-mismatch]: ‘va_arg’ expected ‘long int’ but received ‘GskRenderNode *’ {aka ‘struct _GskRenderNode *’} for variadic argument 1 of ‘ap’
/usr/include/glib-2.0/gobject/gvaluecollector.h:85:5: note: in expansion of macro ‘G_VALUE_COLLECT_INIT2’
/usr/include/glib-2.0/gobject/gvaluecollector.h:174:3: note: in expansion of macro ‘G_VALUE_COLLECT_INIT’
gtk4-4.14.2-build/gtk-4.14.2/testsuite/gsk/misc.c:50:3: note: in expansion of macro ‘G_VALUE_COLLECT’
/usr/include/glib-2.0/gobject/gvaluecollector.h:85:5: note: in expansion of macro ‘G_VALUE_COLLECT_INIT2’
/usr/include/glib-2.0/gobject/gvaluecollector.h:174:3: note: in expansion of macro ‘G_VALUE_COLLECT_INIT’
gtk4-4.14.2-build/gtk-4.14.2/testsuite/gsk/misc.c:50:3: note: in expansion of macro ‘G_VALUE_COLLECT’
/usr/include/glib-2.0/gobject/gvaluecollector.h:85:5: note: in expansion of macro ‘G_VALUE_COLLECT_INIT2’
/usr/include/glib-2.0/gobject/gvaluecollector.h:174:3: note: in expansion of macro ‘G_VALUE_COLLECT_INIT’
gtk4-4.14.2-build/gtk-4.14.2/testsuite/gsk/misc.c:50:3: note: in expansion of macro ‘G_VALUE_COLLECT’
/usr/include/glib-2.0/gobject/gvaluecollector.h:85:5: note: in expansion of macro ‘G_VALUE_COLLECT_INIT2’
/usr/include/glib-2.0/gobject/gvaluecollector.h:174:3: note: in expansion of macro ‘G_VALUE_COLLECT_INIT’
gtk4-4.14.2-build/gtk-4.14.2/testsuite/gsk/misc.c:50:3: note: in expansion of macro ‘G_VALUE_COLLECT’
#   48|   
#   49|     va_start (ap, node);
#   50|->   G_VALUE_COLLECT (&value, ap, 0, &err);
#   51|     va_end (ap);
#   52|   

Error: GCC_ANALYZER_WARNING (CWE-686): [#def91]
gtk4-4.14.2-build/gtk-4.14.2/testsuite/gsk/misc.c:50:3: warning[-Wanalyzer-va-arg-type-mismatch]: ‘va_arg’ expected ‘long int’ but received ‘void *’ for variadic argument 2 of ‘ap’
/usr/include/glib-2.0/gobject/gvaluecollector.h:85:5: note: in expansion of macro ‘G_VALUE_COLLECT_INIT2’
/usr/include/glib-2.0/gobject/gvaluecollector.h:174:3: note: in expansion of macro ‘G_VALUE_COLLECT_INIT’
gtk4-4.14.2-build/gtk-4.14.2/testsuite/gsk/misc.c:50:3: note: in expansion of macro ‘G_VALUE_COLLECT’
/usr/include/glib-2.0/gobject/gvaluecollector.h:85:5: note: in expansion of macro ‘G_VALUE_COLLECT_INIT2’
/usr/include/glib-2.0/gobject/gvaluecollector.h:174:3: note: in expansion of macro ‘G_VALUE_COLLECT_INIT’
gtk4-4.14.2-build/gtk-4.14.2/testsuite/gsk/misc.c:50:3: note: in expansion of macro ‘G_VALUE_COLLECT’
/usr/include/glib-2.0/gobject/gvaluecollector.h:85:5: note: in expansion of macro ‘G_VALUE_COLLECT_INIT2’
/usr/include/glib-2.0/gobject/gvaluecollector.h:174:3: note: in expansion of macro ‘G_VALUE_COLLECT_INIT’
gtk4-4.14.2-build/gtk-4.14.2/testsuite/gsk/misc.c:50:3: note: in expansion of macro ‘G_VALUE_COLLECT’
/usr/include/glib-2.0/gobject/gvaluecollector.h:85:5: note: in expansion of macro ‘G_VALUE_COLLECT_INIT2’
/usr/include/glib-2.0/gobject/gvaluecollector.h:174:3: note: in expansion of macro ‘G_VALUE_COLLECT_INIT’
gtk4-4.14.2-build/gtk-4.14.2/testsuite/gsk/misc.c:50:3: note: in expansion of macro ‘G_VALUE_COLLECT’
/usr/include/glib-2.0/gobject/gvaluecollector.h:85:5: note: in expansion of macro ‘G_VALUE_COLLECT_INIT2’
/usr/include/glib-2.0/gobject/gvaluecollector.h:174:3: note: in expansion of macro ‘G_VALUE_COLLECT_INIT’
gtk4-4.14.2-build/gtk-4.14.2/testsuite/gsk/misc.c:50:3: note: in expansion of macro ‘G_VALUE_COLLECT’
/usr/include/glib-2.0/gobject/gvaluecollector.h:85:5: note: in expansion of macro ‘G_VALUE_COLLECT_INIT2’
/usr/include/glib-2.0/gobject/gvaluecollector.h:174:3: note: in expansion of macro ‘G_VALUE_COLLECT_INIT’
gtk4-4.14.2-build/gtk-4.14.2/testsuite/gsk/misc.c:50:3: note: in expansion of macro ‘G_VALUE_COLLECT’
/usr/include/glib-2.0/gobject/gvaluecollector.h:85:5: note: in expansion of macro ‘G_VALUE_COLLECT_INIT2’
/usr/include/glib-2.0/gobject/gvaluecollector.h:174:3: note: in expansion of macro ‘G_VALUE_COLLECT_INIT’
gtk4-4.14.2-build/gtk-4.14.2/testsuite/gsk/misc.c:50:3: note: in expansion of macro ‘G_VALUE_COLLECT’
/usr/include/glib-2.0/gobject/gvaluecollector.h:85:5: note: in expansion of macro ‘G_VALUE_COLLECT_INIT2’
/usr/include/glib-2.0/gobject/gvaluecollector.h:174:3: note: in expansion of macro ‘G_VALUE_COLLECT_INIT’
gtk4-4.14.2-build/gtk-4.14.2/testsuite/gsk/misc.c:50:3: note: in expansion of macro ‘G_VALUE_COLLECT’
#   48|   
#   49|     va_start (ap, node);
#   50|->   G_VALUE_COLLECT (&value, ap, 0, &err);
#   51|     va_end (ap);
#   52|   

Error: CPPCHECK_WARNING: [#def92]
gtk4-4.14.2-build/gtk-4.14.2/testsuite/gsk/node-parser.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: GCC_ANALYZER_WARNING (CWE-688): [#def93]
/usr/include/glib-2.0/glib/giochannel.h:36: included_from: Included from here.
/usr/include/glib-2.0/glib.h:56: included_from: Included from here.
gtk4-4.14.2-build/gtk-4.14.2/gtk/css/gtkcss.h:29: included_from: Included from here.
gtk4-4.14.2-build/gtk-4.14.2/gtk/gtk.h:29: included_from: Included from here.
gtk4-4.14.2-build/gtk-4.14.2/testsuite/gsk/node-parser.c:23: included_from: Included from here.
gtk4-4.14.2-build/gtk-4.14.2/testsuite/gsk/node-parser.c: scope_hint: In function ‘test_get_errors_file’
gtk4-4.14.2-build/gtk-4.14.2/testsuite/gsk/node-parser.c:52:43: warning[-Wanalyzer-null-argument]: use of NULL ‘node_file’ where non-null expected
/usr/include/glib-2.0/glib/gstring.h:247:42: note: in definition of macro ‘g_string_append_len’
gtk4-4.14.2-build/gtk-4.14.2/testsuite/gsk/node-parser.c: scope_hint: In function ‘test_get_errors_file’
/usr/lib64/glib-2.0/include/glibconfig.h:9: included_from: Included from here.
/usr/include/glib-2.0/glib/gtypes.h:34: included_from: Included from here.
/usr/include/glib-2.0/glib/galloca.h:34: included_from: Included from here.
/usr/include/glib-2.0/glib.h:32: included_from: Included from here.
/usr/include/glib-2.0/glib/gmacros.h:1243:31: note: in expansion of macro ‘_G_BOOLEAN_EXPR_IMPL’
/usr/include/glib-2.0/glib/gmacros.h:1244:43: note: in expansion of macro ‘_G_BOOLEAN_EXPR’
/usr/include/glib-2.0/glib/gtestutils.h:255:49: note: in expansion of macro ‘G_LIKELY’
gtk4-4.14.2-build/gtk-4.14.2/testsuite/gsk/node-parser.c:176:3: note: in expansion of macro ‘g_assert_nonnull’
gtk4-4.14.2-build/gtk-4.14.2/testsuite/gsk/node-parser.c:39:7: note: in expansion of macro ‘g_string_free’
/usr/include/glib-2.0/glib/gstring.h:37: included_from: Included from here.
gtk4-4.14.2-build/gtk-4.14.2/testsuite/gsk/node-parser.c:40:14: note: in expansion of macro ‘g_strdup’
gtk4-4.14.2-build/gtk-4.14.2/testsuite/gsk/node-parser.c: scope_hint: In function ‘test_get_errors_file’
gtk4-4.14.2-build/gtk-4.14.2/testsuite/gsk/node-parser.c:40:14: note: in expansion of macro ‘g_strdup’
/usr/include/glib-2.0/glib/glist.h:34: included_from: Included from here.
/usr/include/glib-2.0/glib/ghash.h:36: included_from: Included from here.
/usr/include/glib-2.0/glib.h:52: included_from: Included from here.
gtk4-4.14.2-build/gtk-4.14.2/testsuite/gsk/node-parser.c:206:3: note: in expansion of macro ‘g_clear_pointer’
/usr/include/glib-2.0/glib/gmacros.h:1243:31: note: in expansion of macro ‘_G_BOOLEAN_EXPR_IMPL’
/usr/include/glib-2.0/glib/gmacros.h:1245:45: note: in expansion of macro ‘_G_BOOLEAN_EXPR’
/usr/include/glib-2.0/glib/gstrfuncs.h:190:11: note: in expansion of macro ‘G_UNLIKELY’
gtk4-4.14.2-build/gtk-4.14.2/testsuite/gsk/node-parser.c:51:7: note: in expansion of macro ‘g_str_has_suffix’
/usr/include/glib-2.0/glib/gstring.h:247:42: note: in definition of macro ‘g_string_append_len’
/usr/include/glib-2.0/glib/gstring.h:247:42: note: in definition of macro ‘g_string_append_len’
<built-in>: note: argument 1 of ‘__builtin_strlen’ must be non-null
#   50|   
#   51|     if (g_str_has_suffix (node_file, ".node"))
#   52|->     g_string_append_len (file, node_file, strlen (node_file) - 5);
#   53|     else
#   54|       g_string_append (file, node_file);

Error: CPPCHECK_WARNING: [#def94]
gtk4-4.14.2-build/gtk-4.14.2/testsuite/gsk/offload.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def95]
gtk4-4.14.2-build/gtk-4.14.2/testsuite/gsk/path-special-cases.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def96]
gtk4-4.14.2-build/gtk-4.14.2/testsuite/gsk/path-utils.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def97]
gtk4-4.14.2-build/gtk-4.14.2/testsuite/gsk/path.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def98]
gtk4-4.14.2-build/gtk-4.14.2/testsuite/gsk/rounded-rect.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def99]
gtk4-4.14.2-build/gtk-4.14.2/testsuite/gsk/scaling.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def100]
gtk4-4.14.2-build/gtk-4.14.2/testsuite/gsk/shader.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def101]
gtk4-4.14.2-build/gtk-4.14.2/testsuite/gsk/transform.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def102]
gtk4-4.14.2-build/gtk-4.14.2/testsuite/gtk/accel.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def103]
gtk4-4.14.2-build/gtk-4.14.2/testsuite/gtk/accessor-apis.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def104]
gtk4-4.14.2-build/gtk-4.14.2/testsuite/gtk/action.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def105]
gtk4-4.14.2-build/gtk-4.14.2/testsuite/gtk/bitmask.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def106]
gtk4-4.14.2-build/gtk-4.14.2/testsuite/gtk/bitset.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def107]
gtk4-4.14.2-build/gtk-4.14.2/testsuite/gtk/builder.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CLANG_WARNING: [#def108]
gtk4-4.14.2-build/gtk-4.14.2/testsuite/gtk/builder.c:2077:3: warning[deadcode.DeadStores]: Value stored to 'ret' is never read
# 2075|     error = NULL;
# 2076|     builder = gtk_builder_new ();
# 2077|->   ret = gtk_builder_add_objects_from_string (builder, buffer, -1, objects, &error);
# 2078|     g_assert_no_error (error);
# 2079|     obj = gtk_builder_get_object (builder, "window");

Error: GCC_ANALYZER_WARNING (CWE-688): [#def109]
gtk4-4.14.2-build/gtk-4.14.2/testsuite/gtk/builderparser.c: scope_hint: In function ‘get_expected_filename’
gtk4-4.14.2-build/gtk-4.14.2/testsuite/gtk/builderparser.c:68:7: warning[-Wanalyzer-null-argument]: use of NULL where non-null expected
/usr/include/glib-2.0/glib/gstring.h:37: included_from: Included from here.
/usr/include/glib-2.0/glib/giochannel.h:36: included_from: Included from here.
/usr/include/glib-2.0/glib.h:56: included_from: Included from here.
gtk4-4.14.2-build/gtk-4.14.2/gtk/css/gtkcss.h:29: included_from: Included from here.
gtk4-4.14.2-build/gtk-4.14.2/gtk/gtk.h:29: included_from: Included from here.
gtk4-4.14.2-build/gtk-4.14.2/testsuite/gtk/builderparser.c:23: included_from: Included from here.
gtk4-4.14.2-build/gtk-4.14.2/testsuite/gtk/builderparser.c:67:7: note: in expansion of macro ‘g_strdup’
gtk4-4.14.2-build/gtk-4.14.2/testsuite/gtk/builderparser.c: scope_hint: In function ‘get_expected_filename’
<built-in>: note: argument 1 of ‘__builtin_strstr’ must be non-null
#   66|   
#   67|     f = g_strdup (filename);
#   68|->   p = strstr (f, ".ui");
#   69|     if (p)
#   70|       *p = 0;

Error: CPPCHECK_WARNING: [#def110]
gtk4-4.14.2-build/gtk-4.14.2/testsuite/gtk/colorutils.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def111]
gtk4-4.14.2-build/gtk-4.14.2/testsuite/gtk/composetable.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def112]
gtk4-4.14.2-build/gtk-4.14.2/testsuite/gtk/defaultvalue.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def113]
gtk4-4.14.2-build/gtk-4.14.2/testsuite/gtk/expression.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def114]
gtk4-4.14.2-build/gtk-4.14.2/testsuite/gtk/filterlistmodel-exhaustive.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def115]
gtk4-4.14.2-build/gtk-4.14.2/testsuite/gtk/filterlistmodel.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def116]
gtk4-4.14.2-build/gtk-4.14.2/testsuite/gtk/filtermodel.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CLANG_WARNING: [#def117]
gtk4-4.14.2-build/gtk-4.14.2/testsuite/gtk/filtermodel.c:5579:3: warning[deadcode.DeadStores]: Value stored to 'rowref' is never read
# 5577|   
# 5578|     path = gtk_tree_path_new_from_indices (3, 0, 0, 0, -1);
# 5579|->   rowref = gtk_tree_row_reference_new (sort, path);
# 5580|     gtk_tree_path_free (path);
# 5581|   

Error: CLANG_WARNING: [#def118]
gtk4-4.14.2-build/gtk-4.14.2/testsuite/gtk/filtermodel.c:5583:3: warning[deadcode.DeadStores]: Value stored to 'rowref' is never read
# 5581|   
# 5582|     path = gtk_tree_path_new_from_indices (3, 0, 0, 0, -1);
# 5583|->   rowref = gtk_tree_row_reference_new (sort, path);
# 5584|     gtk_tree_path_free (path);
# 5585|   

Error: CLANG_WARNING: [#def119]
gtk4-4.14.2-build/gtk-4.14.2/testsuite/gtk/filtermodel.c:5587:3: warning[deadcode.DeadStores]: Value stored to 'rowref' is never read
# 5585|   
# 5586|     path = gtk_tree_path_new_from_indices (3, 0, -1);
# 5587|->   rowref = gtk_tree_row_reference_new (sort, path);
# 5588|     gtk_tree_path_free (path);
# 5589|   

Error: CLANG_WARNING: [#def120]
gtk4-4.14.2-build/gtk-4.14.2/testsuite/gtk/filtermodel.c:5628:3: warning[deadcode.DeadStores]: Value stored to 'rowref' is never read
# 5626|   
# 5627|     path = gtk_tree_path_new_from_indices (3, 0, 0, 0, -1);
# 5628|->   rowref = gtk_tree_row_reference_new (filter, path);
# 5629|     gtk_tree_path_free (path);
# 5630|   

Error: CLANG_WARNING: [#def121]
gtk4-4.14.2-build/gtk-4.14.2/testsuite/gtk/filtermodel.c:5632:3: warning[deadcode.DeadStores]: Value stored to 'rowref' is never read
# 5630|   
# 5631|     path = gtk_tree_path_new_from_indices (3, 0, 0, 0, -1);
# 5632|->   rowref = gtk_tree_row_reference_new (filter, path);
# 5633|     gtk_tree_path_free (path);
# 5634|   

Error: CLANG_WARNING: [#def122]
gtk4-4.14.2-build/gtk-4.14.2/testsuite/gtk/filtermodel.c:5636:3: warning[deadcode.DeadStores]: Value stored to 'rowref' is never read
# 5634|   
# 5635|     path = gtk_tree_path_new_from_indices (3, 0, -1);
# 5636|->   rowref = gtk_tree_row_reference_new (filter, path);
# 5637|     gtk_tree_path_free (path);
# 5638|   

Error: CLANG_WARNING: [#def123]
gtk4-4.14.2-build/gtk-4.14.2/testsuite/gtk/filtermodel.c:5681:3: warning[deadcode.DeadStores]: Value stored to 'rowref' is never read
# 5679|   
# 5680|     path = gtk_tree_path_new_from_indices (0, 0, -1);
# 5681|->   rowref = gtk_tree_row_reference_new (filter, path);
# 5682|     gtk_tree_path_free (path);
# 5683|   

Error: CLANG_WARNING: [#def124]
gtk4-4.14.2-build/gtk-4.14.2/testsuite/gtk/filtermodel.c:5685:3: warning[deadcode.DeadStores]: Value stored to 'rowref' is never read
# 5683|   
# 5684|     path = gtk_tree_path_new_from_indices (0, 0, -1);
# 5685|->   rowref = gtk_tree_row_reference_new (filter, path);
# 5686|     gtk_tree_path_free (path);
# 5687|   

Error: CPPCHECK_WARNING: [#def125]
gtk4-4.14.2-build/gtk-4.14.2/testsuite/gtk/flattenlistmodel.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def126]
gtk4-4.14.2-build/gtk-4.14.2/testsuite/gtk/gtktreemodelrefcount.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def127]
gtk4-4.14.2-build/gtk-4.14.2/testsuite/gtk/icontheme.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def128]
gtk4-4.14.2-build/gtk-4.14.2/testsuite/gtk/label.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def129]
gtk4-4.14.2-build/gtk-4.14.2/testsuite/gtk/listbox.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def130]
gtk4-4.14.2-build/gtk-4.14.2/testsuite/gtk/multiselection.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def131]
gtk4-4.14.2-build/gtk-4.14.2/testsuite/gtk/notify.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def132]
gtk4-4.14.2-build/gtk-4.14.2/testsuite/gtk/object.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def133]
gtk4-4.14.2-build/gtk-4.14.2/testsuite/gtk/objects-finalize.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def134]
gtk4-4.14.2-build/gtk-4.14.2/testsuite/gtk/papersize.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def135]
gtk4-4.14.2-build/gtk-4.14.2/testsuite/gtk/rbtree.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CLANG_WARNING: [#def136]
gtk4-4.14.2-build/gtk-4.14.2/testsuite/gtk/recentmanager.c:336:3: warning[deadcode.DeadStores]: Value stored to 'n' is never read
#  334|     /* purge, add 1, purge again and check that 1 item has been purged */
#  335|     error = NULL;
#  336|->   n = gtk_recent_manager_purge_items (manager, &error);
#  337|     g_assert_null (error);
#  338|   

Error: CPPCHECK_WARNING: [#def137]
gtk4-4.14.2-build/gtk-4.14.2/testsuite/gtk/scrolledwindow.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def138]
gtk4-4.14.2-build/gtk-4.14.2/testsuite/gtk/shortcuts.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def139]
gtk4-4.14.2-build/gtk-4.14.2/testsuite/gtk/sorter.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def140]
gtk4-4.14.2-build/gtk-4.14.2/testsuite/gtk/sortlistmodel-exhaustive.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def141]
gtk4-4.14.2-build/gtk-4.14.2/testsuite/gtk/test-focus-chain.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def142]
gtk4-4.14.2-build/gtk-4.14.2/testsuite/gtk/textbuffer.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def143]
gtk4-4.14.2-build/gtk-4.14.2/testsuite/gtk/timsort.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def144]
gtk4-4.14.2-build/gtk-4.14.2/testsuite/gtk/treelistmodel.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def145]
gtk4-4.14.2-build/gtk-4.14.2/testsuite/gtk/treepath.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def146]
gtk4-4.14.2-build/gtk-4.14.2/testsuite/reftests/gtk-reftest.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CLANG_WARNING: [#def147]
gtk4-4.14.2-build/gtk-4.14.2/testsuite/reftests/gtk-reftest.c:293:60: warning[core.NullDereference]: Access to field 'message' results in a dereference of a null pointer (loaded from variable 'error')
#  291|     if (filename == NULL)
#  292|       {
#  293|->       g_test_message ("Not storing test result image: %s", error->message);
#  294|         g_error_free (error);
#  295|         return;

Error: CLANG_WARNING: [#def148]
gtk4-4.14.2-build/gtk-4.14.2/testsuite/reftests/gtk-reftest.c:318:59: warning[core.NullDereference]: Access to field 'message' results in a dereference of a null pointer (loaded from variable 'error')
#  316|     if (filename == NULL)
#  317|       {
#  318|->       g_test_message ("Not storing test result node: %s", error->message);
#  319|         g_error_free (error);
#  320|         return;

Error: CPPCHECK_WARNING: [#def149]
gtk4-4.14.2-build/gtk-4.14.2/testsuite/reftests/image-compare.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

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-28.us-west-2.compute.internal
diffbase-mock-configfedora-41-x86_64
diffbase-project-namegtk4-4.15.3-1.fc41
diffbase-store-results-to/tmp/tmpvko7xknb/gtk4-4.15.3-1.fc41.tar.xz
diffbase-time-created2024-07-03 13:56:09
diffbase-time-finished2024-07-03 14:22:53
diffbase-toolcsmock
diffbase-tool-args'/usr/bin/csmock' '-r' 'fedora-41-x86_64' '-t' 'cppcheck,gcc,clang,shellcheck' '-o' '/tmp/tmpvko7xknb/gtk4-4.15.3-1.fc41.tar.xz' '--gcc-analyze' '/tmp/tmpvko7xknb/gtk4-4.15.3-1.fc41.src.rpm'
diffbase-tool-versioncsmock-3.5.3-1.el9
enabled-pluginsclang, cppcheck, gcc, shellcheck
exit-code0
hostip-172-16-1-28.us-west-2.compute.internal
mock-configfedora-41-x86_64
project-namegtk4-4.14.2-2.fc40
store-results-to/tmp/tmp3rgiokoz/gtk4-4.14.2-2.fc40.tar.xz
time-created2024-07-03 13:08:06
time-finished2024-07-03 13:55:33
titleFixed defects
toolcsmock
tool-args'/usr/bin/csmock' '-r' 'fedora-41-x86_64' '-t' 'cppcheck,gcc,clang,shellcheck' '-o' '/tmp/tmp3rgiokoz/gtk4-4.14.2-2.fc40.tar.xz' '--gcc-analyze' '/tmp/tmp3rgiokoz/gtk4-4.14.2-2.fc40.src.rpm'
tool-versioncsmock-3.5.3-1.el9