John Marriott wrote:
> On 15-Jun-2021 04:41, Bram Moolenaar wrote:
> > Patch 8.2.2996
> > Problem: Vim9: when debugging cannot inspect local variables.
> > Solution: Make local variables available when debugging.
> > Files: src/vim9execute.c, src/proto/vim9execute.pro, src/vim9compile.c,
> > src/vim9.h, src/debugger.c, src/testdir/test_debugger.vim
> >
> >
> After this patch, mingw64 (gcc 11.1.0) spits out this 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 vim9compile.c -o
> gobjnative/vim9compile.o
> vim9compile.c: In function 'compile_def_function':
> vim9compile.c:9065:12: warning: 'instr_dest' may be used uninitialized
> in this function [-Wmaybe-uninitialized]
> 9065 | if (instr_dest != NULL)
> | ^
> </snip>
>
> The attached patch tries to fix it.
Thanks. The compiler isn't clever enough to see that all enum values
are handled. Oh well.
--
"You're fired." (1980)
"You're laid off." (1985)
"You're downsized." (1990)
"You're rightsized." (1992)
(Scott Adams - The Dilbert principle)
/// Bram Moolenaar -- [email protected] -- 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 [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/vim_dev/202106150823.15F8N5AG1050203%40masaka.moolenaar.net.