Task #1991 - vte291-0.74.2-4.fc40/scan-results.err

back to task #1991
download
Error: CPPCHECK_WARNING:
vte291-0.74.2-build/vte-0.74.2/redhat-linux-build/src/marshal.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING:
vte291-0.74.2-build/vte-0.74.2/redhat-linux-build/tmp-introspecthd_wmryh/Vte-2.91.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CLANG_WARNING:
vte291-0.74.2-build/vte-0.74.2/redhat-linux-build/tmp-introspecthd_wmryh/Vte-2.91.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:
vte291-0.74.2-build/vte-0.74.2/redhat-linux-build/tmp-introspectv4u5lmy_/Vte-3.91.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CLANG_WARNING:
vte291-0.74.2-build/vte-0.74.2/redhat-linux-build/tmp-introspectv4u5lmy_/Vte-3.91.c:799:27: warning[core.NullDereference]: Access to field 'message' results in a dereference of a null pointer (loaded from variable 'error')

Error: COMPILER_WARNING (CWE-477):
vte291-0.74.2-build/vte-0.74.2/src/app/app.cc: scope_hint: In function ‘void vteapp_window_parse_geometry(VteappWindow*)’
vte291-0.74.2-build/vte-0.74.2/src/app/app.cc:1684:52: warning[-Wdeprecated-declarations]: ‘gboolean gtk_window_parse_geometry(GtkWindow*, const gchar*)’ is deprecated
# 1684 |                 auto rv = gtk_window_parse_geometry(GTK_WINDOW(window), options.geometry);
#      |                           ~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/gtk-3.0/gtk/gtkdialog.h:32: included_from: Included from here.
/usr/include/gtk-3.0/gtk/gtkaboutdialog.h:30: included_from: Included from here.
/usr/include/gtk-3.0/gtk/gtk.h:31: included_from: Included from here.
vte291-0.74.2-build/vte-0.74.2/src/app/app.cc:33: included_from: Included from here.
/usr/include/gtk-3.0/gtk/gtkwindow.h:443:10: note: declared here
#  443 | gboolean gtk_window_parse_geometry   (GtkWindow   *window,
#      |          ^~~~~~~~~~~~~~~~~~~~~~~~~
# 1682|   
# 1683|           if (options.geometry != nullptr) {
# 1684|->                 auto rv = gtk_window_parse_geometry(GTK_WINDOW(window), options.geometry);
# 1685|   
# 1686|                   if (!rv)

Error: COMPILER_WARNING (CWE-477):
vte291-0.74.2-build/vte-0.74.2/src/app/app.cc:1695:54: warning[-Wdeprecated-declarations]: ‘void gtk_window_resize_to_geometry(GtkWindow*, gint, gint)’ is deprecated: Use 'gtk_window_resize' instead
# 1695 |                         gtk_window_resize_to_geometry(GTK_WINDOW(window), columns, rows);
#      |                         ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/gtk-3.0/gtk/gtkwindow.h:451:6: note: declared here
#  451 | void gtk_window_resize_to_geometry   (GtkWindow *window,
#      |      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# 1693|                           gtk_window_get_default_size(GTK_WINDOW(window), &columns, &rows);
# 1694|                           vte_terminal_set_size(window->terminal, columns, rows);
# 1695|->                         gtk_window_resize_to_geometry(GTK_WINDOW(window), columns, rows);
# 1696|                   } else {
# 1697|                           /* Approximate the grid width from the passed pixel size. */

Error: COMPILER_WARNING (CWE-477):
vte291-0.74.2-build/vte-0.74.2/src/app/app.cc:1714:56: warning[-Wdeprecated-declarations]: ‘void gtk_window_set_default_geometry(GtkWindow*, gint, gint)’ is deprecated: Use 'gtk_window_set_default_size' instead
# 1714 |                         gtk_window_set_default_geometry(GTK_WINDOW(window),
#      |                         ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~
# 1715 |                                                         vte_terminal_get_column_count(window->terminal),
#      |                                                         ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# 1716 |                                                         vte_terminal_get_row_count(window->terminal));
#      |                                                         ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/gtk-3.0/gtk/gtkwindow.h:447:6: note: declared here
#  447 | void gtk_window_set_default_geometry (GtkWindow *window,
#      |      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# 1712|                   if (!options.no_geometry_hints) {
# 1713|                           /* Grid based */
# 1714|->                         gtk_window_set_default_geometry(GTK_WINDOW(window),
# 1715|                                                           vte_terminal_get_column_count(window->terminal),
# 1716|                                                           vte_terminal_get_row_count(window->terminal));

