John Little wrote:

> On Thursday, December 18, 2014 at 9:01:14 AM UTC+13, Bram Moolenaar wrote:
> > Patch 7.4.560
> ...
> > Files:          src/ops.c
> 
> I get a compile warning on this with gcc 4.9.2
> 
> ops.c: In function ‘read_viminfo_register’:
> ops.c:5758:21: warning: ‘new_width’ may be used uninitialized in this 
> function [-Wmaybe-uninitialized]
>   y_current->y_width = new_width;
>                      ^
> ops.c:5757:20: warning: ‘new_type’ may be used uninitialized in this function 
> [-Wmaybe-uninitialized]
>   y_current->y_type = new_type;
>                     ^
> 
> Looking at the code, the case can't be reached, but a couple of
> initializers wouldn't hurt, I'd have thought. 

Ok, initializing those variables won't hurt.

-- 
>From "know your smileys":
 2B|^2B   Message from Shakespeare

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