Dominique wrote:
> Attached patch fixes the following compilation warnings with
> clang-3.5 (trunk in svn) when compiling vim tiny 7.4.183:
>
> ex_cmds.c:4102:14: warning: variable 'bigness' is used uninitialized
> whenever 'if' condition is false
> [-Wsometimes-uninitialized]
> else if (firstwin == lastwin)
> ^~~~~~~~~~~~~~~~~~~
> ./globals.h:552:19: note: expanded from macro 'firstwin'
> # define firstwin curwin
> ^
> ex_cmds.c:4108:9: note: uninitialized use occurs here
> if (bigness < 1)
> ^~~~~~~
> ex_cmds.c:4102:10: note: remove the 'if' if its condition is always true
> else if (firstwin == lastwin)
> ^~~~~~~~~~~~~~~~~~~~~~~~
> ex_cmds.c:4091:17: note: initialize the variable 'bigness' to silence
> this warning
> int bigness;
> ^
> = 0
Thanks, I'll add it in the todo list.
Clang gives nice error messages!
--
[clop clop]
GUARD #1: Halt! Who goes there?
ARTHUR: It is I, Arthur, son of Uther Pendragon, from the castle of
Camelot. King of the Britons, defeator of the Saxons, sovereign of
all England!
GUARD #1: Pull the other one!
The Quest for the Holy Grail (Monty Python)
/// 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/groups/opt_out.