On 20/02/09 13:53, björn wrote:
> Hi,
>
> For the last two weeks or so I've been getting this warning when
> compiling Vim (on Mac OS X):
>
> ex_docmd.c: In function 'do_one_cmd':
> ex_docmd.c:5937: warning: 'end' may be used uninitialized in this function
> ex_docmd.c: In function 'do_one_cmd':
> ex_docmd.c:5937: warning: 'end' may be used uninitialized in this function
>
> I searched the archives but found no mention of it, so perhaps this is
> only happening on OS X?
>
> Björn

Hm, which patchlevel are you compiling? Or are there Mac-only patches in 
that module? At the current patchlevel (7.2.108), src/ex_docmd.c line 
5937 falls in the middle of a multiline comment, and function do_one_cmd 
spans lines 1662 to 2717 IIUC.

The message itself means that you might be using the value of a variable 
named "end" before having set that variable to any specific value, and I 
didn't get that message at that exact point in the code recently. (To be 
sure, I've seen it earlier at other places, mentioned it on this list, 
and Bram corrected it.)


Best regards,
Tony.
-- 
Beer & pretzels can't be served at the same time in any bar or restaurant.
                [real standing law in North Dakota, United States of America]

--~--~---------~--~----~------------~-------~--~----~
You received this message from the "vim_dev" maillist.
For more information, visit http://www.vim.org/maillist.php
-~----------~----~----~----~------~----~------~--~---

Raspunde prin e-mail lui