Error: COMPILER_WARNING (CWE-477):
vte291-0.74.2-build/vte-0.74.2/src/app/app.cc: scope_hint: In function ‘bool vteapp_window_show_context_menu(VteappWindow*, guint, guint32, GdkEvent*)’
vte291-0.74.2-build/vte-0.74.2/src/app/app.cc:2126:23: warning[-Wdeprecated-declarations]: ‘void gtk_menu_popup(GtkMenu*, GtkWidget*, GtkWidget*, GtkMenuPositionFunc, gpointer, guint, guint32)’ is deprecated: Use '(gtk_menu_popup_at_widget, gtk_menu_popup_at_pointer, gtk_menu_popup_at_rect)' instead
# 2126 |         gtk_menu_popup(GTK_MENU(popup), nullptr, nullptr, nullptr, nullptr, button, timestamp);
#      |         ~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/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,
#      |            ^~~~~~~~~~~~~~
# 2124|   
# 2125|           gtk_menu_attach_to_widget(GTK_MENU(popup), GTK_WIDGET(window->terminal), nullptr);
# 2126|->         gtk_menu_popup(GTK_MENU(popup), nullptr, nullptr, nullptr, nullptr, button, timestamp);
# 2127|           if (button == 0)
# 2128|                   gtk_menu_shell_select_first(GTK_MENU_SHELL(popup), true);

Error: COMPILER_WARNING (CWE-1164):
vte291-0.74.2-build/vte-0.74.2/src/app/app.cc:2297:1: warning[-Wunused-function]: ‘void notification_received_cb(VteTerminal*, const gchar*, const gchar*)’ defined but not used
# 2297 | notification_received_cb(VteTerminal *terminal,
#      | ^~~~~~~~~~~~~~~~~~~~~~~~
# 2295|   
# 2296|   static void
# 2297|-> notification_received_cb(VteTerminal *terminal,
# 2298|                            const gchar *summary,
# 2299|                            const gchar *body)

Error: COMPILER_WARNING (CWE-1164):
vte291-0.74.2-build/vte-0.74.2/src/app/app.cc:2305:1: warning[-Wunused-function]: ‘void shell_precmd_cb(VteTerminal*)’ defined but not used
# 2305 | shell_precmd_cb(VteTerminal *terminal)
#      | ^~~~~~~~~~~~~~~
# 2303|   
# 2304|   static void
# 2305|-> shell_precmd_cb(VteTerminal *terminal)
# 2306|   {
# 2307|           g_print("[shell] showing command prompt\n");

Error: COMPILER_WARNING (CWE-1164):
vte291-0.74.2-build/vte-0.74.2/src/app/app.cc:2311:1: warning[-Wunused-function]: ‘void shell_preexec_cb(VteTerminal*)’ defined but not used
# 2311 | shell_preexec_cb(VteTerminal *terminal)
#      | ^~~~~~~~~~~~~~~~
# 2309|   
# 2310|   static void
# 2311|-> shell_preexec_cb(VteTerminal *terminal)
# 2312|   {
# 2313|           g_print("[shell] executing command\n");

Error: COMPILER_WARNING (CWE-477):
vte291-0.74.2-build/vte-0.74.2/src/app/app.cc: scope_hint: In function ‘int main(int, char**)’
vte291-0.74.2-build/vte-0.74.2/src/app/app.cc:3144:44: warning[-Wdeprecated-declarations]: ‘void gdk_window_set_debug_updates(gboolean)’ is deprecated
# 3144 |                gdk_window_set_debug_updates(true);
#      |                ~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~
/usr/include/gtk-3.0/gdk/gdkseat.h:28: included_from: Included from here.
/usr/include/gtk-3.0/gdk/gdkdisplay.h:33: included_from: Included from here.
/usr/include/gtk-3.0/gdk/gdkscreen.h:32: included_from: Included from here.
/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/gtk-3.0/gdk/gdkwindow.h:1074:12: note: declared here
# 1074 | void       gdk_window_set_debug_updates   (gboolean      setting);
#      |            ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
# 3142|   #if VTE_GTK == 3
# 3143|          if (options.debug)
# 3144|->                gdk_window_set_debug_updates(true);
# 3145|   #endif /* VTE_GTK == 3 */
# 3146|   

