Tony wrote:
> On Sun, Jan 20, 2019 at 6:40 PM Bram Moolenaar <[email protected]> wrote: > > > > > > Patch 8.1.0787 > > Problem: Compiler warning for unused function. (Tony Mechelynck) > > Solution: Tune #ifdef around setjmp functions. > > Files: src/os_unix.c > > Before this change, os_unix.c compiled, albeit with warnings in Tiny > and Small. Now the warnings have disappeared, but Errors have replaced > them (elsewhere in os_unix.c), causing make to stop for these same > Tiny and Small builds: > > linux-2iyu:~/.build/vim/vim-hg/src/shadow-tiny # (make || echo 'exit > status' $? ; date) 2>&1 |tee -a make.log > ... > gcc -c -I. -Iproto -DHAVE_CONFIG_H -O2 -fno-strength-reduce -Wall > -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=1 -o objects/os_unix.o > os_unix.c > os_unix.c: In function ‘deathtrap’: > os_unix.c:1072:9: error: ‘lc_active’ undeclared (first use in this > function); did you mean ‘localtime’? > if (lc_active) > ^~~~~~~~~ > localtime > os_unix.c:1072:9: note: each undeclared identifier is reported only > once for each function it appears in > os_unix.c:1075:2: error: ‘lc_signal’ undeclared (first use in this > function); did you mean ‘strsignal’? > lc_signal = sigarg; > ^~~~~~~~~ > strsignal > os_unix.c:1078:10: error: ‘lc_jump_env’ undeclared (first use in this > function) > LONGJMP(lc_jump_env, 1); > ^~~~~~~~~~~ > make: *** [Makefile:3160: objects/os_unix.o] Error 1 > exit status 2 > Sun 20 Jan 23:39:05 CET 2019 > linux-2iyu:~/.build/vim/vim-hg/src/shadow-tiny # 788 fixes this. I assumed the code was mostly OK, but it wasn't, the #ifdefs were misplaced. Thus it needed some more changes. -- Edison's greatest achievement came in 1879, when he invented the electric company. Edison's design was a brilliant adaptation of the simple electrical circuit: the electric company sends electricity through a wire to a customer, then immediately gets the electricity back through another wire /// 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/d/optout.
