Tony wrote:
> I noticed this in a "make reconfig" at patchlevel 9.0.1429. It may or > may not have happened earlier. Builds without expression evaluation > are not affected. > > The following is from a Normal build without the -j argument to make, > to avoid line-interlacing from builds of different modules: > > 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/libpng16 -I/usr/include/pixman-1 > -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/at-spi-2.0 -I/usr/include/dbus-1.0 > -I/usr/lib64/dbus-1.0/include -pthread -O2 -fno-strength-reduce > -Wall -Wno-deprecated-declarations -D_REENTRANT -U_FORTIFY_SOURCE > -D_FORTIFY_SOURCE=1 -o objects/memline.o memline.c > memline.c: In function ‘adjust_text_props_for_delete’: > memline.c:3623:43: warning: ‘this_props_len’ may be used uninitialized > [-Wmaybe-uninitialized] > 3623 | for (done_this = 0; done_this < this_props_len; > | ~~~~~~~~~~^~~~~~~~~~~~~~~~ I cannot make this warning show up. I did add the "-O2" argument to gcc, that usually reveals these "may be used uninitialized" warnings. I assume you use a different version of gcc. I'm afraid I cannot guess what would be the best way to get rid of these warnings. It looks like the optimizer doesn't see that "did_get_line" is FALSE at first and the block that sets the variables will always be executed before they are used. Can someone reproduce the warning and come up with a reasonable solution? I don't think initializing the variables is a good solution, that should not be necessary. -- CUSTOMER: Well, can you hang around a couple of minutes? He won't be long. MORTICIAN: Naaah, I got to go on to Robinson's -- they've lost nine today. CUSTOMER: Well, when is your next round? MORTICIAN: Thursday. DEAD PERSON: I think I'll go for a walk. The Quest for the Holy Grail (Monty Python) /// Bram Moolenaar -- b...@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 /// -- -- 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 vim_dev+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/vim_dev/20230328162503.83B261C0B95%40moolenaar.net.