dv1445 wrote: > Here on Tiger PPC I updated to 7.3.1148. > > Here is a new compiler warning I haven't seen yet; it occurred during > the plain Vim portion of building MacVim. > > In file included from regexp.c:7891: > regexp_nfa.c: In function ‘post2nfa’: > regexp_nfa.c:2754: warning: ‘end_state’ may be used uninitialized in this > function > regexp_nfa.c:2753: warning: ‘start_state’ may be used uninitialized in this > function
I think I can fix these. > regexp_nfa.c: In function ‘addstate’: > regexp_nfa.c:3378: warning: ‘save_lpos.col’ may be used uninitialized in this > function > regexp_nfa.c:3378: warning: ‘save_lpos.lnum’ may be used uninitialized in > this function > regexp_nfa.c:3380: warning: ‘save_ptr’ may be used uninitialized in this > function Can't fix these without adding overhead. > regexp_nfa.c: In function ‘nfa_regmatch’: > regexp_nfa.c:4363: warning: ‘add_off’ may be used uninitialized in this > function I can fix this one. > Finally, here are some compiler warnings from the plain Vim portion that > seem to have been around for ages on Tiger PPC (especially the latter): > > gcc -c -I. -Iproto -DHAVE_CONFIG_H -DFEAT_GUI_MACVIM -Wall > -Wno-unknown-pragmas -pipe -DMACOS_X_UNIX -no-cpp-precomp -g -O > -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=1 -o objects/eval.o eval.c > eval.c: In function ‘get_lval’: > eval.c:2729: warning: ‘prevval’ may be used uninitialized in this function Can be fixed at a small price. > > gcc -c -I. -Iproto -DHAVE_CONFIG_H -DFEAT_GUI_MACVIM -Wall > -Wno-unknown-pragmas -pipe -DMACOS_X_UNIX -no-cpp-precomp -g -O > -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=1 -o objects/search.o search.c > search.c: In function ‘current_search’: > search.c:4521: warning: ‘save_VIsual.coladd’ may be used uninitialized in > this function > search.c:4521: warning: ‘save_VIsual.col’ may be used uninitialized in this > function > search.c:4521: warning: ‘save_VIsual.lnum’ may be used uninitialized in this > function Not so easy to fix. -- hundred-and-one symptoms of being an internet addict: 125. You begin to wonder how often it REALLY is necessary to get up and shower or bathe. /// Bram Moolenaar -- b...@moolenaar.net -- 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_mac" 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_mac" group. To unsubscribe from this group and stop receiving emails from it, send an email to vim_mac+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.