Yegappan wrote:

> 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.

I made it a space, does that also work?  I guess it doesn't really
matter.

-- 
BEDEVERE:        And what do you burn, apart from witches?
FOURTH VILLAGER: ... Wood?
BEDEVERE:        So why do witches burn?
SECOND VILLAGER: (pianissimo) ... Because they're made of wood...?
                 "Monty Python and the Holy Grail" PYTHON (MONTY) PICTURES LTD

 /// Bram Moolenaar -- [email protected] -- http://www.Moolenaar.net   \\\
///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
\\\  an exciting new programming language -- http://www.Zimbu.org        ///
 \\\            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/202009222100.08ML0W5K3749750%40masaka.moolenaar.net.

Raspunde prin e-mail lui