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 #


Best regards,
Tony.

-- 
-- 
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.

Raspunde prin e-mail lui