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
I have it too. Your line number is not consistent with the latest version of the source (7.2.108) by the way: line 5937 is a comment for me. I have this warning at line 5919: ex_docmd.c: In function ‘do_one_cmd’: ex_docmd.c:5919: warning: ‘end’ may be used uninitialized in this function ex_docmd.c:5919: note: ‘end’ was declared here We could fix it for the sake of not having compilation warnings. But the warning looks spurious anyway since 'end' is never used when 'start' is NULL. And 'end' is initialized when 'start' is not NULL. -- Dominique --~--~---------~--~----~------------~-------~--~----~ You received this message from the "vim_dev" maillist. For more information, visit http://www.vim.org/maillist.php -~----------~----~----~----~------~----~------~--~---
