Bram Moolenaar wrote: > Tony Mechelynck wrote: > >> Compiling vim 7.3a (huge) at changeset aa6412cab544 (2010-15-29 20:33:07 >> +0200) on Linux using gcc 4.4.1 >> >> > undo.c: In function ‘u_read_undo’: >> > undo.c:1265: warning: ‘uhp’ may be used uninitialized in this function >> >> I don't feel qualified to determine with certainty whether or not that >> warning is a false alarm; anyway I suppose it wouldn't hurt to >> initialize the pointer (a local variable used at lines 1368 to 1530) to >> NULL at entry into the function. > > Thanks for reporting this. Somehow my compiler doesn't warn for this > type of error. I need to check the arguments...
Maybe you compiled with -O0? If so, gcc would not complain about it. This warning is only reported when compiling with optimization -O1 -O2 or -O3. See info about -Wuninitialized (which is enabled with -Wall) in man gcc. -- 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