Error: CLANG_WARNING:
vte291-0.74.2-build/vte-0.74.2/src/bidi.cc:243:58: warning[core.NullDereference]: Access to field 'c' results in a dereference of a null pointer (loaded from variable 'cell')
#  241|                   do {
#  242|                           auto prev_len = fribidi_chars_array->len;
#  243|->                         _vte_unistr_append_to_gunichars (cell->c, fribidi_chars_array);
#  244|                           g_assert_cmpint (fribidi_chars_array->len, >, prev_len);
#  245|   

Error: CLANG_WARNING:
vte291-0.74.2-build/vte-0.74.2/src/bidi.cc:693:33: warning[deadcode.DeadStores]: Value stored to 'tl' is never read
#  691|                                   }
#  692|                                   tv += cell->attr.columns();
#  693|->                                 tl += cell->attr.columns();
#  694|                           } else {
#  695|                                   /* LTR character directionality. */

Error: CPPCHECK_WARNING:
vte291-0.74.2-build/vte-0.74.2/src/decoder-cat.cc: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING:
vte291-0.74.2-build/vte-0.74.2/src/drawing-cairo.cc: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CLANG_WARNING:
vte291-0.74.2-build/vte-0.74.2/src/drawing-cairo.cc:363:3: warning[deadcode.DeadStores]: Value stored to 'n_cr_glyphs' is never read
#  361|   				   cr_glyphs,
#  362|   				   n_cr_glyphs);
#  363|-> 		n_cr_glyphs = 0;
#  364|   	}
#  365|   }

Error: CPPCHECK_WARNING:
vte291-0.74.2-build/vte-0.74.2/src/fonts-pangocairo.cc: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CLANG_WARNING:
vte291-0.74.2-build/vte-0.74.2/src/icu-converter.cc:121:9: warning[deadcode.DeadStores]: Value stored to 'target_size' is never read
#  119|   
#  120|           err.reset();
#  121|->         target_size = ucnv_fromUChars(m_charset_converter.get(),
#  122|                                         target_buffer.data(),
#  123|                                         target_buffer.capacity(),

Error: CPPCHECK_WARNING:
vte291-0.74.2-build/vte-0.74.2/src/keymap.cc: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING:
vte291-0.74.2-build/vte-0.74.2/src/mev.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: GCC_ANALYZER_WARNING (CWE-479):
vte291-0.74.2-build/vte-0.74.2/src/mev.c:50:9: warning[-Wanalyzer-unsafe-call-within-signal-handler]: call to ‘fprintf’ from within signal handler
vte291-0.74.2-build/vte-0.74.2/src/mev.c: scope_hint: In function ‘reset_mouse_tracking_mode’
#   48|   decset(int mode, gboolean value)
#   49|   {
#   50|-> 	fprintf(stdout, _VTE_CAP_CSI "?%d%c", mode, value ? 'h' : 'l');
#   51|   }
#   52|   

Error: CLANG_WARNING:
vte291-0.74.2-build/vte-0.74.2/src/mev.c:130:21: warning[deadcode.DeadStores]: Value stored to 'shift' during its initialization is never read
#  128|   {
#  129|           int button = 0;
#  130|->         const char *shift = "", *control = "", *alt = "";
#  131|           gboolean motion = FALSE;
#  132|           int x, y;

Error: CLANG_WARNING:
vte291-0.74.2-build/vte-0.74.2/src/mev.c:130:34: warning[deadcode.DeadStores]: Value stored to 'control' during its initialization is never read
#  128|   {
#  129|           int button = 0;
#  130|->         const char *shift = "", *control = "", *alt = "";
#  131|           gboolean motion = FALSE;
#  132|           int x, y;

Error: CLANG_WARNING:
vte291-0.74.2-build/vte-0.74.2/src/mev.c:130:49: warning[deadcode.DeadStores]: Value stored to 'alt' during its initialization is never read
#  128|   {
#  129|           int button = 0;
#  130|->         const char *shift = "", *control = "", *alt = "";
#  131|           gboolean motion = FALSE;
#  132|           int x, y;

