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.
Regards, John Little
--
--
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.