Hi
Attached patch fixes this compilation warning in vim-7.4.1579:
ex_cmds2.c: In function 'check_due_timer':
ex_cmds2.c:1230:12: warning: 'next_due' may be used uninitialized in
this function [-Wmaybe-uninitialized]
return next_due;
^
Regards
Dominique
--
--
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.
diff --git a/src/ex_cmds2.c b/src/ex_cmds2.c
index 018f44c..99eec74 100644
--- a/src/ex_cmds2.c
+++ b/src/ex_cmds2.c
@@ -1187,10 +1187,9 @@ check_due_timer()
QueryPerformanceFrequency(&fr);
# endif
- while (!got_int)
+ for (next_due = -1; !got_int; next_due = -1)
{
profile_start(&now);
- next_due = -1;
for (timer = first_timer; timer != NULL; timer = timer->tr_next)
{
# ifdef WIN3264