warning -Wmaybe-uninitialized in all +eval builds in vim9compile.c line 9065 after applying patches 8.2 2995 to 2999

4 views
Skip to first unread message

Tony Mechelynck

unread,
Jun 14, 2021, 6:27:14 PM6/14/21
to Bram Moolenaar, vim_dev
The following is for Normal vim. "Bigger" builds have the same
warning, just a longer gcc command-line. The "make" step contiues and
links an executable.

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_def_function’:
vim9compile.c:9065:5: warning: ‘instr_dest’ may be used uninitialized
in this function [-Wmaybe-uninitialized]
if (instr_dest != NULL)
^

Best regards,
Tony.
Reply all
Reply to author
Forward
0 new messages