Error: CLANG_WARNING:
vte291-0.74.2-build/vte-0.74.2/src/mev.c:377:3: warning[deadcode.DeadStores]: Value stored to 'stop' is never read
#  375|   		FD_ZERO(&in_fds);
#  376|   		FD_SET(STDIN_FILENO, &in_fds);
#  377|-> 		stop = TRUE;
#  378|   		switch (select(STDIN_FILENO + 1, &in_fds, NULL, NULL, NULL)) {
#  379|   		case 1:

Error: CPPCHECK_WARNING:
vte291-0.74.2-build/vte-0.74.2/src/minifont.cc: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING:
vte291-0.74.2-build/vte-0.74.2/src/parser-cat.cc: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING:
vte291-0.74.2-build/vte-0.74.2/src/parser-test.cc: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CLANG_WARNING:
vte291-0.74.2-build/vte-0.74.2/src/parser-test.cc:261:14: warning[deadcode.DeadStores]: Value stored to 'buf' during its initialization is never read
#  259|   
#  260|           size_t len;
#  261|->         auto buf = vte_seq_string_get(&str, &len);
#  262|           g_assert_cmpuint(len, ==, 0);
#  263|   

Error: CLANG_WARNING:
vte291-0.74.2-build/vte-0.74.2/src/parser-test.cc:268:17: warning[deadcode.DeadStores]: Value stored to 'buf' is never read
#  266|                   g_assert_true(rv);
#  267|   
#  268|->                 buf = vte_seq_string_get(&str, &len);
#  269|                   g_assert_cmpuint(len, ==, i + 1);
#  270|           }

Error: CLANG_WARNING:
vte291-0.74.2-build/vte-0.74.2/src/parser-test.cc:281:9: warning[deadcode.DeadStores]: Value stored to 'buf' is never read
#  279|   
#  280|           vte_seq_string_reset(&str);
#  281|->         buf = vte_seq_string_get(&str, &len);
#  282|           g_assert_cmpuint(len, ==, 0);
#  283|   

Error: CPPCHECK_WARNING:
vte291-0.74.2-build/vte-0.74.2/src/pty.cc: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CLANG_WARNING:
vte291-0.74.2-build/vte-0.74.2/src/pty.cc:188:22: warning[deadcode.DeadStores]: Value stored to 'errsv' during its initialization is never read
#  186|           sigemptyset(&set);
#  187|           if (pthread_sigmask(SIG_SETMASK, &set, nullptr) == -1) {
#  188|->                 auto errsv = vte::libc::ErrnoSaver{};
#  189|                   _vte_debug_print(VTE_DEBUG_PTY, "%s failed: %s\n",
#  190|                                    "pthread_sigmask", g_strerror(errsv));

Error: CLANG_WARNING:
vte291-0.74.2-build/vte-0.74.2/src/pty.cc:210:30: warning[deadcode.DeadStores]: Value stored to 'errsv' during its initialization is never read
#  208|                   _vte_debug_print (VTE_DEBUG_PTY, "Starting new session\n");
#  209|                   if (setsid() == -1) {
#  210|->                         auto errsv = vte::libc::ErrnoSaver{};
#  211|                           _vte_debug_print(VTE_DEBUG_PTY, "%s failed: %s\n",
#  212|                                            "setsid", g_strerror(errsv));

Error: CLANG_WARNING:
vte291-0.74.2-build/vte-0.74.2/src/pty.cc:228:30: warning[deadcode.DeadStores]: Value stored to 'errsv' during its initialization is never read
#  226|           if (!(m_flags & VTE_PTY_NO_CTTY)) {
#  227|                   if (ioctl(peer_fd, TIOCSCTTY, peer_fd) != 0) {
#  228|->                         auto errsv = vte::libc::ErrnoSaver{};
#  229|                           _vte_debug_print(VTE_DEBUG_PTY, "%s failed: %s\n",
#  230|                                            "ioctl(TIOCSCTTY)", g_strerror(errsv));

