On Sun, May 22, 2022 at 9:09 PM John Marriott <[email protected]> wrote:
>
>
>
> On 23-May-2022 04:14, Bram Moolenaar wrote:
> > Patch 8.2.5003
> > Problem: Cannot do bitwise shifts.
> > Solution: Add the >> and << operators. (Yegappan Lakshmanan, closes #8457)
> > Files: runtime/doc/eval.txt, src/errors.h, src/eval.c, src/structs.h,
> > src/vim.h, src/vim9execute.c, src/vim9expr.c,
> > src/testdir/test_expr.vim,
> > src/testdir/test_vim9_disassemble.vim,
> > src/testdir/test_vim9_expr.vim
> >
> >
> After this patch, mingw64 (gcc 11.3.0) throws this compile warning:
> <snip>
> gcc -c -I. -Iproto -DWIN32 -DWINVER=0x0603 -D_WIN32_WINNT=0x0603
> -DHAVE_PATHDEF -DFEAT_NORMAL -DHAVE_STDINT_H -D__USE_MINGW_ANSI_STDIO
> -pipe -march=native -Wall -O3 -fomit-frame-pointer -freg-struct-return
> -fpie -fPIE -DFEAT_GUI_MSWIN -DFEAT_CLIPBOARD vim9expr.c -o
> gobjnative/vim9expr.o
> vim9expr.c: In function 'compile_expr5':
> vim9expr.c:2718:36: warning: 'tv1' may be used uninitialized in this
> function [-Wmaybe-uninitialized]
> 2718 | tv1->vval.v_number = 0;
> | ~~~~~~~~~~~~~~~~~~~^~~
> </snip>
>
> Sorry I don't have a patch for this. I'm not sure what the purpose of
> tv1 is. It gets set (lines 2718 to 2722) but I don't see where it is used.
>
> Cheers
> John
Me too, but slightly more verbose, and in Huge, Big and Normal but not
in Small and Tiny:
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/vim9expr.o vim9expr.c
vim9expr.c: In function ‘compile_expr5’:
vim9expr.c:2718:36: warning: ‘tv1’ may be used uninitialized
[-Wmaybe-uninitialized]
2718 | tv1->vval.v_number = 0;
| ~~~~~~~~~~~~~~~~~~~^~~
vim9expr.c:2638:18: note: ‘tv1’ was declared here
2638 | typval_T *tv1;
| ^~~
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/CAJkCKXtRJLnT-tLdP2JnF-yf5KP26YOGULvenUw0H%2Bgu2ZYTgw%40mail.gmail.com.