On Mon, Jul 25, 2022 at 10:16 PM Bram Moolenaar <[email protected]> wrote:
>
>
> Patch 9.0.0072 (after 9.0.0067)
> Problem:    Compiler warning for uninitialized variable.
> Solution:   Initialize it. (John Marriott)
> Files:      src/drawline.c

After this patch, I get a new warning in Big and Huge only, as follows:

gcc -c -I. -Iproto -DHAVE_CONFIG_H -DFEAT_GUI_GTK
-I/usr/include/gtk-3.0 -I/usr/include/pango-1.0
-I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include
-I/usr/include/harfbuzz -I/usr/include/freetype2
-I/usr/include/libmount -I/usr/include/blkid -I/usr/include/fribidi
-I/usr/include/cairo -I/usr/include/pixman-1 -I/usr/include/libpng16
-I/usr/include/gdk-pixbuf-2.0 -I/usr/include/gio-unix-2.0
-I/usr/include/wayland -I/usr/include/libxkbcommon
-I/usr/include/atk-1.0 -I/usr/include/at-spi2-atk/2.0
-I/usr/include/dbus-1.0 -I/usr/lib64/dbus-1.0/include
-I/usr/include/at-spi-2.0 -pthread    -O2 -fno-strength-reduce -Wall
-Wno-deprecated-declarations  -D_REENTRANT  -U_FORTIFY_SOURCE
-D_FORTIFY_SOURCE=1        -o objects/drawline.o drawline.c
drawline.c: In function ‘win_line’:
drawline.c:1541:35: warning: ‘used_tpi’ may be used uninitialized
[-Wmaybe-uninitialized]
 1541 |                         text_props[used_tpi].tp_id = -MAXCOL;
      |                                   ^
drawline.c:1489:25: note: ‘used_tpi’ was declared here
 1489 |                     int used_tpi;
      |                         ^~~~~~~~


Best regards,
Tony.

-- 
-- 
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

--- 
You received this message because you are subscribed to the Google Groups 
"vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/vim_dev/CAJkCKXtCXkj6UxCLVEZmx_O6Hgrh0DjfMwCN2-f_iTbVGhgZ5Q%40mail.gmail.com.

Raspunde prin e-mail lui