Error: CPPCHECK_WARNING:
vte291-0.74.2-build/vte-0.74.2/src/reflect.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CLANG_WARNING:
vte291-0.74.2-build/vte-0.74.2/src/reflect.c:96:18: warning[core.NullDereference]: Access to field 'len' results in a dereference of a null pointer (loaded from variable 'contents')
#   94|   	caret = (guint)atk_text_get_caret_offset(ATK_TEXT(obj));
#   95|   	s = g_string_new(NULL);
#   96|-> 	for (i = 0; i < contents->len; i++) {
#   97|   		if (i == caret) {
#   98|   			s = g_string_append(s, "[CARET]");

Error: CLANG_WARNING:
vte291-0.74.2-build/vte-0.74.2/src/reflect.c:311:9: warning[core.NullDereference]: Access to field 'len' results in a dereference of a null pointer (loaded from variable 'contents')
#  309|   		if (text != NULL) {
#  310|   			for (p = text;
#  311|-> 			     contents->len < count;
#  312|   			     p = g_utf8_next_char(p)) {
#  313|   				c = g_utf8_get_char(p);

Error: CPPCHECK_WARNING:
vte291-0.74.2-build/vte-0.74.2/src/refptr-test.cc: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CLANG_WARNING:
vte291-0.74.2-build/vte-0.74.2/src/refptr-test.cc:81:23: warning[cplusplus.Move]: Method called on moved-from object 'ptr1'
#   79|   
#   80|           auto ptr2 = std::move(ptr1);
#   81|->         g_assert_true(ptr1.get() == nullptr);
#   82|           g_assert_true(ptr2.get() == obj1.obj);
#   83|   

Error: CPPCHECK_WARNING:
vte291-0.74.2-build/vte-0.74.2/src/ring.cc: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CLANG_WARNING:
vte291-0.74.2-build/vte-0.74.2/src/ring.cc:684:13: warning[core.NullDereference]: Dereference of null pointer
#  682|                   idx = get_hyperlink_idx_no_update_current(*hyperlink);
#  683|           }
#  684|->         if (**hyperlink == '\0')
#  685|                   *hyperlink = nullptr;
#  686|           if (update_hover_idx)

Error: CLANG_WARNING:
vte291-0.74.2-build/vte-0.74.2/src/ringview.cc:244:25: warning[core.CallAndMessage]: 2nd function call argument is an uninitialized value
#  242|                   row_data = _vte_ring_contains(m_ring, row) ? m_ring->index(row) : nullptr;
#  243|                   if (G_LIKELY (row_data != nullptr)) {
#  244|->                         _vte_row_data_copy (row_data, m_rows[m_rows_len]);
#  245|                           /* Make sure that the extracted data is not wider than the screen,
#  246|                            * something that can happen if the window was narrowed with rewrapping disabled.

Error: CLANG_WARNING:
vte291-0.74.2-build/vte-0.74.2/src/ringview.cc:260:25: warning[core.CallAndMessage]: 1st function call argument is an uninitialized value
#  258|                           }
#  259|                   } else {
#  260|->                         _vte_row_data_clear (m_rows[m_rows_len]);
#  261|                   }
#  262|                   m_rows_len++;

Error: CLANG_WARNING:
vte291-0.74.2-build/vte-0.74.2/src/ringview.cc:278:26: warning[core.uninitialized.Assign]: Assigned value is garbage or undefined
#  276|           row = top;
#  277|           while (row < m_top + m_rows_len) {
#  278|->                 row_data = m_rows[row - m_top];
#  279|                   if (!row_data->attr.soft_wrapped || row == m_top + m_rows_len - 1) {
#  280|                           /* Found a paragraph from @top to @row, inclusive. */

Error: CPPCHECK_WARNING:
vte291-0.74.2-build/vte-0.74.2/src/slowcat.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: GCC_ANALYZER_WARNING (CWE-775):
vte291-0.74.2-build/vte-0.74.2/src/slowcat.c: scope_hint: In function ‘catfile’
vte291-0.74.2-build/vte-0.74.2/src/slowcat.c:72:12: warning[-Wanalyzer-file-leak]: leak of FILE ‘fp’
#   70|   	g_free(buf);
#   71|   
#   72|-> 	if (fp != stdin) {
#   73|   		fclose(fp);
#   74|   	}

