Hi,

On Tue, Sep 22, 2020 at 12:40 PM John Marriott <[email protected]>
wrote:

>
> On 23-Sep-2020 04:34, Bram Moolenaar wrote:
> > Patch 8.2.1726
> > Problem:    Fuzzy matching only works on strings.
> > Solution:   Support passing a dict.  Add matchfuzzypos() to also get the
> match
> >              positions. (Yegappan Lakshmanan, closes #6947)
> > Files:      runtime/doc/eval.txt, runtime/doc/usr_41.txt, src/evalfunc.c,
> >              src/proto/search.pro, src/search.c,
> src/testdir/Make_all.mak,
> >              src/testdir/test_functions.vim,
> src/testdir/test_matchfuzzy.vim
> >
> >
> After this patch, mingw64 (gcc 10.2) throws this warning:
> <snip>
> gcc -c -I. -Iproto -DWIN32 -DWINVER=0x0603 -D_WIN32_WINNT=0x0603
> -DHAVE_PATHDEF -DFEAT_NORMAL -DHAVE_STDINT_H -pipe -march=native -Wall
> -O3 -fomit-frame-pointer -freg-struct-return -fpie -fPIE
> -DFEAT_GUI_MSWIN -DFEAT_CLIPBOARD -D__USE_MINGW_ANSI_STDIO search.c -o
> gobjnative/search.o
> search.c: In function 'fuzzy_match_recursive.constprop':
> search.c:4320:54: warning: 'neighbor' may be used uninitialized in this
> function [-Wmaybe-uninitialized]
>   4320 |      neighborSeparator = neighbor == '_' || neighbor == ' ';
>        | ~~~~~~~~~^~~~~~
> search.c:4296:10: note: 'neighbor' was declared here
>   4296 |      int neighbor;
>        |          ^~~~~~~~
> </snip>
>
>
>
The 'neighbor' variable can be initialized to zero.

- Yegappan

-- 
-- 
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/CAAW7x7k1oOHOoqafTk_W_CJgO2smOAKbYVLTnKfD1%2B0Pnu%2BwGA%40mail.gmail.com.

Raspunde prin e-mail lui