Patch 7.4.581
Problem: Compiler warnings for unitinialized variables. (John Little)
Solution: Initialize the variables.
Files: src/ops.c
*** ../vim-7.4.580/src/ops.c 2014-12-17 21:00:44.989871256 +0100
--- src/ops.c 2015-01-18 14:06:49.480786101 +0100
***************
*** 5663,5670 ****
int set_prev = FALSE;
char_u *str;
char_u **array = NULL;
! int new_type;
! colnr_T new_width;
/* We only get here (hopefully) if line[0] == '"' */
str = virp->vir_line + 1;
--- 5663,5670 ----
int set_prev = FALSE;
char_u *str;
char_u **array = NULL;
! int new_type = MCHAR; /* init to shut up compiler */
! colnr_T new_width = 0; /* init to shut up compiler */
/* We only get here (hopefully) if line[0] == '"' */
str = virp->vir_line + 1;
***************
*** 5747,5752 ****
--- 5747,5753 ----
do_it = FALSE;
}
}
+
if (do_it)
{
/* free y_array[] */
*** ../vim-7.4.580/src/version.c 2015-01-14 21:21:56.924743601 +0100
--- src/version.c 2015-01-18 14:07:36.712268926 +0100
***************
*** 743,744 ****
--- 743,746 ----
{ /* Add new patch number below this line */
+ /**/
+ 581,
/**/
--
>From "know your smileys":
:-D Big smile
/// 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.