Error: GCC_ANALYZER_WARNING (CWE-401):
vte291-0.74.2-build/vte-0.74.2/src/slowcat.c:72:12: warning[-Wanalyzer-malloc-leak]: leak of ‘fp’
#   70|   	g_free(buf);
#   71|   
#   72|-> 	if (fp != stdin) {
#   73|   		fclose(fp);
#   74|   	}

Error: CPPCHECK_WARNING:
vte291-0.74.2-build/vte-0.74.2/src/spawn.cc: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING:
vte291-0.74.2-build/vte-0.74.2/src/tabstops-test.cc: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING:
vte291-0.74.2-build/vte-0.74.2/src/utf8-test.cc: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: COMPILER_WARNING (CWE-1164):
vte291-0.74.2-build/vte-0.74.2/src/vte.cc: scope_hint: In member function ‘void vte::terminal::Terminal::process_incoming_utf8(ProcessingContext&, vte::base::Chunk&)’
vte291-0.74.2-build/vte-0.74.2/src/vte.cc:3711:1: warning[-Wunused-label]: label ‘switched_data_syntax’ defined but not used
# 3711 | switched_data_syntax:
#      | ^~~~~~~~~~~~~~~~~~~~
# 3709|   #pragma GCC diagnostic push
# 3710|   #pragma GCC diagnostic ignored "-Wunused-label"
# 3711|-> switched_data_syntax:
# 3712|   #pragma GCC diagnostic pop
# 3713|   

Error: COMPILER_WARNING (CWE-1164):
vte291-0.74.2-build/vte-0.74.2/src/vte.cc: scope_hint: In member function ‘void vte::terminal::Terminal::process_incoming_pcterm(ProcessingContext&, vte::base::Chunk&)’
vte291-0.74.2-build/vte-0.74.2/src/vte.cc:3839:2: warning[-Wunused-label]: label ‘switched_data_syntax’ defined but not used
# 3839 |  switched_data_syntax:
#      |  ^~~~~~~~~~~~~~~~~~~~
# 3837|   #pragma GCC diagnostic push
# 3838|   #pragma GCC diagnostic ignored "-Wunused-label"
# 3839|->  switched_data_syntax:
# 3840|   #pragma GCC diagnostic pop
# 3841|   

Error: CLANG_WARNING:
vte291-0.74.2-build/vte-0.74.2/src/vteaccess.cc:1096:4: warning[deadcode.DeadStores]: Value stored to 'line' is never read
# 1094|   			 * i'th line is before the offset, then i could be the
# 1095|   			 * line we're looking for. */
# 1096|-> 			line = 0;
# 1097|   			for (line = 0;
# 1098|   			     line < priv->snapshot_linebreaks->len;

Error: COMPILER_WARNING (CWE-477):
vte291-0.74.2-build/vte-0.74.2/src/vtegtk.cc: scope_hint: In function ‘void vte_terminal_class_init(VteTerminalClass*)’
vte291-0.74.2-build/vte-0.74.2/src/vtegtk.cc:1228:71: warning[-Wdeprecated-declarations]: ‘void gdk_window_set_debug_updates(gboolean)’ is deprecated
# 1228 |         _VTE_DEBUG_IF (VTE_DEBUG_UPDATES) gdk_window_set_debug_updates(TRUE);
#      |                                           ~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~
/usr/include/gtk-3.0/gdk/gdkseat.h:28: included_from: Included from here.
/usr/include/gtk-3.0/gdk/gdkdisplay.h:33: included_from: Included from here.
/usr/include/gtk-3.0/gdk/gdkscreen.h:32: included_from: Included from here.
/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.
vte291-0.74.2-build/vte-0.74.2/src/vtegtk.cc:46: included_from: Included from here.
/usr/include/gtk-3.0/gdk/gdkwindow.h:1074:12: note: declared here
# 1074 | void       gdk_window_set_debug_updates   (gboolean      setting);
#      |            ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
# 1226|   
# 1227|   #if VTE_GTK == 3
# 1228|-> 	_VTE_DEBUG_IF (VTE_DEBUG_UPDATES) gdk_window_set_debug_updates(TRUE);
# 1229|   #endif
# 1230|   

Error: CLANG_WARNING:
vte291-0.74.2-build/vte-0.74.2/src/vteseq.cc:920:33: warning[deadcode.DeadStores]: Value stored to 'len' is never read
#  918|                           if (not_default_bg) {
#  919|                                   _vte_row_data_fill(rowdata, &m_color_defaults, m_column_count);
#  920|->                                 len = m_column_count;
#  921|   			}
#  922|                           set_hard_wrapped(m_screen->cursor.row);

