John Marriott wrote:

> On 13-Jan-2019 08:47, Bram Moolenaar wrote:
> > Patch 8.1.0735
> > Problem:    Cannot handle binary data.
> > Solution:   Add the Blob type. (Yasuhiro Matsumoto, closes #3638)
> > Files:          runtime/doc/eval.txt, runtime/doc/if_perl.txt,
> >              runtime/doc/if_ruby.txt, src/Make_cyg_ming.mak, 
> > src/Make_mvc.mak,
> >              src/Makefile, src/blob.c, src/channel.c, src/eval.c,
> >              src/evalfunc.c, src/if_perl.xs, src/if_py_both.h, 
> > src/if_python.c,
> >              src/if_python3.c, src/if_ruby.c, src/json.c, src/netbeans.c,
> >              src/proto.h, src/proto/blob.pro, src/proto/channel.pro,
> >              src/structs.h, src/testdir/Make_all.mak, src/vim.h, 
> > src/globals.h,
> >              src/testdir/test_blob.vim, src/testdir/test_channel.vim
> >
> >
> After this patch, mingw-64 (gcc 8.2.1) spits out this warning:
> gcc -c -I. -Iproto -DWIN32 -DWINVER=0x0603 -D_WIN32_WINNT=0x0603 
> -DHAVE_PATHDEF -DFEAT_NORMAL -DHAVE_STDINT_H -DFEAT_GUI_W32 
> -DFEAT_CLIPBOARD -pipe -march=native -Wall -O3 -fomit-frame-pointer 
> -freg-struct-return -s eval.c -o gobjnative/eval.o
> eval.c: In function 'eval7':
> eval.c:4209:4: warning: 'blob' may be used uninitialized in this 
> function [-Wmaybe-uninitialized]
>      ++blob->bv_refcount;
>      ^~~~~~~~~~~~~~~~~~~
> 
> Please check the attached patch.

I'll include it, thanks.

-- 
hundred-and-one symptoms of being an internet addict:
184. You no longer ask prospective dates what their sign is, instead
     your line is "Hi, what's your URL?"

 /// 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].
For more options, visit https://groups.google.com/d/optout.

Raspunde prin e-mail lui