After applying patches 3274 and 3275, warning "maybe-uninitialized" at vim9compile.c:7092.18 for Normal, Big and Huge

8 views
Skip to first unread message

Tony Mechelynck

unread,
Aug 2, 2021, 2:11:50 PM8/2/21
to Bram Moolenaar, vim_dev
gcc -c -I. -Iproto -DHAVE_CONFIG_H -DFEAT_GUI_GTK -pthread
-I/usr/include/gtk-3.0 -I/usr/include/at-spi2-atk/2.0
-I/usr/include/at-spi-2.0 -I/usr/include/dbus-1.0
-I/usr/lib64/dbus-1.0/include -I/usr/include/gtk-3.0
-I/usr/include/gio-unix-2.0 -I/usr/include/libxkbcommon
-I/usr/include/wayland -I/usr/include/cairo -I/usr/include/pango-1.0
-I/usr/include/fribidi -I/usr/include/harfbuzz -I/usr/include/atk-1.0
-I/usr/include/cairo -I/usr/include/pixman-1 -I/usr/include/freetype2
-I/usr/include/libpng16 -I/usr/include/gdk-pixbuf-2.0
-I/usr/include/libmount -I/usr/include/blkid -I/usr/include/uuid
-I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -O2
-fno-strength-reduce -Wall -Wno-deprecated-declarations
-U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=1 -o objects/vim9compile.o
vim9compile.c
vim9compile.c: In function ‘compile_assignment’:
vim9compile.c:7092:18: warning: ‘stacktype’ may be used uninitialized
in this function [-Wmaybe-uninitialized]
type_T *stacktype;
^~~~~~~~~


Best regards,
Tony.

Bram Moolenaar

unread,
Aug 2, 2021, 2:57:25 PM8/2/21
to vim...@googlegroups.com, Tony Mechelynck
I didn't think this changed recently. I'll initialize to zero, I assume
that will fix it.

--
I have to exercise early in the morning before my brain
figures out what I'm doing.

/// Bram Moolenaar -- Br...@Moolenaar.net -- http://www.Moolenaar.net \\\
/// \\\
\\\ sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ ///
\\\ help me help AIDS victims -- http://ICCF-Holland.org ///
Reply all
Reply to author
Forward
0 new messages