Error: CLANG_WARNING:
vte291-0.74.2-build/vte-0.74.2/src/vteseq.cc:4940:19: warning[core.UndefinedBinaryOperatorResult]: The left operand of '<=' is a garbage value
# 4938|   
# 4939|           /* Defaults */
# 4940|->         if (start <= 0)
# 4941|                   start = 1;
# 4942|           if (end == -1)

Error: CLANG_WARNING:
vte291-0.74.2-build/vte-0.74.2/src/vteseq.cc:9029:27: warning[core.UndefinedBinaryOperatorResult]: The left operand of '!=' is a garbage value
# 9027|                   seq.collect(1, {&height, &width});
# 9028|   
# 9029|->                 if (width != -1 && height != -1) {
# 9030|                           _vte_debug_print(VTE_DEBUG_EMULATION,
# 9031|                                            "Resizing window to %dx%d pixels, grid size %dx%d.\n",

Error: CLANG_WARNING:
vte291-0.74.2-build/vte-0.74.2/src/vteseq.cc:9052:27: warning[core.UndefinedBinaryOperatorResult]: The left operand of '!=' is a garbage value
# 9050|                   seq.collect(1, {&height, &width});
# 9051|   
# 9052|->                 if (width != -1 && height != -1) {
# 9053|                           _vte_debug_print(VTE_DEBUG_EMULATION,
# 9054|                                            "Resizing window to %d columns, %d rows.\n",

Error: COMPILER_WARNING (CWE-477):
vte291-0.74.2-build/vte-0.74.2/src/vteseq.cc: scope_hint: In member function ‘void vte::terminal::Terminal::XTERM_WM(const vte::parser::Sequence&)’
vte291-0.74.2-build/vte-0.74.2/src/vteseq.cc:9111:51: warning[-Wdeprecated-declarations]: ‘gint gdk_screen_get_height(GdkScreen*)’ is deprecated
# 9111 |                 int height = gdk_screen_get_height(gdkscreen);
#      |                              ~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~
/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.
vte291-0.74.2-build/vte-0.74.2/src/vte/vte.h:21: included_from: Included from here.
vte291-0.74.2-build/vte-0.74.2/src/vteseq.cc:33: included_from: Included from here.
/usr/include/gtk-3.0/gdk/gdkscreen.h:60:14: note: declared here
#   60 | gint         gdk_screen_get_height            (GdkScreen   *screen);
#      |              ^~~~~~~~~~~~~~~~~~~~~
# 9109|   #if VTE_GTK == 3
# 9110|                   auto gdkscreen = gtk_widget_get_screen(m_widget);
# 9111|->                 int height = gdk_screen_get_height(gdkscreen);
# 9112|                   int width = gdk_screen_get_width(gdkscreen);
# 9113|                   _vte_debug_print(VTE_DEBUG_EMULATION,

Error: COMPILER_WARNING (CWE-477):
vte291-0.74.2-build/vte-0.74.2/src/vteseq.cc:9112:49: warning[-Wdeprecated-declarations]: ‘gint gdk_screen_get_width(GdkScreen*)’ is deprecated
# 9112 |                 int width = gdk_screen_get_width(gdkscreen);
#      |                             ~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~
/usr/include/gtk-3.0/gdk/gdkscreen.h:58:14: note: declared here
#   58 | gint         gdk_screen_get_width             (GdkScreen   *screen);
#      |              ^~~~~~~~~~~~~~~~~~~~
# 9110|                   auto gdkscreen = gtk_widget_get_screen(m_widget);
# 9111|                   int height = gdk_screen_get_height(gdkscreen);
# 9112|->                 int width = gdk_screen_get_width(gdkscreen);
# 9113|                   _vte_debug_print(VTE_DEBUG_EMULATION,
# 9114|                                    "Reporting screen size as %dx%d cells.\n",

Error: CPPCHECK_WARNING:
vte291-0.74.2-build/vte-0.74.2/src/vtestream.cc: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING:
vte291-0.74.2-build/vte-0.74.2/src/vtetypes.cc: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.