=> Building chinese/celvis Started : Thursday, 7 MAR 2019 at 20:20:02 UTC Platform: 5.5-DEVELOPMENT DragonFly v5.5.0.192.g15ae7f0-DEVELOPMENT #34: Tue Feb 19 09:07:07 PST 2019 root@pkgbox64.dragonflybsd.org:/usr/obj/usr/src/sys/X86_64_GENERIC x86_64 -------------------------------------------------- -- Environment -------------------------------------------------- UNAME_r=5.5-SYNTH UNAME_m=x86_64 UNAME_p=x86_64 UNAME_v=DragonFly 5.5-SYNTH UNAME_s=DragonFly PATH=/sbin:/bin:/usr/sbin:/usr/bin:/usr/local/sbin:/usr/local/bin SSL_NO_VERIFY_PEER=1 TERM=dumb PKG_CACHEDIR=/var/cache/pkg8 PKG_DBDIR=/var/db/pkg8 PORTSDIR=/xports LANG=C HOME=/root USER=root -------------------------------------------------- -- Options -------------------------------------------------- -------------------------------------------------- -- CONFIGURE_ENV -------------------------------------------------- XDG_DATA_HOME=/construction/chinese/celvis XDG_CONFIG_HOME=/construction/chinese/celvis HOME=/construction/chinese/celvis TMPDIR="/tmp" PATH=/construction/chinese/celvis/.bin:/sbin:/bin:/usr/sbin:/usr/bin:/usr/local/sbin:/usr/local/bin SHELL=/bin/sh CONFIG_SHELL=/bin/sh CCVER=gcc80 -------------------------------------------------- -- CONFIGURE_ARGS -------------------------------------------------- -------------------------------------------------- -- MAKE_ENV -------------------------------------------------- XDG_DATA_HOME=/construction/chinese/celvis XDG_CONFIG_HOME=/construction/chinese/celvis HOME=/construction/chinese/celvis TMPDIR="/tmp" PATH=/construction/chinese/celvis/.bin:/sbin:/bin:/usr/sbin:/usr/bin:/usr/local/sbin:/usr/local/bin NO_PIE=yes MK_DEBUG_FILES=no MK_KERNEL_SYMBOLS=no SHELL=/bin/sh NO_LINT=YES CCVER=gcc80 PREFIX=/usr/local LOCALBASE=/usr/local NOPROFILE=1 CC="cc" CFLAGS="-pipe -Wno-error=return-type -I/usr/local/include -I/usr/local/include/ncurses -O2 -fno-strict-aliasing " CPP="cpp" CPPFLAGS="" LDFLAGS=" -L/usr/local/lib -Wl,-rpath=/usr/local/lib " LIBS="" CXX="c++" CXXFLAGS=" -pipe -Wno-error=return-type -I/usr/local/include -I/usr/local/include/ncurses -O2 -fno-strict-aliasing " MANPREFIX="/usr/local" BSD_INSTALL_PROGRAM="install -s -m 555" BSD_INSTALL_LIB="install -s -m 0644" BSD_INSTALL_SCRIPT="install -m 555" BSD_INSTALL_DATA="install -m 0644" BSD_INSTALL_MAN="install -m 444" -------------------------------------------------- -- MAKE_ARGS -------------------------------------------------- LIBS=" -L/usr/local/lib -Wl,-rpath=/usr/local/lib -lncurses" DESTDIR=/construction/chinese/celvis/stage -------------------------------------------------- -- PLIST_SUB -------------------------------------------------- OSREL=5.5 PREFIX=%D LOCALBASE=/usr/local RESETPREFIX=/usr/local LIB32DIR=lib PROFILE="@comment " DOCSDIR="share/doc/celvis" EXAMPLESDIR="share/examples/celvis" DATADIR="share/celvis" WWWDIR="www/celvis" ETCDIR="etc/celvis" -------------------------------------------------- -- SUB_LIST -------------------------------------------------- PREFIX=/usr/local LOCALBASE=/usr/local DATADIR=/usr/local/share/celvis DOCSDIR=/usr/local/share/doc/celvis EXAMPLESDIR=/usr/local/share/examples/celvis WWWDIR=/usr/local/www/celvis ETCDIR=/usr/local/etc/celvis -------------------------------------------------- -- /etc/make.conf -------------------------------------------------- SYNTHPROFILE=Release-BE USE_PACKAGE_DEPENDS_ONLY=yes PACKAGE_BUILDING=yes BATCH=yes PKG_CREATE_VERBOSE=yes PORTSDIR=/xports DISTDIR=/distfiles WRKDIRPREFIX=/construction PORT_DBDIR=/options PACKAGES=/packages MAKE_JOBS_NUMBER_LIMIT=5 LICENSES_ACCEPTED= NONE HAVE_COMPAT_IA32_KERN= CONFIGURE_MAX_CMD_LEN=262144 _PERL5_FROM_BIN=5.26.2 _ALTCCVERSION_921dbbb2=none _OBJC_ALTCCVERSION_921dbbb2=none _SMP_CPUS=8 UID=0 ARCH=x86_64 OPSYS=DragonFly DFLYVERSION=500500 OSVERSION=9999999 OSREL=5.5 _OSRELEASE=5.5-SYNTH PYTHONBASE=/usr/local _PKG_CHECKED=1 -------------------------------------------------------------------------------- -- Phase: check-sanity -------------------------------------------------------------------------------- ===> NOTICE: The celvis port currently does not have a maintainer. As a result, it is more likely to have unresolved issues, not be up-to-date, or even be removed in the future. To volunteer to maintain this port, please create an issue at: https://bugs.freebsd.org/bugzilla More information about port maintainership is available at: https://www.freebsd.org/doc/en/articles/contributing/ports-contributing.html#maintain-port -------------------------------------------------------------------------------- -- Phase: pkg-depends -------------------------------------------------------------------------------- ===> zh-celvis-1.3 depends on file: /usr/local/sbin/pkg - not found ===> Installing existing package /packages/All/pkg-1.10.5_5.txz Installing pkg-1.10.5_5... Extracting pkg-1.10.5_5: .......... done ===> zh-celvis-1.3 depends on file: /usr/local/sbin/pkg - found ===> Returning to build of zh-celvis-1.3 -------------------------------------------------------------------------------- -- Phase: fetch-depends -------------------------------------------------------------------------------- -------------------------------------------------------------------------------- -- Phase: fetch -------------------------------------------------------------------------------- ===> NOTICE: The celvis port currently does not have a maintainer. As a result, it is more likely to have unresolved issues, not be up-to-date, or even be removed in the future. To volunteer to maintain this port, please create an issue at: https://bugs.freebsd.org/bugzilla More information about port maintainership is available at: https://www.freebsd.org/doc/en/articles/contributing/ports-contributing.html#maintain-port ===> Fetching all distfiles required by zh-celvis-1.3 for building -------------------------------------------------------------------------------- -- Phase: checksum -------------------------------------------------------------------------------- ===> NOTICE: The celvis port currently does not have a maintainer. As a result, it is more likely to have unresolved issues, not be up-to-date, or even be removed in the future. To volunteer to maintain this port, please create an issue at: https://bugs.freebsd.org/bugzilla More information about port maintainership is available at: https://www.freebsd.org/doc/en/articles/contributing/ports-contributing.html#maintain-port ===> Fetching all distfiles required by zh-celvis-1.3 for building => SHA256 Checksum OK for celvis.tar.gz. -------------------------------------------------------------------------------- -- Phase: extract-depends -------------------------------------------------------------------------------- -------------------------------------------------------------------------------- -- Phase: extract -------------------------------------------------------------------------------- ===> NOTICE: The celvis port currently does not have a maintainer. As a result, it is more likely to have unresolved issues, not be up-to-date, or even be removed in the future. To volunteer to maintain this port, please create an issue at: https://bugs.freebsd.org/bugzilla More information about port maintainership is available at: https://www.freebsd.org/doc/en/articles/contributing/ports-contributing.html#maintain-port ===> Fetching all distfiles required by zh-celvis-1.3 for building ===> Extracting for zh-celvis-1.3 ===> NOTICE: The celvis port currently does not have a maintainer. As a result, it is more likely to have unresolved issues, not be up-to-date, or even be removed in the future. To volunteer to maintain this port, please create an issue at: https://bugs.freebsd.org/bugzilla More information about port maintainership is available at: https://www.freebsd.org/doc/en/articles/contributing/ports-contributing.html#maintain-port ===> Fetching all distfiles required by zh-celvis-1.3 for building => SHA256 Checksum OK for celvis.tar.gz. -------------------------------------------------------------------------------- -- Phase: patch-depends -------------------------------------------------------------------------------- -------------------------------------------------------------------------------- -- Phase: patch -------------------------------------------------------------------------------- ===> Patching for zh-celvis-1.3 ===> Applying ports patches for zh-celvis-1.3 -------------------------------------------------------------------------------- -- Phase: build-depends -------------------------------------------------------------------------------- ===> zh-celvis-1.3 depends on file: /usr/local/lib/libncurses.so.6 - not found ===> Installing existing package /packages/All/ncurses-6.1.20190112.txz Installing ncurses-6.1.20190112... Extracting ncurses-6.1.20190112: .......... done ===> zh-celvis-1.3 depends on file: /usr/local/lib/libncurses.so.6 - found ===> Returning to build of zh-celvis-1.3 -------------------------------------------------------------------------------- -- Phase: lib-depends -------------------------------------------------------------------------------- -------------------------------------------------------------------------------- -- Phase: configure -------------------------------------------------------------------------------- ===> Configuring for zh-celvis-1.3 -------------------------------------------------------------------------------- -- Phase: build -------------------------------------------------------------------------------- ===> Building for zh-celvis-1.3 --- blk.o --- --- cmd1.o --- --- cmd2.o --- --- curses.o --- --- cut.o --- --- blk.o --- cc -pipe -Wno-error=return-type -I/usr/local/include -I/usr/local/include/ncurses -O2 -fno-strict-aliasing -D_HAVE_PARAM_H -c blk.c --- cmd1.o --- eval cc -c -pipe -Wno-error=return-type -I/usr/local/include -I/usr/local/include/ncurses -O2 -fno-strict-aliasing -D_HAVE_PARAM_H -DDATE=\'\"`date`\"\' cmd1.c --- cmd2.o --- cc -pipe -Wno-error=return-type -I/usr/local/include -I/usr/local/include/ncurses -O2 -fno-strict-aliasing -D_HAVE_PARAM_H -c cmd2.c --- curses.o --- cc -pipe -Wno-error=return-type -I/usr/local/include -I/usr/local/include/ncurses -O2 -fno-strict-aliasing -D_HAVE_PARAM_H -c curses.c --- cut.o --- cc -pipe -Wno-error=return-type -I/usr/local/include -I/usr/local/include/ncurses -O2 -fno-strict-aliasing -D_HAVE_PARAM_H -c cut.c In file included from cut.c:14: vi.h:354:9: warning: type defaults to 'int' in declaration of 'ex' [-Wimplicit-int] extern ex(); ^~ vi.h:355:9: warning: type defaults to 'int' in declaration of 'vi' [-Wimplicit-int] extern vi(); ^~ vi.h:356:9: warning: type defaults to 'int' in declaration of 'doexcmd' [-Wimplicit-int] extern doexcmd(); ^~~~~~~ cut.c:39:8: warning: type defaults to 'int' in declaration of 'cutfree' [-Wimplicit-int] static cutfree(struct cutbuf *buf); ^~~~~~~ cut.c:92:1: warning: return type defaults to 'int' [-Wimplicit-int] cutswitch(tmpname) ^~~~~~~~~ cut.c: In function 'cutswitch': cut.c:117:3: warning: 'return' with no value, in function returning non-void return; ^~~~~~ cut.c:92:1: note: declared here cutswitch(tmpname) ^~~~~~~~~ cut.c:134:7: warning: implicit declaration of function 'dup'; did you mean 'm_up'? [-Wimplicit-function-declaration] fd = dup(tmpfd); ^~~ m_up cut.c:135:41: warning: implicit declaration of function 'getpid'; did you mean 'getline'? [-Wimplicit-function-declaration] sprintf(cutname, CUTNAME, o_directory, getpid(), fd); ^~~~~~ getline cut.c:136:2: warning: implicit declaration of function 'link' [-Wimplicit-function-declaration] link(tmpname, cutname) || unlink(tmpname); ^~~~ --- blk.o --- In file included from blk.c:16: vi.h:354:9: warning: type defaults to 'int' in declaration of 'ex' [-Wimplicit-int] extern ex(); ^~ vi.h:355:9: warning: type defaults to 'int' in declaration of 'vi' [-Wimplicit-int] extern vi(); ^~ vi.h:356:9: warning: type defaults to 'int' in declaration of 'doexcmd' [-Wimplicit-int] extern doexcmd(); ^~~~~~~ --- cut.o --- cut.c:136:28: warning: implicit declaration of function 'unlink'; did you mean 'unix'? [-Wimplicit-function-declaration] link(tmpname, cutname) || unlink(tmpname); ^~~~~~ unix cut.c: At top level: cut.c:151:8: warning: return type defaults to 'int' [-Wimplicit-int] static cutfree(buf) ^~~~~~~ cut.c: In function 'cutfree': cut.c:160:3: warning: 'return' with no value, in function returning non-void return; ^~~~~~ cut.c:151:8: note: declared here static cutfree(buf) ^~~~~~~ cut.c:165:2: warning: implicit declaration of function 'free' [-Wimplicit-function-declaration] free(buf->phys); ^~~~ cut.c:165:2: warning: incompatible implicit declaration of built-in function 'free' cut.c:165:2: note: include '' or provide a declaration of 'free' cut.c:15:1: +#include #if TURBOC cut.c:165:2: free(buf->phys); ^~~~ --- blk.o --- blk.c:47:1: warning: return type defaults to 'int' [-Wimplicit-int] blkinit() ^~~~~~~ --- cut.o --- cut.c:186:3: warning: implicit declaration of function 'close'; did you mean 'pclose'? [-Wimplicit-function-declaration] close(buf->fd); ^~~~~ pclose cut.c: At top level: cut.c:200:1: warning: return type defaults to 'int' [-Wimplicit-int] cutend() ^~~~~~ cut.c:215:1: warning: return type defaults to 'int' [-Wimplicit-int] cutname(name) ^~~~~~~ cut.c:225:1: warning: return type defaults to 'int' [-Wimplicit-int] cut(from, to) ^~~ cut.c: In function 'cut': cut.c:266:3: warning: implicit declaration of function 'msg' [-Wimplicit-function-declaration] msg("Invalid cut buffer name: \"%c", cbname); ^~~ cut.c:268:3: warning: 'return' with no value, in function returning non-void return; ^~~~~~ --- blk.o --- blk.c: In function 'blkget': --- cut.o --- cut.c:225:1: note: declared here cut(from, to) ^~~ --- blk.o --- blk.c:97:2: warning: implicit declaration of function 'blkflush'; did you mean 'fflush'? [-Wimplicit-function-declaration] blkflush(this); ^~~~~~~~ fflush blk.c:104:3: warning: implicit declaration of function 'lseek'; did you mean 'fseek'? [-Wimplicit-function-declaration] lseek(tmpfd, (long)hdr.n[logical] * (long)BLKSIZE, 0); ^~~~~ fseek blk.c:105:7: warning: implicit declaration of function 'read'; did you mean 'fread'? [-Wimplicit-function-declaration] if (read(tmpfd, this->buf.c, BLKSIZE) != BLKSIZE) ^~~~ fread --- cut.o --- cut.c:286:1: warning: implicit declaration of function 'blksync' [-Wimplicit-function-declaration] blksync(); ^~~~~~~ --- blk.o --- blk.c:107:4: warning: implicit declaration of function 'msg' [-Wimplicit-function-declaration] msg("Error reading back from tmp file!"); ^~~ blk.c: At top level: blk.c:137:1: warning: return type defaults to 'int' [-Wimplicit-int] blkflush(this) ^~~~~~~~ --- cut.o --- cut.c: At top level: cut.c:357:8: warning: return type defaults to 'int' [-Wimplicit-int] static readcutblk(cb, blkno) ^~~~~~~~~~ cut.c: In function 'readcutblk': --- blk.o --- blk.c: In function 'blkflush': --- cut.o --- cut.c:374:2: warning: implicit declaration of function 'lseek'; did you mean 'fseek'? [-Wimplicit-function-declaration] lseek(fd, (long)cb->phys[blkno] * (long)BLKSIZE, 0); ^~~~~ fseek --- blk.o --- blk.c:146:3: warning: implicit declaration of function 'blkdirty'; did you mean 'blkinit'? [-Wimplicit-function-declaration] blkdirty(&this->buf); ^~~~~~~~ blkinit blk.c:152:3: warning: 'return' with no value, in function returning non-void return; ^~~~~~ blk.c:137:1: note: declared here blkflush(this) ^~~~~~~~ --- cut.o --- cut.c:375:6: warning: implicit declaration of function 'read'; did you mean 'fread'? [-Wimplicit-function-declaration] if (read(fd, tmpblk.c, BLKSIZE) != BLKSIZE) ^~~~ fread --- blk.o --- blk.c:165:6: warning: implicit declaration of function 'write'; did you mean 'fwrite'? [-Wimplicit-function-declaration] if (write(tmpfd, this->buf.c, BLKSIZE) != BLKSIZE) ^~~~~ fwrite blk.c: At top level: blk.c:177:1: warning: return type defaults to 'int' [-Wimplicit-int] blkdirty(bp) ^~~~~~~~ blk.c: In function 'blkdirty': blk.c:214:3: warning: 'return' with no value, in function returning non-void return; ^~~~~~ blk.c:177:1: note: declared here blkdirty(bp) ^~~~~~~~ blk.c: At top level: blk.c:300:1: warning: return type defaults to 'int' [-Wimplicit-int] blksync() ^~~~~~~ --- cut.o --- In file included from cut.c:14: cut.c: In function 'paste': vi.h:231:32: warning: implicit declaration of function 'beforedo'; did you mean 'refresh'? [-Wimplicit-function-declaration] #define ChangeText BeforeAfter(beforedo(FALSE),afterdo()) ^~~~~~~~ vi.h:230:41: note: in definition of macro 'BeforeAfter' #define BeforeAfter(before, after) for((before),bavar=1;bavar;(after),bavar=0) ^~~~~~ cut.c:471:3: note: in expansion of macro 'ChangeText' ChangeText ^~~~~~~~~~ --- blk.o --- blk.c: In function 'blksync': blk.c:311:3: warning: implicit declaration of function 'sync'; did you mean 'blksync'? [-Wimplicit-function-declaration] sync(); ^~~~ blksync blk.c: At top level: blk.c:325:1: warning: return type defaults to 'int' [-Wimplicit-int] beforedo(undo) ^~~~~~~~ blk.c: In function 'beforedo': blk.c:334:3: warning: 'return' with no value, in function returning non-void return; ^~~~~~ blk.c:325:1: note: declared here beforedo(undo) ^~~~~~~~ --- cut.o --- vi.h:231:48: warning: implicit declaration of function 'afterdo'; did you mean 'ftello'? [-Wimplicit-function-declaration] #define ChangeText BeforeAfter(beforedo(FALSE),afterdo()) ^~~~~~~ vi.h:230:64: note: in definition of macro 'BeforeAfter' #define BeforeAfter(before, after) for((before),bavar=1;bavar;(after),bavar=0) ^~~~~ cut.c:471:3: note: in expansion of macro 'ChangeText' ChangeText ^~~~~~~~~~ cut.c:473:4: warning: implicit declaration of function 'add'; did you mean 'addch'? [-Wimplicit-function-declaration] add(at, &tmpblk.c[cb->start]); ^~~ addch --- blk.o --- blk.c:342:2: warning: implicit declaration of function 'garbage' [-Wimplicit-function-declaration] garbage(); ^~~~~~~ blk.c: At top level: blk.c:384:1: warning: return type defaults to 'int' [-Wimplicit-int] afterdo() ^~~~~~~ blk.c: In function 'afterdo': blk.c:388:3: warning: 'return' with no value, in function returning non-void return; ^~~~~~ blk.c:384:1: note: declared here afterdo() ^~~~~~~ blk.c: At top level: blk.c:404:1: warning: return type defaults to 'int' [-Wimplicit-int] abortdo() ^~~~~~~ blk.c: In function 'abortdo': blk.c:409:3: warning: 'return' with no value, in function returning non-void return; ^~~~~~ blk.c:404:1: note: declared here abortdo() ^~~~~~~ blk.c:422:3: warning: implicit declaration of function 'redraw'; did you mean 'v_redraw'? [-Wimplicit-function-declaration] redraw(MARK_UNSET, FALSE); ^~~~~~ v_redraw blk.c: At top level: blk.c:427:1: warning: return type defaults to 'int' [-Wimplicit-int] undo() ^~~~ blk.c: In function 'undo': blk.c:435:3: warning: 'return' with no value, in function returning non-void return; ^~~~~~ blk.c:427:1: note: declared here undo() ^~~~ --- curses.o --- In file included from curses.c:18: vi.h:354:9: warning: type defaults to 'int' in declaration of 'ex' [-Wimplicit-int] extern ex(); ^~ vi.h:355:9: warning: type defaults to 'int' in declaration of 'vi' [-Wimplicit-int] extern vi(); ^~ vi.h:356:9: warning: type defaults to 'int' in declaration of 'doexcmd' [-Wimplicit-int] extern doexcmd(); ^~~~~~~ --- cmd2.o --- In file included from cmd2.c:14: vi.h:354:9: warning: type defaults to 'int' in declaration of 'ex' [-Wimplicit-int] extern ex(); ^~ vi.h:355:9: warning: type defaults to 'int' in declaration of 'vi' [-Wimplicit-int] extern vi(); ^~ vi.h:356:9: warning: type defaults to 'int' in declaration of 'doexcmd' [-Wimplicit-int] extern doexcmd(); ^~~~~~~ cmd2.c: In function 'cmd_substitute': cmd2.c:41:3: warning: implicit declaration of function 'msg' [-Wimplicit-function-declaration] msg("Usage: s/regular expression/new text/"); ^~~ In file included from cmd2.c:14: vi.h:231:32: warning: implicit declaration of function 'beforedo'; did you mean 'refresh'? [-Wimplicit-function-declaration] #define ChangeText BeforeAfter(beforedo(FALSE),afterdo()) ^~~~~~~~ vi.h:230:41: note: in definition of macro 'BeforeAfter' #define BeforeAfter(before, after) for((before),bavar=1;bavar;(after),bavar=0) ^~~~~~ cmd2.c:78:2: note: in expansion of macro 'ChangeText' ChangeText ^~~~~~~~~~ vi.h:231:48: warning: implicit declaration of function 'afterdo'; did you mean 'ftello'? [-Wimplicit-function-declaration] #define ChangeText BeforeAfter(beforedo(FALSE),afterdo()) ^~~~~~~ vi.h:230:64: note: in definition of macro 'BeforeAfter' #define BeforeAfter(before, after) for((before),bavar=1;bavar;(after),bavar=0) ^~~~~ cmd2.c:78:2: note: in expansion of macro 'ChangeText' ChangeText ^~~~~~~~~~ cmd2.c:106:6: warning: implicit declaration of function 'redrawrange' [-Wimplicit-function-declaration] redrawrange(l, l + 1L, l + 1L); ^~~~~~~~~~~ cmd2.c:117:11: warning: implicit declaration of function 'strlen' [-Wimplicit-function-declaration] d += strlen(d); ^~~~~~ cmd2.c:117:11: warning: incompatible implicit declaration of built-in function 'strlen' cmd2.c:117:11: note: include '' or provide a declaration of 'strlen' cmd2.c:16:1: +#include cmd2.c:117:11: d += strlen(d); ^~~~~~ cmd2.c:127:5: warning: implicit declaration of function 'changeline'; did you mean 'v_undoline'? [-Wimplicit-function-declaration] changeline(l, tmpblk.c); ^~~~~~~~~~ v_undoline cmd2.c:134:6: warning: implicit declaration of function 'exrefresh'; did you mean 'wrefresh'? [-Wimplicit-function-declaration] exrefresh(); ^~~~~~~~~ wrefresh cmd2.c:153:2: warning: implicit declaration of function 'free' [-Wimplicit-function-declaration] free(re); ^~~~ cmd2.c:153:2: warning: incompatible implicit declaration of built-in function 'free' cmd2.c:153:2: note: include '' or provide a declaration of 'free' cmd2.c:16:1: +#include cmd2.c:153:2: free(re); ^~~~ cmd2.c: In function 'cmd_delete': cmd2.c:183:3: warning: implicit declaration of function 'cutname'; did you mean 'rename'? [-Wimplicit-function-declaration] cutname(*extra); ^~~~~~~ rename cmd2.c:191:2: warning: implicit declaration of function 'cut'; did you mean 'putw'? [-Wimplicit-function-declaration] cut(frommark, tomark); ^~~ putw cmd2.c:200:4: warning: implicit declaration of function 'delete'; did you mean 'v_delete'? [-Wimplicit-function-declaration] delete(frommark, tomark); ^~~~~~ v_delete cmd2.c: In function 'cmd_append': cmd2.c:241:10: warning: implicit declaration of function 'vgets'; did you mean 'gets'? [-Wimplicit-function-declaration] while (vgets('\0', tmpblk.c, BLKSIZE) >= 0) ^~~~~ gets cmd2.c:244:9: warning: implicit declaration of function 'strcmp' [-Wimplicit-function-declaration] if (!strcmp(tmpblk.c, ".")) ^~~~~~ cmd2.c:249:4: warning: implicit declaration of function 'addline'; did you mean 'getline'? [-Wimplicit-function-declaration] addline(l, tmpblk.c); ^~~~~~~ getline cmd2.c:255:2: warning: implicit declaration of function 'redraw'; did you mean 'v_redraw'? [-Wimplicit-function-declaration] redraw(MARK_UNSET, FALSE); ^~~~~~ v_redraw cmd2.c: In function 'cmd_join': cmd2.c:310:2: warning: implicit declaration of function 'strcpy' [-Wimplicit-function-declaration] strcpy(tmpblk.c, fetchline(l++)); ^~~~~~ cmd2.c:310:2: warning: incompatible implicit declaration of built-in function 'strcpy' cmd2.c:310:2: note: include '' or provide a declaration of 'strcpy' cmd2.c:311:8: warning: incompatible implicit declaration of built-in function 'strlen' len = strlen(tmpblk.c); ^~~~~~ cmd2.c:311:8: note: include '' or provide a declaration of 'strlen' cmd2.c: In function 'cmd_shift': cmd2.c:429:4: warning: implicit declaration of function 'change'; did you mean 'v_change'? [-Wimplicit-function-declaration] change(MARK_AT_LINE(l), MARK_AT_LINE(l) + oldidx, tmpblk.c); ^~~~~~ v_change cmd2.c: In function 'cmd_read': cmd2.c:468:3: warning: implicit declaration of function 'filter'; did you mean 'v_filter'? [-Wimplicit-function-declaration] filter(frommark, MARK_UNSET, extra); ^~~~~~ v_filter In file included from cmd2.c:13: config.h:145:15: warning: implicit declaration of function 'read'; did you mean 'fread'? [-Wimplicit-function-declaration] #define tread read ^~~~ cmd2.c:490:19: note: in expansion of macro 'tread' (rc = rc + tread(fd, tmpblk.c + rc, BLKSIZE - rc)) > 0; ^~~~~ cmd2.c:533:2: warning: implicit declaration of function 'close'; did you mean 'pclose'? [-Wimplicit-function-declaration] close(fd); ^~~~~ pclose cmd2.c: In function 'cmd_undo': cmd2.c:590:2: warning: implicit declaration of function 'undo'; did you mean 'v_undo'? [-Wimplicit-function-declaration] undo(); ^~~~ v_undo cmd2.c: In function 'cmd_source': cmd2.c:723:2: warning: implicit declaration of function 'doexrc'; did you mean 'doexcmd'? [-Wimplicit-function-declaration] doexrc(extra); ^~~~~~ doexcmd --- curses.o --- curses.c:108:1: warning: return type defaults to 'int' [-Wimplicit-int] initscr() ^~~~~~~ curses.c: In function 'initscr': curses.c:120:3: warning: implicit declaration of function 'write'; did you mean 'fwrite'? [-Wimplicit-function-declaration] write(2, "Environment variable TERM must be set\n", 38); ^~~~~ fwrite curses.c:121:3: warning: implicit declaration of function 'HZ_abort' [-Wimplicit-function-declaration] HZ_abort(1); ^~~~~~~~ curses.c:133:3: warning: implicit declaration of function 'starttcap' [-Wimplicit-function-declaration] starttcap(); ^~~~~~~~~ curses.c:147:2: warning: implicit declaration of function 'resume_curses' [-Wimplicit-function-declaration] resume_curses(TRUE); ^~~~~~~~~~~~~ curses.c: At top level: curses.c:151:1: warning: return type defaults to 'int' [-Wimplicit-int] endwin() ^~~~~~ curses.c: In function 'endwin': curses.c:154:2: warning: implicit declaration of function 'suspend_curses' [-Wimplicit-function-declaration] suspend_curses(); ^~~~~~~~~~~~~~ curses.c: At top level: curses.c:157:1: warning: return type defaults to 'int' [-Wimplicit-int] suspend_curses() ^~~~~~~~~~~~~~ In file included from vi.h:51, from curses.c:18: curses.c: In function 'suspend_curses': curses.h:139:49: warning: implicit declaration of function 'strlen' [-Wimplicit-function-declaration] #define do_TE() VOIDBIOS(0, (void)ttywrite(TE, strlen(TE))) ^~~~~~ curses.h:115:24: note: in definition of macro 'VOIDBIOS' #define VOIDBIOS(x,y) {y;} ^ curses.h:139:36: note: in expansion of macro 'ttywrite' #define do_TE() VOIDBIOS(0, (void)ttywrite(TE, strlen(TE))) ^~~~~~~~ curses.c:171:3: note: in expansion of macro 'do_TE' do_TE(); ^~~~~ curses.h:139:49: warning: incompatible implicit declaration of built-in function 'strlen' #define do_TE() VOIDBIOS(0, (void)ttywrite(TE, strlen(TE))) ^~~~~~ curses.h:115:24: note: in definition of macro 'VOIDBIOS' #define VOIDBIOS(x,y) {y;} ^ curses.h:139:36: note: in expansion of macro 'ttywrite' #define do_TE() VOIDBIOS(0, (void)ttywrite(TE, strlen(TE))) ^~~~~~~~ curses.c:171:3: note: in expansion of macro 'do_TE' do_TE(); ^~~~~ curses.h:139:49: note: include '' or provide a declaration of 'strlen' #define do_TE() VOIDBIOS(0, (void)ttywrite(TE, strlen(TE))) ^~~~~~ curses.h:115:24: note: in definition of macro 'VOIDBIOS' #define VOIDBIOS(x,y) {y;} ^ curses.h:139:36: note: in expansion of macro 'ttywrite' #define do_TE() VOIDBIOS(0, (void)ttywrite(TE, strlen(TE))) ^~~~~~~~ curses.c:171:3: note: in expansion of macro 'do_TE' do_TE(); ^~~~~ curses.c: At top level: curses.c:193:1: warning: return type defaults to 'int' [-Wimplicit-int] resume_curses(quietly) ^~~~~~~~~~~~~ In file included from vi.h:51, from curses.c:18: curses.c: In function 'resume_curses': curses.h:138:49: warning: incompatible implicit declaration of built-in function 'strlen' #define do_TI() VOIDBIOS(0, (void)ttywrite(TI, strlen(TI))) ^~~~~~ curses.h:115:24: note: in definition of macro 'VOIDBIOS' #define VOIDBIOS(x,y) {y;} ^ curses.h:138:36: note: in expansion of macro 'ttywrite' #define do_TI() VOIDBIOS(0, (void)ttywrite(TI, strlen(TI))) ^~~~~~~~ curses.c:233:3: note: in expansion of macro 'do_TI' do_TI(); ^~~~~ curses.h:138:49: note: include '' or provide a declaration of 'strlen' #define do_TI() VOIDBIOS(0, (void)ttywrite(TI, strlen(TI))) ^~~~~~ curses.h:115:24: note: in definition of macro 'VOIDBIOS' #define VOIDBIOS(x,y) {y;} ^ curses.h:138:36: note: in expansion of macro 'ttywrite' #define do_TI() VOIDBIOS(0, (void)ttywrite(TI, strlen(TI))) ^~~~~~~~ curses.c:233:3: note: in expansion of macro 'do_TI' do_TI(); ^~~~~ curses.c:241:3: warning: 'return' with no value, in function returning non-void return; ^~~~~~ curses.c:193:1: note: declared here resume_curses(quietly) ^~~~~~~~~~~~~ In file included from curses.c:17: config.h:124:28: warning: implicit declaration of function 'read'; did you mean 'fread'? [-Wimplicit-function-declaration] # define ttyread(buf, len) read(0, buf, len) /* raw read */ ^~~~ curses.c:251:2: note: in expansion of macro 'ttyread' ttyread(kbuf, 20); /* in RAW mode, so <20 is very likely */ ^~~~~~~ curses.c:261:3: warning: implicit declaration of function 'redraw'; did you mean 'v_redraw'? [-Wimplicit-function-declaration] redraw(MARK_UNSET, FALSE); ^~~~~~ v_redraw curses.c:268:17: warning: passing argument 2 of 'signal' from incompatible pointer type [-Wincompatible-pointer-types] signal(SIGINT, trapint); ^~~~~~~ In file included from /usr/include/sys/select.h:39, from /usr/include/sys/param.h:234, from config.h:10, from curses.c:17: /usr/include/sys/signal.h:399:17: note: expected 'void (*)(int)' but argument is of type 'int (*)()' __sighandler_t *signal (int, __sighandler_t *); ^~~~~~ curses.c: At top level: curses.c:272:8: warning: return type defaults to 'int' [-Wimplicit-int] static lacking(s) ^~~~~~~ curses.c:281:1: warning: return type defaults to 'int' [-Wimplicit-int] starttcap() ^~~~~~~~~ curses.c: In function 'starttcap': curses.c:293:10: warning: implicit declaration of function 'tgetent'; did you mean 'getenv'? [-Wimplicit-function-declaration] switch (tgetent(kbuf, getenv("TERM"))) ^~~~~~~ getenv curses.c:311:6: warning: implicit declaration of function 'tgetnum'; did you mean 'tgetstr'? [-Wimplicit-function-declaration] if (tgetnum("ug") <= 0) ^~~~~~~ tgetstr curses.c:334:7: warning: implicit declaration of function 'tgetflag'; did you mean 'tstflag'? [-Wimplicit-function-declaration] AM = tgetflag("am"); ^~~~~~~~ tstflag curses.c:337:2: warning: implicit declaration of function 'getsize'; did you mean 'getline'? [-Wimplicit-function-declaration] getsize(0); ^~~~~~~ getline curses.c: At top level: curses.c:376:1: warning: return type defaults to 'int' [-Wimplicit-int] getsize(signo) ^~~~~~~ curses.c: In function 'getsize': curses.c:387:19: warning: passing argument 2 of 'signal' from incompatible pointer type [-Wincompatible-pointer-types] signal(SIGWINCH, getsize); ^~~~~~~ In file included from /usr/include/sys/select.h:39, from /usr/include/sys/param.h:234, from config.h:10, from curses.c:17: /usr/include/sys/signal.h:399:17: note: expected 'void (*)(int)' but argument is of type 'int (*)()' __sighandler_t *signal (int, __sighandler_t *); ^~~~~~ --- ex.o --- cc -pipe -Wno-error=return-type -I/usr/local/include -I/usr/local/include/ncurses -O2 -fno-strict-aliasing -D_HAVE_PARAM_H -c ex.c --- cmd1.o --- In file included from cmd1.c:17: vi.h:354:9: warning: type defaults to 'int' in declaration of 'ex' [-Wimplicit-int] extern ex(); ^~ vi.h:355:9: warning: type defaults to 'int' in declaration of 'vi' [-Wimplicit-int] extern vi(); ^~ vi.h:356:9: warning: type defaults to 'int' in declaration of 'doexcmd' [-Wimplicit-int] extern doexcmd(); ^~~~~~~ cmd1.c: In function 'cmd_mark': cmd1.c:154:3: warning: implicit declaration of function 'msg' [-Wimplicit-function-declaration] msg("Invalid mark name"); ^~~ cmd1.c: In function 'cmd_write': cmd1.c:178:3: warning: implicit declaration of function 'tmpsave'; did you mean 'tmpnam'? [-Wimplicit-function-declaration] tmpsave(extra, bang); ^~~~~~~ tmpnam cmd1.c:191:6: warning: implicit declaration of function 'access' [-Wimplicit-function-declaration] if (access(extra, 0) == 0 && !bang && !append) ^~~~~~ cmd1.c:228:7: warning: implicit declaration of function 'strlen' [-Wimplicit-function-declaration] i = strlen(scan); ^~~~~~ cmd1.c:228:7: warning: incompatible implicit declaration of built-in function 'strlen' cmd1.c:228:7: note: include '' or provide a declaration of 'strlen' cmd1.c:19:1: +#include cmd1.c:228:7: i = strlen(scan); ^~~~~~ In file included from cmd1.c:15: config.h:146:17: warning: implicit declaration of function 'write'; did you mean 'fwrite'? [-Wimplicit-function-declaration] #define twrite write ^~~~~ cmd1.c:232:3: note: in expansion of macro 'twrite' twrite(fd, scan, i); ^~~~~~ cmd1.c:234:2: warning: implicit declaration of function 'close'; did you mean 'pclose'? [-Wimplicit-function-declaration] close(fd); ^~~~~ pclose cmd1.c: In function 'cmd_shell': cmd1.c:266:3: warning: implicit declaration of function 'strcpy' [-Wimplicit-function-declaration] strcpy(prevextra, extra); ^~~~~~ cmd1.c:266:3: warning: incompatible implicit declaration of built-in function 'strcpy' cmd1.c:266:3: note: include '' or provide a declaration of 'strcpy' cmd1.c:270:2: warning: implicit declaration of function 'suspend_curses' [-Wimplicit-function-declaration] suspend_curses(); ^~~~~~~~~~~~~~ cmd1.c:273:3: warning: implicit declaration of function 'system'; did you mean 'paste'? [-Wimplicit-function-declaration] system(extra); ^~~~~~ paste cmd1.c:277:3: warning: implicit declaration of function 'filter'; did you mean 'v_filter'? [-Wimplicit-function-declaration] filter(frommark, tomark, extra); ^~~~~~ v_filter cmd1.c:281:2: warning: implicit declaration of function 'resume_curses' [-Wimplicit-function-declaration] resume_curses(mode == MODE_EX); ^~~~~~~~~~~~~ In file included from cmd1.c:17: cmd1.c: In function 'cmd_global': vi.h:231:32: warning: implicit declaration of function 'beforedo'; did you mean 'refresh'? [-Wimplicit-function-declaration] #define ChangeText BeforeAfter(beforedo(FALSE),afterdo()) ^~~~~~~~ vi.h:230:41: note: in definition of macro 'BeforeAfter' #define BeforeAfter(before, after) for((before),bavar=1;bavar;(after),bavar=0) ^~~~~~ cmd1.c:327:2: note: in expansion of macro 'ChangeText' ChangeText ^~~~~~~~~~ vi.h:231:48: warning: implicit declaration of function 'afterdo'; did you mean 'ftello'? [-Wimplicit-function-declaration] #define ChangeText BeforeAfter(beforedo(FALSE),afterdo()) ^~~~~~~ vi.h:230:64: note: in definition of macro 'BeforeAfter' #define BeforeAfter(before, after) for((before),bavar=1;bavar;(after),bavar=0) ^~~~~ cmd1.c:327:2: note: in expansion of macro 'ChangeText' ChangeText ^~~~~~~~~~ cmd1.c:355:29: warning: implicit declaration of function 'strncmp' [-Wimplicit-function-declaration] if (cmd==CMD_GLOBAL && !strncmp(cmdptr, "s//", 3)) ^~~~~~~ cmd1.c:363:6: warning: incompatible implicit declaration of built-in function 'strcpy' strcpy(cmdln, "s/"); /* beginning of :s cmd */ ^~~~~~ cmd1.c:363:6: note: include '' or provide a declaration of 'strcpy' cmd1.c:364:6: warning: implicit declaration of function 'strcat' [-Wimplicit-function-declaration] strcat(cmdln, extra+1); /* pattern from :g search */ ^~~~~~ cmd1.c:364:6: warning: incompatible implicit declaration of built-in function 'strcat' cmd1.c:364:6: note: include '' or provide a declaration of 'strcat' cmd1.c:368:6: warning: incompatible implicit declaration of built-in function 'strcpy' strcpy(cmdln, cmdptr); ^~~~~~ cmd1.c:368:6: note: include '' or provide a declaration of 'strcpy' cmd1.c:377:2: warning: implicit declaration of function 'free' [-Wimplicit-function-declaration] free(re); ^~~~ cmd1.c:377:2: warning: incompatible implicit declaration of built-in function 'free' cmd1.c:377:2: note: include '' or provide a declaration of 'free' cmd1.c:19:1: +#include cmd1.c:377:2: free(re); ^~~~ cmd1.c: In function 'cmd_edit': cmd1.c:420:7: warning: implicit declaration of function 'strcmp' [-Wimplicit-function-declaration] if (!strcmp(extra, prevorig)) ^~~~~~ cmd1.c:426:6: warning: implicit declaration of function 'tmpabort'; did you mean 'major'? [-Wimplicit-function-declaration] if (tmpabort(bang)) ^~~~~~~~ major cmd1.c:428:3: warning: implicit declaration of function 'tmpstart'; did you mean 'tmpnam'? [-Wimplicit-function-declaration] tmpstart(extra); ^~~~~~~~ tmpnam cmd1.c:439:3: warning: incompatible implicit declaration of built-in function 'strcpy' strcpy(prevorig, extra); ^~~~~~ cmd1.c:439:3: note: include '' or provide a declaration of 'strcpy' cmd1.c: In function 'cmd_xit': cmd1.c:539:6: warning: implicit declaration of function 'tmpend'; did you mean 'popen'? [-Wimplicit-function-declaration] if (tmpend(bang)) ^~~~~~ popen cmd1.c: In function 'cmd_args': cmd1.c:605:3: warning: implicit declaration of function 'exrefresh'; did you mean 'wrefresh'? [-Wimplicit-function-declaration] exrefresh(); ^~~~~~~~~ wrefresh cmd1.c:609:3: warning: incompatible implicit declaration of built-in function 'strcpy' strcpy(args, extra); ^~~~~~ cmd1.c:609:3: note: include '' or provide a declaration of 'strcpy' cmd1.c: In function 'cmd_cd': cmd1.c:650:6: warning: implicit declaration of function 'chdir' [-Wimplicit-function-declaration] if (chdir(extra) < 0) ^~~~~ cmd1.c: In function 'cmd_map': cmd1.c:669:3: warning: implicit declaration of function 'dumpkey' [-Wimplicit-function-declaration] dumpkey(bang ? WHEN_VIINP|WHEN_VIREP : WHEN_VICMD); ^~~~~~~ cmd1.c:682:3: warning: implicit declaration of function 'mapkey' [-Wimplicit-function-declaration] mapkey(extra, mapto, bang ? WHEN_VIINP|WHEN_VIREP : WHEN_VICMD, (char *)0); ^~~~~~ cmd1.c: In function 'cmd_set': cmd1.c:696:3: warning: implicit declaration of function 'dumpopts' [-Wimplicit-function-declaration] dumpopts(FALSE);/* "FALSE" means "don't dump all" - only set */ ^~~~~~~~ cmd1.c:704:3: warning: implicit declaration of function 'setopts'; did you mean 'fsetpos'? [-Wimplicit-function-declaration] setopts(extra); ^~~~~~~ fsetpos cmd1.c: In function 'cmd_tag': cmd1.c:739:3: warning: implicit declaration of function 'strncpy' [-Wimplicit-function-declaration] strncpy(prevtag, extra, sizeof prevtag); ^~~~~~~ cmd1.c:739:3: warning: incompatible implicit declaration of built-in function 'strncpy' cmd1.c:739:3: note: include '' or provide a declaration of 'strncpy' In file included from cmd1.c:15: config.h:145:15: warning: implicit declaration of function 'read'; did you mean 'fread'? [-Wimplicit-function-declaration] #define tread read ^~~~ cmd1.c:758:21: note: in expansion of macro 'tread' end = tmpblk.c + tread(fd, tmpblk.c, BLKSIZE); ^~~~~ cmd1.c: In function 'cmd_mkexrc': cmd1.c:924:2: warning: implicit declaration of function 'savekeys' [-Wimplicit-function-declaration] savekeys(fd); ^~~~~~~~ --- ex.o --- In file included from ex.c:15: vi.h:354:9: warning: type defaults to 'int' in declaration of 'ex' [-Wimplicit-int] extern ex(); ^~ vi.h:355:9: warning: type defaults to 'int' in declaration of 'vi' [-Wimplicit-int] extern vi(); ^~ vi.h:356:9: warning: type defaults to 'int' in declaration of 'doexcmd' [-Wimplicit-int] extern doexcmd(); ^~~~~~~ --- cmd1.o --- cmd1.c:925:2: warning: implicit declaration of function 'saveopts' [-Wimplicit-function-declaration] saveopts(fd); ^~~~~~~~ cmd1.c:927:2: warning: implicit declaration of function 'savedigs' [-Wimplicit-function-declaration] savedigs(fd); ^~~~~~~~ cmd1.c: In function 'cmd_digraph': cmd1.c:945:2: warning: implicit declaration of function 'do_digraph'; did you mean 'cmd_digraph'? [-Wimplicit-function-declaration] do_digraph(bang, extra); ^~~~~~~~~~ cmd_digraph --- ex.o --- ex.c:265:1: warning: return type defaults to 'int' [-Wimplicit-int] ex() ^~ ex.c: In function 'ex': ex.c:271:11: warning: implicit declaration of function 'vgets'; did you mean 'gets'? [-Wimplicit-function-declaration] cmdlen = vgets(':', cmdbuf, sizeof cmdbuf); ^~~~~ gets ex.c:274:3: warning: 'return' with no value, in function returning non-void return; ^~~~~~ ex.c:265:1: note: declared here ex() ^~ In file included from vi.h:51, from ex.c:15: config.h:127:29: warning: implicit declaration of function 'write'; did you mean 'fwrite'? [-Wimplicit-function-declaration] # define ttywrite(buf, len) write(1, buf, len) /* raw write */ ^~~~~ curses.h:115:24: note: in definition of macro 'VOIDBIOS' #define VOIDBIOS(x,y) {y;} ^ curses.h:206:38: note: in expansion of macro 'VOIDBIOS' #define wrefresh(w) if ((w) != kbuf) VOIDBIOS((w) = kbuf, {ttywrite(kbuf, (int)((w) - kbuf)); (w) = kbuf;}) else ^~~~~~~~ curses.h:206:60: note: in expansion of macro 'ttywrite' #define wrefresh(w) if ((w) != kbuf) VOIDBIOS((w) = kbuf, {ttywrite(kbuf, (int)((w) - kbuf)); (w) = kbuf;}) else ^~~~~~~~ curses.h:205:31: note: in expansion of macro 'wrefresh' #define refresh() VOIDBIOS(0, wrefresh(stdscr)) ^~~~~~~~ ex.c:277:2: note: in expansion of macro 'refresh' refresh(); ^~~~~~~ ex.c:282:3: warning: implicit declaration of function 'strcpy' [-Wimplicit-function-declaration] strcpy(cmdbuf, ".+1"); ^~~~~~ ex.c:282:3: warning: incompatible implicit declaration of built-in function 'strcpy' ex.c:282:3: note: include '' or provide a declaration of 'strcpy' ex.c:16:1: +#include ex.c:282:3: strcpy(cmdbuf, ".+1"); ^~~~~~ ex.c: At top level: ex.c:289:1: warning: return type defaults to 'int' [-Wimplicit-int] doexcmd(cmdbuf) ^~~~~~~ ex.c: In function 'doexcmd': ex.c:312:3: warning: 'return' with no value, in function returning non-void return; ^~~~~~ ex.c:289:1: note: declared here doexcmd(cmdbuf) ^~~~~~~ ex.c:347:4: warning: 'return' with no value, in function returning non-void return; ^~~~~~ ex.c:289:1: note: declared here doexcmd(cmdbuf) ^~~~~~~ ex.c:351:4: warning: implicit declaration of function 'msg' [-Wimplicit-function-declaration] msg("first address exceeds the second"); ^~~ ex.c:352:4: warning: 'return' with no value, in function returning non-void return; ^~~~~~ ex.c:289:1: note: declared here doexcmd(cmdbuf) ^~~~~~~ ex.c:369:4: warning: 'return' with no value, in function returning non-void return; ^~~~~~ ex.c:289:1: note: declared here doexcmd(cmdbuf) ^~~~~~~ ex.c:390:32: warning: implicit declaration of function 'strncmp' [-Wimplicit-function-declaration] cmdnames[cmdidx].name && strncmp(scan, cmdnames[cmdidx].name, cmdlen); ^~~~~~~ ex.c:399:3: warning: 'return' with no value, in function returning non-void return; ^~~~~~ ex.c:289:1: note: declared here doexcmd(cmdbuf) ^~~~~~~ ex.c:434:7: warning: 'return' with no value, in function returning non-void return; ^~~~~~ ex.c:289:1: note: declared here doexcmd(cmdbuf) ^~~~~~~ ex.c:436:6: warning: incompatible implicit declaration of built-in function 'strcpy' strcpy(build, origname); ^~~~~~ ex.c:436:6: note: include '' or provide a declaration of 'strcpy' ex.c:448:7: warning: 'return' with no value, in function returning non-void return; ^~~~~~ ex.c:289:1: note: declared here doexcmd(cmdbuf) ^~~~~~~ ex.c:485:6: warning: implicit declaration of function 'exrefresh'; did you mean 'wrefresh'? [-Wimplicit-function-declaration] exrefresh(); ^~~~~~~~~ wrefresh ex.c:500:5: warning: incompatible implicit declaration of built-in function 'strcpy' strcpy(tmpblk.c, origname); ^~~~~~ ex.c:500:5: note: include '' or provide a declaration of 'strcpy' ex.c:515:3: warning: 'return' with no value, in function returning non-void return; ^~~~~~ ex.c:289:1: note: declared here doexcmd(cmdbuf) ^~~~~~~ ex.c:520:3: warning: 'return' with no value, in function returning non-void return; ^~~~~~ ex.c:289:1: note: declared here doexcmd(cmdbuf) ^~~~~~~ ex.c:525:3: warning: 'return' with no value, in function returning non-void return; ^~~~~~ ex.c:289:1: note: declared here doexcmd(cmdbuf) ^~~~~~~ ex.c:530:3: warning: 'return' with no value, in function returning non-void return; ^~~~~~ ex.c:289:1: note: declared here doexcmd(cmdbuf) ^~~~~~~ ex.c:541:5: warning: 'return' with no value, in function returning non-void return; ^~~~~~ ex.c:289:1: note: declared here doexcmd(cmdbuf) ^~~~~~~ In file included from ex.c:13: ex.c: In function 'doexrc': config.h:145:15: warning: implicit declaration of function 'read'; did you mean 'fread'? [-Wimplicit-function-declaration] #define tread read ^~~~ ex.c:580:8: note: in expansion of macro 'tread' len = tread(fd, buf, MAXRCLEN); ^~~~~ ex.c:581:2: warning: implicit declaration of function 'close'; did you mean 'pclose'? [-Wimplicit-function-declaration] close(fd); ^~~~~ pclose --- input.o --- cc -pipe -Wno-error=return-type -I/usr/local/include -I/usr/local/include/ncurses -O2 -fno-strict-aliasing -D_HAVE_PARAM_H -c input.c --- main.o --- cc -pipe -Wno-error=return-type -I/usr/local/include -I/usr/local/include/ncurses -O2 -fno-strict-aliasing -D_HAVE_PARAM_H -c main.c --- input.o --- In file included from input.c:17: vi.h:354:9: warning: type defaults to 'int' in declaration of 'ex' [-Wimplicit-int] extern ex(); ^~ vi.h:355:9: warning: type defaults to 'int' in declaration of 'vi' [-Wimplicit-int] extern vi(); ^~ vi.h:356:9: warning: type defaults to 'int' in declaration of 'doexcmd' [-Wimplicit-int] extern doexcmd(); ^~~~~~~ input.c:57:1: warning: return type defaults to 'int' [-Wimplicit-int] do_digraph(bang, args) ^~~~~~~~~~ input.c: In function 'do_digraph': input.c:71:5: warning: implicit declaration of function 'msg' [-Wimplicit-function-declaration] msg("digraph %c%c %c", digs[i].key1, digs[i].key2, digs[i].dig); ^~~ input.c:74:3: warning: 'return' with no value, in function returning non-void return; ^~~~~~ input.c:57:1: note: declared here do_digraph(bang, args) ^~~~~~~~~~ input.c:81:3: warning: 'return' with no value, in function returning non-void return; ^~~~~~ input.c:57:1: note: declared here do_digraph(bang, args) ^~~~~~~~~~ input.c:86:3: warning: 'return' with no value, in function returning non-void return; ^~~~~~ input.c:57:1: note: declared here do_digraph(bang, args) ^~~~~~~~~~ input.c:111:4: warning: 'return' with no value, in function returning non-void return; ^~~~~~ input.c:57:1: note: declared here do_digraph(bang, args) ^~~~~~~~~~ input.c: At top level: input.c:121:1: warning: return type defaults to 'int' [-Wimplicit-int] savedigs(fd) ^~~~~~~~ input.c: In function 'savedigs': input.c:134:4: warning: implicit declaration of function 'write'; did you mean 'fwrite'? [-Wimplicit-function-declaration] write(fd, buf, 14); ^~~~~ fwrite input.c: In function 'input': input.c:179:3: warning: implicit declaration of function 'cut'; did you mean 'putw'? [-Wimplicit-function-declaration] cut(from, to); ^~~ putw In file included from input.c:17: vi.h:231:32: warning: implicit declaration of function 'beforedo'; did you mean 'refresh'? [-Wimplicit-function-declaration] #define ChangeText BeforeAfter(beforedo(FALSE),afterdo()) ^~~~~~~~ vi.h:230:41: note: in definition of macro 'BeforeAfter' #define BeforeAfter(before, after) for((before),bavar=1;bavar;(after),bavar=0) ^~~~~~ input.c:182:2: note: in expansion of macro 'ChangeText' ChangeText ^~~~~~~~~~ vi.h:231:48: warning: implicit declaration of function 'afterdo'; did you mean 'ftello'? [-Wimplicit-function-declaration] #define ChangeText BeforeAfter(beforedo(FALSE),afterdo()) ^~~~~~~ vi.h:230:64: note: in definition of macro 'BeforeAfter' #define BeforeAfter(before, after) for((before),bavar=1;bavar;(after),bavar=0) ^~~~~ input.c:182:2: note: in expansion of macro 'ChangeText' ChangeText ^~~~~~~~~~ input.c:190:5: warning: implicit declaration of function 'delete'; did you mean 'v_delete'? [-Wimplicit-function-declaration] delete(from, to); ^~~~~~ v_delete input.c:194:4: warning: implicit declaration of function 'cutname'; did you mean 'rename'? [-Wimplicit-function-declaration] cutname('.'); ^~~~~~~ rename --- misc.o --- --- input.o --- input.c:210:9: warning: implicit declaration of function 'IsIdxHZ' [-Wimplicit-function-declaration] if (IsIdxHZ(markidx(to-1), ptext) < 0) ^~~~~~~ input.c:211:6: warning: implicit declaration of function 'change'; did you mean 'v_change'? [-Wimplicit-function-declaration] change (to - 2, to, " $"); ^~~~~~ v_change input.c:244:7: warning: implicit declaration of function 'add'; did you mean 'addch'? [-Wimplicit-function-declaration] add(cursor, tmpblk.c); ^~~ addch input.c:256:5: warning: implicit declaration of function 'redraw'; did you mean 'v_redraw'? [-Wimplicit-function-declaration] redraw(cursor, TRUE); ^~~~~~ v_redraw --- misc.o --- cc -pipe -Wno-error=return-type -I/usr/local/include -I/usr/local/include/ncurses -O2 -fno-strict-aliasing -D_HAVE_PARAM_H -c misc.c --- input.o --- input.c:257:14: warning: implicit declaration of function 'getkey'; did you mean 'getw'? [-Wimplicit-function-declaration] key[0] = getkey(when); ^~~~~~ getw input.c:274:10: warning: implicit declaration of function 'idx2col' [-Wimplicit-function-declaration] if (idx2col(cursor, ptext, TRUE) > COLS - (*o_wrapmargin & 0xff)) ^~~~~~~ input.c:315:7: warning: implicit declaration of function 'beep' [-Wimplicit-function-declaration] beep(); ^~~~ input.c:542:3: warning: implicit declaration of function 'blksync' [-Wimplicit-function-declaration] blksync(); ^~~~~~~ --- misc.o --- In file included from misc.c:14: vi.h:354:9: warning: type defaults to 'int' in declaration of 'ex' [-Wimplicit-int] extern ex(); ^~ vi.h:355:9: warning: type defaults to 'int' in declaration of 'vi' [-Wimplicit-int] extern vi(); ^~ vi.h:356:9: warning: type defaults to 'int' in declaration of 'doexcmd' [-Wimplicit-int] extern doexcmd(); ^~~~~~~ misc.c:85:1: warning: return type defaults to 'int' [-Wimplicit-int] deleteline(line) ^~~~~~~~~~ misc.c: In function 'deleteline': misc.c:92:2: warning: implicit declaration of function 'delete'; did you mean 'v_delete'? [-Wimplicit-function-declaration] delete(frommark, tomark); ^~~~~~ v_delete misc.c: At top level: misc.c:97:1: warning: return type defaults to 'int' [-Wimplicit-int] addline(l, txt) ^~~~~~~ misc.c: In function 'addline': misc.c:104:2: warning: implicit declaration of function 'strcpy' [-Wimplicit-function-declaration] strcpy(newtext.c, txt); ^~~~~~ misc.c:104:2: warning: incompatible implicit declaration of built-in function 'strcpy' misc.c:104:2: note: include '' or provide a declaration of 'strcpy' misc.c:15:1: +#include misc.c:104:2: strcpy(newtext.c, txt); ^~~~~~ misc.c:105:2: warning: implicit declaration of function 'strcat' [-Wimplicit-function-declaration] strcat(newtext.c, "\n"); ^~~~~~ misc.c:105:2: warning: incompatible implicit declaration of built-in function 'strcat' misc.c:105:2: note: include '' or provide a declaration of 'strcat' misc.c:107:2: warning: implicit declaration of function 'add'; did you mean 'addch'? [-Wimplicit-function-declaration] add(atmark, newtext.c); ^~~ addch misc.c: At top level: misc.c:112:1: warning: return type defaults to 'int' [-Wimplicit-int] changeline(l, txt) ^~~~~~~~~~ misc.c: In function 'regerror': misc.c:125:2: warning: implicit declaration of function 'msg' [-Wimplicit-function-declaration] msg("RE error: %s", txt); ^~~ misc.c: In function 'pfetch': misc.c:136:10: warning: implicit declaration of function 'strlen' [-Wimplicit-function-declaration] plen = strlen(ptext); ^~~~~~ misc.c:136:10: warning: incompatible implicit declaration of built-in function 'strlen' misc.c:136:10: note: include '' or provide a declaration of 'strlen' --- modify.o --- cc -pipe -Wno-error=return-type -I/usr/local/include -I/usr/local/include/ncurses -O2 -fno-strict-aliasing -D_HAVE_PARAM_H -c modify.c In file included from modify.c:10: vi.h:354:9: warning: type defaults to 'int' in declaration of 'ex' [-Wimplicit-int] extern ex(); ^~ vi.h:355:9: warning: type defaults to 'int' in declaration of 'vi' [-Wimplicit-int] extern vi(); ^~ vi.h:356:9: warning: type defaults to 'int' in declaration of 'doexcmd' [-Wimplicit-int] extern doexcmd(); ^~~~~~~ modify.c:14:1: warning: return type defaults to 'int' [-Wimplicit-int] delete(frommark, tomark) ^~~~~~ modify.c: In function 'delete': modify.c:28:3: warning: 'return' with no value, in function returning non-void return; ^~~~~~ modify.c:14:1: note: declared here delete(frommark, tomark) ^~~~~~ modify.c:38:3: warning: implicit declaration of function 'redrawrange' [-Wimplicit-function-declaration] redrawrange(markline(frommark), markline(tomark), markline(frommark)); ^~~~~~~~~~~ modify.c:144:3: warning: implicit declaration of function 'blkdirty'; did you mean 'blkget'? [-Wimplicit-function-declaration] blkdirty(blk); ^~~~~~~~ blkget modify.c: At top level: modify.c:159:1: warning: return type defaults to 'int' [-Wimplicit-int] add(atmark, newtext) ^~~ modify.c: In function 'add': modify.c:179:3: warning: 'return' with no value, in function returning non-void return; ^~~~~~ modify.c:159:1: note: declared here add(atmark, newtext) ^~~ modify.c:343:7: warning: implicit declaration of function 'strlen' [-Wimplicit-function-declaration] if (strlen(following->c) + (build - blk->c) < BLKSIZE - 1) ^~~~~~ modify.c:343:7: warning: incompatible implicit declaration of built-in function 'strlen' modify.c:343:7: note: include '' or provide a declaration of 'strlen' modify.c:11:1: +#include modify.c:343:7: if (strlen(following->c) + (build - blk->c) < BLKSIZE - 1) ^~~~~~ modify.c: At top level: modify.c:372:1: warning: return type defaults to 'int' [-Wimplicit-int] change(frommark, tomark, newtext) ^~~~~~ modify.c: In function 'change': modify.c:407:4: warning: 'return' with no value, in function returning non-void return; ^~~~~~ modify.c:372:1: note: declared here change(frommark, tomark, newtext) ^~~~~~ In file included from modify.c:10: vi.h:231:32: warning: implicit declaration of function 'beforedo'; did you mean 'refresh'? [-Wimplicit-function-declaration] #define ChangeText BeforeAfter(beforedo(FALSE),afterdo()) ^~~~~~~~ vi.h:230:41: note: in definition of macro 'BeforeAfter' #define BeforeAfter(before, after) for((before),bavar=1;bavar;(after),bavar=0) ^~~~~~ modify.c:413:4: note: in expansion of macro 'ChangeText' ChangeText ^~~~~~~~~~ vi.h:231:48: warning: implicit declaration of function 'afterdo'; did you mean 'ftello'? [-Wimplicit-function-declaration] #define ChangeText BeforeAfter(beforedo(FALSE),afterdo()) ^~~~~~~ vi.h:230:64: note: in definition of macro 'BeforeAfter' #define BeforeAfter(before, after) for((before),bavar=1;bavar;(after),bavar=0) ^~~~~ modify.c:413:4: note: in expansion of macro 'ChangeText' ChangeText ^~~~~~~~~~ modify.c:418:4: warning: 'return' with no value, in function returning non-void return; ^~~~~~ modify.c:372:1: note: declared here change(frommark, tomark, newtext) ^~~~~~ --- main.o --- In file included from main.c:16: vi.h:354:9: warning: type defaults to 'int' in declaration of 'ex' [-Wimplicit-int] extern ex(); ^~ vi.h:355:9: warning: type defaults to 'int' in declaration of 'vi' [-Wimplicit-int] extern vi(); ^~ vi.h:356:9: warning: type defaults to 'int' in declaration of 'doexcmd' [-Wimplicit-int] extern doexcmd(); ^~~~~~~ main.c:18:9: warning: type defaults to 'int' in declaration of 'trapint' [-Wimplicit-int] extern trapint(); /* defined below */ ^~~~~~~ main.c: In function 'HZ_abort': main.c:27:2: warning: implicit declaration of function 'suspend_curses' [-Wimplicit-function-declaration] suspend_curses(); ^~~~~~~~~~~~~~ main.c:28:2: warning: implicit declaration of function 'exit' [-Wimplicit-function-declaration] exit(i); ^~~~ main.c:28:2: warning: incompatible implicit declaration of built-in function 'exit' main.c:28:2: note: include '' or provide a declaration of 'exit' main.c:17:1: +#include main.c:28:2: exit(i); ^~~~ main.c: In function 'main': main.c:50:18: warning: implicit declaration of function 'strlen' [-Wimplicit-function-declaration] switch (argv[0][strlen(argv[0]) - 1]) ^~~~~~ main.c:50:18: warning: incompatible implicit declaration of built-in function 'strlen' main.c:50:18: note: include '' or provide a declaration of 'strlen' main.c:17:1: +#include main.c:50:18: switch (argv[0][strlen(argv[0]) - 1]) ^~~~~~ main.c:82:2: warning: implicit declaration of function 'initscr'; did you mean 'insch'? [-Wimplicit-function-declaration] initscr(); ^~~~~~~ insch main.c:104:2: warning: implicit declaration of function 'initopts'; did you mean 'nitems'? [-Wimplicit-function-declaration] initopts(); ^~~~~~~~ nitems main.c:110:14: warning: implicit declaration of function 'mapkey' [-Wimplicit-function-declaration] if (has_KU) mapkey(has_KU, "k", WHEN_VICMD|WHEN_INMV, ""); ^~~~~~ main.c:143:4: warning: implicit declaration of function 'msg' [-Wimplicit-function-declaration] msg("Use the `virec` command to recover lost files\n"); ^~~ In file included from vi.h:51, from main.c:16: config.h:127:29: warning: implicit declaration of function 'write'; did you mean 'fwrite'? [-Wimplicit-function-declaration] # define ttywrite(buf, len) write(1, buf, len) /* raw write */ ^~~~~ curses.h:115:24: note: in definition of macro 'VOIDBIOS' #define VOIDBIOS(x,y) {y;} ^ curses.h:206:38: note: in expansion of macro 'VOIDBIOS' #define wrefresh(w) if ((w) != kbuf) VOIDBIOS((w) = kbuf, {ttywrite(kbuf, (int)((w) - kbuf)); (w) = kbuf;}) else ^~~~~~~~ curses.h:206:60: note: in expansion of macro 'ttywrite' #define wrefresh(w) if ((w) != kbuf) VOIDBIOS((w) = kbuf, {ttywrite(kbuf, (int)((w) - kbuf)); (w) = kbuf;}) else ^~~~~~~~ curses.h:205:31: note: in expansion of macro 'wrefresh' #define refresh() VOIDBIOS(0, wrefresh(stdscr)) ^~~~~~~~ main.c:144:4: note: in expansion of macro 'refresh' refresh(); ^~~~~~~ main.c:145:4: warning: implicit declaration of function 'endwin'; did you mean 'stdin'? [-Wimplicit-function-declaration] endwin(); ^~~~~~ stdin main.c:146:4: warning: incompatible implicit declaration of built-in function 'exit' exit(0); ^~~~ main.c:146:4: note: include '' or provide a declaration of 'exit' main.c:199:3: warning: implicit declaration of function 'strcpy' [-Wimplicit-function-declaration] strcpy(args, argv[i]); ^~~~~~ main.c:199:3: warning: incompatible implicit declaration of built-in function 'strcpy' main.c:199:3: note: include '' or provide a declaration of 'strcpy' main.c:200:24: warning: incompatible implicit declaration of built-in function 'strlen' while (++i < argc && strlen(args) + 1 + strlen(argv[i]) < sizeof args) ^~~~~~ main.c:200:24: note: include '' or provide a declaration of 'strlen' main.c:202:4: warning: implicit declaration of function 'strcat' [-Wimplicit-function-declaration] strcat(args, " "); ^~~~~~ main.c:202:4: warning: incompatible implicit declaration of built-in function 'strcat' main.c:202:4: note: include '' or provide a declaration of 'strcat' main.c:249:3: warning: implicit declaration of function 'doexrc'; did you mean 'doexcmd'? [-Wimplicit-function-declaration] doexrc(tmpblk.c); ^~~~~~ doexcmd main.c:262:2: warning: implicit declaration of function 'blkinit'; did you mean 'blkget'? [-Wimplicit-function-declaration] blkinit(); ^~~~~~~ blkget main.c:269:19: warning: implicit declaration of function 'tmpstart'; did you mean 'tmpnam'? [-Wimplicit-function-declaration] if (tmpfd < 0 && tmpstart(firstarg) == 0 && *origname) ^~~~~~~~ tmpnam In file included from main.c:16: vi.h:231:32: warning: implicit declaration of function 'beforedo'; did you mean 'refresh'? [-Wimplicit-function-declaration] #define ChangeText BeforeAfter(beforedo(FALSE),afterdo()) ^~~~~~~~ vi.h:230:41: note: in definition of macro 'BeforeAfter' #define BeforeAfter(before, after) for((before),bavar=1;bavar;(after),bavar=0) ^~~~~~ main.c:271:3: note: in expansion of macro 'ChangeText' ChangeText ^~~~~~~~~~ vi.h:231:48: warning: implicit declaration of function 'afterdo'; did you mean 'ftello'? [-Wimplicit-function-declaration] #define ChangeText BeforeAfter(beforedo(FALSE),afterdo()) ^~~~~~~ vi.h:230:64: note: in definition of macro 'BeforeAfter' #define BeforeAfter(before, after) for((before),bavar=1;bavar;(after),bavar=0) ^~~~~ main.c:271:3: note: in expansion of macro 'ChangeText' ChangeText ^~~~~~~~~~ main.c:291:4: warning: implicit declaration of function 'abortdo' [-Wimplicit-function-declaration] abortdo(); ^~~~~~~ main.c:296:18: warning: passing argument 2 of 'signal' from incompatible pointer type [-Wincompatible-pointer-types] signal(SIGINT, trapint); ^~~~~~~ In file included from /usr/include/sys/select.h:39, from /usr/include/sys/param.h:234, from config.h:10, from main.c:13: /usr/include/sys/signal.h:399:17: note: expected 'void (*)(int)' but argument is of type 'int (*)()' __sighandler_t *signal (int, __sighandler_t *); ^~~~~~ main.c:317:2: warning: implicit declaration of function 'cutend'; did you mean 'getenv'? [-Wimplicit-function-declaration] cutend(); ^~~~~~ getenv main.c:327:2: warning: incompatible implicit declaration of built-in function 'exit' exit(0); ^~~~ main.c:327:2: note: include '' or provide a declaration of 'exit' main.c: At top level: main.c:333:1: warning: return type defaults to 'int' [-Wimplicit-int] trapint(signo) ^~~~~~~ main.c: In function 'trapint': main.c:336:2: warning: implicit declaration of function 'resume_curses' [-Wimplicit-function-declaration] resume_curses(FALSE); ^~~~~~~~~~~~~ --- move1.o --- cc -pipe -Wno-error=return-type -I/usr/local/include -I/usr/local/include/ncurses -O2 -fno-strict-aliasing -D_HAVE_PARAM_H -c move1.c In file included from move1.c:15: vi.h:354:9: warning: type defaults to 'int' in declaration of 'ex' [-Wimplicit-int] extern ex(); ^~ vi.h:355:9: warning: type defaults to 'int' in declaration of 'vi' [-Wimplicit-int] extern vi(); ^~ vi.h:356:9: warning: type defaults to 'int' in declaration of 'doexcmd' [-Wimplicit-int] extern doexcmd(); ^~~~~~~ move1.c: In function 'm_right': move1.c:89:8: warning: implicit declaration of function 'FindNBytesOfP2CharFromMarkP1' [-Wimplicit-function-declaration] cnt = FindNBytesOfP2CharFromMarkP1(m, cnt); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ move1.c: In function 'm_left': move1.c:114:8: warning: implicit declaration of function 'FindNBytesOfP2CharBackFromMarkP1' [-Wimplicit-function-declaration] cnt = FindNBytesOfP2CharBackFromMarkP1(m, cnt); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ move1.c: In function 'm_toline': move1.c:141:3: warning: implicit declaration of function 'msg' [-Wimplicit-function-declaration] msg("Line numbers range from 1 to %ld", nlines); ^~~ --- move2.o --- cc -pipe -Wno-error=return-type -I/usr/local/include -I/usr/local/include/ncurses -O2 -fno-strict-aliasing -D_HAVE_PARAM_H -c move2.c In file included from move2.c:14: vi.h:354:9: warning: type defaults to 'int' in declaration of 'ex' [-Wimplicit-int] extern ex(); ^~ vi.h:355:9: warning: type defaults to 'int' in declaration of 'vi' [-Wimplicit-int] extern vi(); ^~ vi.h:356:9: warning: type defaults to 'int' in declaration of 'doexcmd' [-Wimplicit-int] extern doexcmd(); ^~~~~~~ move2.c:18:9: warning: type defaults to 'int' in declaration of 'prevsf' [-Wimplicit-int] static prevsf; /* boolean: previous search direction was forward? */ ^~~~~~ move2.c: In function 'm_fsrch': move2.c:67:11: warning: implicit declaration of function 'free' [-Wimplicit-function-declaration] if (re) free(re); ^~~~ move2.c:67:11: warning: incompatible implicit declaration of built-in function 'free' move2.c:67:11: note: include '' or provide a declaration of 'free' move2.c:16:1: +#include move2.c:67:11: if (re) free(re); ^~~~ move2.c:78:3: warning: implicit declaration of function 'msg' [-Wimplicit-function-declaration] msg("No previous expression"); ^~~ move2.c:123:8: warning: implicit declaration of function 'IsIdxHZ' [-Wimplicit-function-declaration] if (IsIdxHZ (pos, line) < 0) ^~~~~~~ move2.c: In function 'm_bsrch': move2.c:159:11: warning: incompatible implicit declaration of built-in function 'free' if (re) free(re); ^~~~ move2.c:159:11: note: include '' or provide a declaration of 'free' --- move3.o --- cc -pipe -Wno-error=return-type -I/usr/local/include -I/usr/local/include/ncurses -O2 -fno-strict-aliasing -D_HAVE_PARAM_H -c move3.c In file included from move3.c:14: vi.h:354:9: warning: type defaults to 'int' in declaration of 'ex' [-Wimplicit-int] extern ex(); ^~ vi.h:355:9: warning: type defaults to 'int' in declaration of 'vi' [-Wimplicit-int] extern vi(); ^~ vi.h:356:9: warning: type defaults to 'int' in declaration of 'doexcmd' [-Wimplicit-int] extern doexcmd(); ^~~~~~~ move3.c: In function 'm__ch': move3.c:32:3: warning: implicit declaration of function 'msg' [-Wimplicit-function-declaration] msg("No previous f, F, t, or T command"); ^~~ move3.c: In function 'm_fch': move3.c:72:22: warning: implicit declaration of function 'getkey'; did you mean 'getw'? [-Wimplicit-function-declaration] prev_key2 = key2 = getkey(0); ^~~~~~ getw move3.c:85:8: warning: implicit declaration of function 'IsIdxHZ' [-Wimplicit-function-declaration] IsIdxHZ(markidx(m), ptext) < 0) ); ^~~~~~~ --- move4.o --- cc -pipe -Wno-error=return-type -I/usr/local/include -I/usr/local/include/ncurses -O2 -fno-strict-aliasing -D_HAVE_PARAM_H -c move4.c --- move5.o --- cc -pipe -Wno-error=return-type -I/usr/local/include -I/usr/local/include/ncurses -O2 -fno-strict-aliasing -D_HAVE_PARAM_H -c move5.c --- opts.o --- --- move5.o --- In file included from move5.c:15: vi.h:354:9: warning: type defaults to 'int' in declaration of 'ex' [-Wimplicit-int] extern ex(); ^~ vi.h:355:9: warning: type defaults to 'int' in declaration of 'vi' [-Wimplicit-int] extern vi(); ^~ vi.h:356:9: warning: type defaults to 'int' in declaration of 'doexcmd' [-Wimplicit-int] extern doexcmd(); ^~~~~~~ --- opts.o --- cc -pipe -Wno-error=return-type -I/usr/local/include -I/usr/local/include/ncurses -O2 -fno-strict-aliasing -D_HAVE_PARAM_H -c opts.c --- move4.o --- In file included from move4.c:14: vi.h:354:9: warning: type defaults to 'int' in declaration of 'ex' [-Wimplicit-int] extern ex(); ^~ vi.h:355:9: warning: type defaults to 'int' in declaration of 'vi' [-Wimplicit-int] extern vi(); ^~ vi.h:356:9: warning: type defaults to 'int' in declaration of 'doexcmd' [-Wimplicit-int] extern doexcmd(); ^~~~~~~ move4.c: In function 'm_z': move4.c:74:9: warning: implicit declaration of function 'getkey'; did you mean 'getw'? [-Wimplicit-function-declaration] key = getkey(0); ^~~~~~ getw move4.c: In function 'm_scroll': move4.c:171:3: warning: implicit declaration of function 'redraw'; did you mean 'v_redraw'? [-Wimplicit-function-declaration] redraw(tmp, FALSE); ^~~~~~ v_redraw --- move5.o --- move5.c: In function 'm_bword': move5.c:21:29: warning: implicit declaration of function 'IsIdxHZ' [-Wimplicit-function-declaration] # define At2ndHZbyte(text) (IsIdxHZ((int)((text)-ptext),ptext) < 0) ^~~~~~~ move5.c:132:7: note: in expansion of macro 'At2ndHZbyte' if (At2ndHZbyte (text)) ^~~~~~~~~~~ --- recycle.o --- cc -pipe -Wno-error=return-type -I/usr/local/include -I/usr/local/include/ncurses -O2 -fno-strict-aliasing -D_HAVE_PARAM_H -c recycle.c --- opts.o --- In file included from opts.c:16: vi.h:354:9: warning: type defaults to 'int' in declaration of 'ex' [-Wimplicit-int] extern ex(); ^~ vi.h:355:9: warning: type defaults to 'int' in declaration of 'vi' [-Wimplicit-int] extern vi(); ^~ vi.h:356:9: warning: type defaults to 'int' in declaration of 'doexcmd' [-Wimplicit-int] extern doexcmd(); ^~~~~~~ --- recycle.o --- In file included from recycle.c:16: vi.h:354:9: warning: type defaults to 'int' in declaration of 'ex' [-Wimplicit-int] extern ex(); ^~ vi.h:355:9: warning: type defaults to 'int' in declaration of 'vi' [-Wimplicit-int] extern vi(); ^~ vi.h:356:9: warning: type defaults to 'int' in declaration of 'doexcmd' [-Wimplicit-int] extern doexcmd(); ^~~~~~~ recycle.c:38:1: warning: return type defaults to 'int' [-Wimplicit-int] garbage() ^~~~~~~ recycle.c: In function 'garbage': recycle.c:59:2: warning: implicit declaration of function 'lseek'; did you mean 'fseek'? [-Wimplicit-function-declaration] lseek(tmpfd, 0L, 0); ^~~~~ fseek recycle.c:60:6: warning: implicit declaration of function 'read'; did you mean 'fread'? [-Wimplicit-function-declaration] if (read(tmpfd, &oldhdr, sizeof oldhdr) != sizeof oldhdr) ^~~~ fread recycle.c:62:3: warning: implicit declaration of function 'msg' [-Wimplicit-function-declaration] msg("garbage() failed to read oldhdr??"); ^~~ recycle.c:67:3: warning: 'return' with no value, in function returning non-void return; ^~~~~~ recycle.c:38:1: note: declared here garbage() ^~~~~~~ recycle.c:75:11: warning: implicit declaration of function 'cutneeds'; did you mean 'utimes'? [-Wimplicit-function-declaration] for (i = cutneeds(&oldhdr) - 1; i >= 0; i--) ^~~~~~~~ utimes --- opts.o --- opts.c:147:1: warning: return type defaults to 'int' [-Wimplicit-int] initopts() ^~~~~~~~ opts.c: In function 'initopts': opts.c:156:3: warning: implicit declaration of function 'strcpy' [-Wimplicit-function-declaration] strcpy(o_shell, val); ^~~~~~ opts.c:156:3: warning: incompatible implicit declaration of built-in function 'strcpy' opts.c:156:3: note: include '' or provide a declaration of 'strcpy' opts.c:17:1: +#include #ifndef NULL opts.c:156:3: strcpy(o_shell, val); ^~~~~~ opts.c:160:3: warning: incompatible implicit declaration of built-in function 'strcpy' strcpy(o_term, val); ^~~~~~ opts.c:160:3: note: include '' or provide a declaration of 'strcpy' opts.c: At top level: opts.c:200:1: warning: return type defaults to 'int' [-Wimplicit-int] dumpopts(all) ^~~~~~~~ opts.c: In function 'dumpopts': opts.c:248:11: warning: implicit declaration of function 'strlen' [-Wimplicit-function-declaration] col += strlen(opts[i].name); ^~~~~~ opts.c:248:11: warning: incompatible implicit declaration of built-in function 'strlen' opts.c:248:11: note: include '' or provide a declaration of 'strlen' opts.c:268:3: warning: implicit declaration of function 'exrefresh'; did you mean 'wrefresh'? [-Wimplicit-function-declaration] exrefresh(); ^~~~~~~~~ wrefresh opts.c: At top level: opts.c:278:1: warning: return type defaults to 'int' [-Wimplicit-int] saveopts(fd) ^~~~~~~~ opts.c: In function 'saveopts': opts.c:293:3: warning: incompatible implicit declaration of built-in function 'strcpy' strcpy(buf, "set "); ^~~~~~ opts.c:293:3: note: include '' or provide a declaration of 'strcpy' opts.c:304:4: warning: implicit declaration of function 'strcat' [-Wimplicit-function-declaration] strcat(pos, "\n"); ^~~~~~ opts.c:304:4: warning: incompatible implicit declaration of built-in function 'strcat' opts.c:304:4: note: include '' or provide a declaration of 'strcat' In file included from opts.c:15: config.h:146:17: warning: implicit declaration of function 'write'; did you mean 'fwrite'? [-Wimplicit-function-declaration] #define twrite write ^~~~~ opts.c:315:3: note: in expansion of macro 'twrite' twrite(fd, buf, strlen(buf)); ^~~~~~ opts.c:315:19: warning: incompatible implicit declaration of built-in function 'strlen' twrite(fd, buf, strlen(buf)); ^~~~~~ opts.c:315:19: note: include '' or provide a declaration of 'strlen' opts.c: At top level: opts.c:321:1: warning: return type defaults to 'int' [-Wimplicit-int] setopts(assignments) ^~~~~~~ opts.c: In function 'setopts': opts.c:386:24: warning: implicit declaration of function 'strcmp' [-Wimplicit-function-declaration] opts[i].name && strcmp(opts[i].name, name) && strcmp(opts[i].nm, name); ^~~~~~ opts.c:394:4: warning: implicit declaration of function 'msg' [-Wimplicit-function-declaration] msg("invalid option name \"%s\"", name); ^~~ opts.c:413:9: warning: implicit declaration of function 'atoi'; did you mean 'ptoa'? [-Wimplicit-function-declaration] j = atoi(value); ^~~~ ptoa opts.c:431:5: warning: incompatible implicit declaration of built-in function 'strcpy' strcpy(opts[i].value, value); ^~~~~~ opts.c:431:5: note: include '' or provide a declaration of 'strcpy' --- redraw.o --- cc -pipe -Wno-error=return-type -I/usr/local/include -I/usr/local/include/ncurses -O2 -fno-strict-aliasing -D_HAVE_PARAM_H -c redraw.c In file included from redraw.c:21: vi.h:354:9: warning: type defaults to 'int' in declaration of 'ex' [-Wimplicit-int] extern ex(); ^~ vi.h:355:9: warning: type defaults to 'int' in declaration of 'vi' [-Wimplicit-int] extern vi(); ^~ vi.h:356:9: warning: type defaults to 'int' in declaration of 'doexcmd' [-Wimplicit-int] extern doexcmd(); ^~~~~~~ redraw.c:29:1: warning: return type defaults to 'int' [-Wimplicit-int] redrawrange(after, pre, post) ^~~~~~~~~~~ redraw.c:50:1: warning: return type defaults to 'int' [-Wimplicit-int] redraw(curs, inputting) ^~~~~~ redraw.c: In function 'redraw': redraw.c:78:3: warning: 'return' with no value, in function returning non-void return; ^~~~~~ redraw.c:50:1: note: declared here redraw(curs, inputting) ^~~~~~ redraw.c:84:2: warning: implicit declaration of function 'mark2phys' [-Wimplicit-function-declaration] mark2phys(curs, text, inputting); ^~~~~~~~~ redraw.c:94:4: warning: implicit declaration of function 'smartdrawtext' [-Wimplicit-function-declaration] smartdrawtext(text, l); ^~~~~~~~~~~~~ redraw.c:115:5: warning: implicit declaration of function 'drawtext' [-Wimplicit-function-declaration] drawtext(text); ^~~~~~~~ In file included from vi.h:51, from redraw.c:21: config.h:127:29: warning: implicit declaration of function 'write'; did you mean 'fwrite'? [-Wimplicit-function-declaration] # define ttywrite(buf, len) write(1, buf, len) /* raw write */ ^~~~~ curses.h:115:24: note: in definition of macro 'VOIDBIOS' #define VOIDBIOS(x,y) {y;} ^ curses.h:207:67: note: in expansion of macro 'ttywrite' #define wqrefresh(w) if ((w) - kbuf > 2000) VOIDBIOS((w) = kbuf, {ttywrite(kbuf, (int)((w) - kbuf)); (w) = kbuf;}) else ^~~~~~~~ redraw.c:336:2: note: in expansion of macro 'wqrefresh' wqrefresh(stdscr); ^~~~~~~~~ redraw.c: In function 'idx2col': redraw.c:367:7: warning: implicit declaration of function 'hasattr' [-Wimplicit-function-declaration] && !hasattr(markline(curs), text) ^~~~~~~ redraw.c: At top level: redraw.c:452:1: warning: return type defaults to 'int' [-Wimplicit-int] mark2phys(m, text, inputting) ^~~~~~~~~ redraw.c:486:1: warning: return type defaults to 'int' [-Wimplicit-int] drawtext(text) ^~~~~~~~ redraw.c: In function 'drawtext': redraw.c:501:3: warning: 'return' with no value, in function returning non-void return; ^~~~~~ redraw.c:486:1: note: declared here drawtext(text) ^~~~~~~~ redraw.c: At top level: redraw.c:691:8: warning: return type defaults to 'int' [-Wimplicit-int] static nudgecursor(same, scan, new, lno) ^~~~~~~~~~~ redraw.c:720:1: warning: return type defaults to 'int' [-Wimplicit-int] smartdrawtext(text, lno) ^~~~~~~~~~~~~ redraw.c: In function 'smartdrawtext': redraw.c:742:3: warning: 'return' with no value, in function returning non-void return; ^~~~~~ redraw.c:720:1: note: declared here smartdrawtext(text, lno) ^~~~~~~~~~~~~ redraw.c:754:3: warning: 'return' with no value, in function returning non-void return; ^~~~~~ redraw.c:720:1: note: declared here smartdrawtext(text, lno) ^~~~~~~~~~~~~ redraw.c:852:3: warning: 'return' with no value, in function returning non-void return; ^~~~~~ redraw.c:720:1: note: declared here smartdrawtext(text, lno) ^~~~~~~~~~~~~ --- regexp.o --- cc -pipe -Wno-error=return-type -I/usr/local/include -I/usr/local/include/ncurses -O2 -fno-strict-aliasing -D_HAVE_PARAM_H -c regexp.c In file included from regexp.c:34: vi.h:354:9: warning: type defaults to 'int' in declaration of 'ex' [-Wimplicit-int] extern ex(); ^~ vi.h:355:9: warning: type defaults to 'int' in declaration of 'vi' [-Wimplicit-int] extern vi(); ^~ vi.h:356:9: warning: type defaults to 'int' in declaration of 'doexcmd' [-Wimplicit-int] extern doexcmd(); ^~~~~~~ regexp.c: In function 'regcomp': regexp.c:286:31: warning: implicit declaration of function 'strlen' [-Wimplicit-function-declaration] if (OP(scan) == EXACTLY && strlen(OPERAND(scan)) >= len) { ^~~~~~ regexp.c:286:31: warning: incompatible implicit declaration of built-in function 'strlen' regexp.c:286:31: note: include '' or provide a declaration of 'strlen' regexp.c:36:1: +#include #ifndef NULL regexp.c:286:31: if (OP(scan) == EXACTLY && strlen(OPERAND(scan)) >= len) { ^~~~~~ regexp.c: In function 'regmatch': regexp.c:951:10: warning: incompatible implicit declaration of built-in function 'strlen' len = strlen(opnd); ^~~~~~ regexp.c:951:10: note: include '' or provide a declaration of 'strlen' In file included from regexp.c:33: regexp.c: In function 'regrepeat': config.h:135:17: warning: implicit declaration of function 'index' [-Wimplicit-function-declaration] # define strchr index ^~~~~ regexp.c:1123:35: note: in expansion of macro 'strchr' while (*scan && *scan != '\n' && strchr(opnd, *scan) != NULL) { ^~~~~~ config.h:135:17: note: previous declaration of 'index' was here # define strchr index ^~~~~ regexp.c:905:16: note: in expansion of macro 'strchr' extern char *strchr(); ^~~~~~ config.h:135:17: warning: incompatible implicit declaration of built-in function 'index' # define strchr index ^~~~~ regexp.c:1123:35: note: in expansion of macro 'strchr' while (*scan && *scan != '\n' && strchr(opnd, *scan) != NULL) { ^~~~~~ config.h:135:17: warning: incompatible implicit declaration of built-in function 'index' # define strchr index ^~~~~ regexp.c:1129:35: note: in expansion of macro 'strchr' while (*scan && *scan != '\n' && strchr(opnd, *scan) == NULL) { ^~~~~~ --- regsub.o --- cc -pipe -Wno-error=return-type -I/usr/local/include -I/usr/local/include/ncurses -O2 -fno-strict-aliasing -D_HAVE_PARAM_H -c regsub.c --- system.o --- cc -pipe -Wno-error=return-type -I/usr/local/include -I/usr/local/include/ncurses -O2 -fno-strict-aliasing -D_HAVE_PARAM_H -c system.c --- tio.o --- cc -pipe -Wno-error=return-type -I/usr/local/include -I/usr/local/include/ncurses -O2 -fno-strict-aliasing -D_HAVE_PARAM_H -c tio.c --- system.o --- In file included from system.c:24: vi.h:354:9: warning: type defaults to 'int' in declaration of 'ex' [-Wimplicit-int] extern ex(); ^~ vi.h:355:9: warning: type defaults to 'int' in declaration of 'vi' [-Wimplicit-int] extern vi(); ^~ vi.h:356:9: warning: type defaults to 'int' in declaration of 'doexcmd' [-Wimplicit-int] extern doexcmd(); ^~~~~~~ system.c: In function 'system': system.c:41:3: warning: implicit declaration of function 'msg' [-Wimplicit-function-declaration] msg("Warning: \"%s\" has been modified but not yet saved", origname); ^~~ system.c:44:10: warning: implicit declaration of function 'fork' [-Wimplicit-function-declaration] switch (fork()) ^~~~ system.c:51:3: warning: implicit declaration of function 'execle' [-Wimplicit-function-declaration] execle(o_shell, o_shell, "-c", cmd, (char *)0, environ); ^~~~~~ system.c:51:3: warning: incompatible implicit declaration of built-in function 'execle' system.c:52:3: warning: implicit declaration of function 'HZ_abort' [-Wimplicit-function-declaration] HZ_abort(1); /* if we get here, the exec failed */ ^~~~~~~~ system.c:56:3: warning: implicit declaration of function 'wait'; did you mean 'sigwait'? [-Wimplicit-function-declaration] wait(&status); ^~~~ sigwait system.c:57:18: warning: passing argument 2 of 'signal' from incompatible pointer type [-Wincompatible-pointer-types] signal(SIGINT, trapint); ^~~~~~~ In file included from /usr/include/sys/select.h:39, from /usr/include/sys/param.h:234, from config.h:10, from system.c:23: /usr/include/sys/signal.h:399:17: note: expected 'void (*)(int)' but argument is of type 'int (*)()' __sighandler_t *signal (int, __sighandler_t *); ^~~~~~ system.c: In function 'rpipe': system.c:73:6: warning: implicit declaration of function 'pipe'; did you mean 'rpipe'? [-Wimplicit-function-declaration] if (pipe(r0w1) < 0) ^~~~ rpipe system.c:85:3: warning: implicit declaration of function 'close'; did you mean 'pclose'? [-Wimplicit-function-declaration] close(r0w1[0]); ^~~~~ pclose system.c:89:3: warning: implicit declaration of function 'dup'; did you mean 'm_up'? [-Wimplicit-function-declaration] dup(r0w1[1]); ^~~ m_up system.c:103:3: warning: incompatible implicit declaration of built-in function 'execle' execle(o_shell, o_shell, "-c", cmd, (char *)0, environ); ^~~~~~ system.c: In function 'rpclose': system.c:124:17: warning: passing argument 2 of 'signal' from incompatible pointer type [-Wincompatible-pointer-types] signal(SIGINT, trapint); ^~~~~~~ In file included from /usr/include/sys/select.h:39, from /usr/include/sys/param.h:234, from config.h:10, from system.c:23: /usr/include/sys/signal.h:399:17: note: expected 'void (*)(int)' but argument is of type 'int (*)()' __sighandler_t *signal (int, __sighandler_t *); ^~~~~~ system.c: In function 'wildcard': system.c:160:3: warning: implicit declaration of function 'strcpy' [-Wimplicit-function-declaration] strcpy(tmpblk.c, PROG); ^~~~~~ system.c:160:3: warning: incompatible implicit declaration of built-in function 'strcpy' system.c:160:3: note: include '' or provide a declaration of 'strcpy' system.c:26:1: +#include extern char **environ; system.c:160:3: strcpy(tmpblk.c, PROG); ^~~~~~ system.c:161:3: warning: implicit declaration of function 'strcat' [-Wimplicit-function-declaration] strcat(tmpblk.c, names); ^~~~~~ system.c:161:3: warning: incompatible implicit declaration of built-in function 'strcat' system.c:161:3: note: include '' or provide a declaration of 'strcat' system.c:170:20: warning: implicit declaration of function 'strlen' [-Wimplicit-function-declaration] for (s = names + strlen(names) + 1, d = s + PROGLEN; s > names; ) ^~~~~~ system.c:170:20: warning: incompatible implicit declaration of built-in function 'strlen' system.c:170:20: note: include '' or provide a declaration of 'strlen' system.c:174:3: warning: implicit declaration of function 'strncpy' [-Wimplicit-function-declaration] strncpy(names, PROG, PROGLEN); ^~~~~~~ system.c:174:3: warning: incompatible implicit declaration of built-in function 'strncpy' system.c:174:3: note: include '' or provide a declaration of 'strncpy' In file included from system.c:23: config.h:145:15: warning: implicit declaration of function 'read'; did you mean 'fread'? [-Wimplicit-function-declaration] #define tread read ^~~~ system.c:183:7: note: in expansion of macro 'tread' j = tread(fd, tmpblk.c + i, BLKSIZE - i); ^~~~~ --- tio.o --- In file included from tio.c:15: vi.h:354:9: warning: type defaults to 'int' in declaration of 'ex' [-Wimplicit-int] extern ex(); ^~ vi.h:355:9: warning: type defaults to 'int' in declaration of 'vi' [-Wimplicit-int] extern vi(); ^~ vi.h:356:9: warning: type defaults to 'int' in declaration of 'doexcmd' [-Wimplicit-int] extern doexcmd(); ^~~~~~~ --- system.o --- system.c: In function 'filter': system.c:225:3: warning: implicit declaration of function 'mktemp'; did you mean 'mktime'? [-Wimplicit-function-declaration] mktemp(scrout); ^~~~~~ mktime system.c:232:4: warning: implicit declaration of function 'unlink'; did you mean 'unix'? [-Wimplicit-function-declaration] unlink(scrout); ^~~~~~ unix --- tio.o --- In file included from vi.h:51, from tio.c:15: tio.c: In function 'vgets': config.h:127:29: warning: implicit declaration of function 'write'; did you mean 'fwrite'? [-Wimplicit-function-declaration] # define ttywrite(buf, len) write(1, buf, len) /* raw write */ ^~~~~ curses.h:115:24: note: in definition of macro 'VOIDBIOS' #define VOIDBIOS(x,y) {y;} ^ curses.h:206:38: note: in expansion of macro 'VOIDBIOS' #define wrefresh(w) if ((w) != kbuf) VOIDBIOS((w) = kbuf, {ttywrite(kbuf, (int)((w) - kbuf)); (w) = kbuf;}) else ^~~~~~~~ curses.h:206:60: note: in expansion of macro 'ttywrite' #define wrefresh(w) if ((w) != kbuf) VOIDBIOS((w) = kbuf, {ttywrite(kbuf, (int)((w) - kbuf)); (w) = kbuf;}) else ^~~~~~~~ curses.h:205:31: note: in expansion of macro 'wrefresh' #define refresh() VOIDBIOS(0, wrefresh(stdscr)) ^~~~~~~~ tio.c:39:2: note: in expansion of macro 'refresh' refresh(); ^~~~~~~ --- system.o --- In file included from system.c:24: vi.h:231:32: warning: implicit declaration of function 'beforedo'; did you mean 'refresh'? [-Wimplicit-function-declaration] #define ChangeText BeforeAfter(beforedo(FALSE),afterdo()) ^~~~~~~~ vi.h:230:41: note: in definition of macro 'BeforeAfter' #define BeforeAfter(before, after) for((before),bavar=1;bavar;(after),bavar=0) ^~~~~~ system.c:253:2: note: in expansion of macro 'ChangeText' ChangeText ^~~~~~~~~~ --- tio.o --- tio.c:45:8: warning: implicit declaration of function 'getkey'; did you mean 'getw'? [-Wimplicit-function-declaration] ch = getkey(quoted ? 0 : WHEN_EX); ^~~~~~ getw --- system.o --- vi.h:231:48: warning: implicit declaration of function 'afterdo'; did you mean 'ftello'? [-Wimplicit-function-declaration] #define ChangeText BeforeAfter(beforedo(FALSE),afterdo()) ^~~~~~~ vi.h:230:64: note: in definition of macro 'BeforeAfter' #define BeforeAfter(before, after) for((before),bavar=1;bavar;(after),bavar=0) ^~~~~ system.c:253:2: note: in expansion of macro 'ChangeText' ChangeText ^~~~~~~~~~ system.c:261:4: warning: implicit declaration of function 'delete'; did you mean 'v_delete'? [-Wimplicit-function-declaration] delete(from, to); ^~~~~~ v_delete --- tio.o --- tio.c:87:9: warning: implicit declaration of function 'IsIdxHZ' [-Wimplicit-function-declaration] if (IsIdxHZ(len, buf) < 0) ^~~~~~~ --- system.o --- system.c:268:4: warning: implicit declaration of function 'add'; did you mean 'addch'? [-Wimplicit-function-declaration] add(from, tmpblk.c); ^~~ addch --- tio.o --- tio.c:143:7: warning: implicit declaration of function 'beep' [-Wimplicit-function-declaration] beep (); ^~~~ tio.c: At top level: tio.c:179:1: warning: return type defaults to 'int' [-Wimplicit-int] beep() ^~~~ tio.c:192:8: warning: type defaults to 'int' in declaration of 'manymsgs' [-Wimplicit-int] static manymsgs; /* This variable keeps msgs from overwriting each other */ ^~~~~~~~ tio.c:203:1: warning: return type defaults to 'int' [-Wimplicit-int] msg(fmt, arg1, arg2, arg3, arg4, arg5, arg6, arg7) ^~~ --- tmp.o --- --- tio.o --- tio.c: In function 'msg': tio.c:215:3: warning: implicit declaration of function 'exrefresh'; did you mean 'wrefresh'? [-Wimplicit-function-declaration] exrefresh(); ^~~~~~~~~ wrefresh --- tmp.o --- cc -pipe -Wno-error=return-type -I/usr/local/include -I/usr/local/include/ncurses -O2 -fno-strict-aliasing -D_HAVE_PARAM_H -c tmp.c --- tio.o --- tio.c:229:4: warning: 'return' with no value, in function returning non-void return; ^~~~~~ tio.c:203:1: note: declared here msg(fmt, arg1, arg2, arg3, arg4, arg5, arg6, arg7) ^~~ tio.c:235:16: warning: 'return' with no value, in function returning non-void if (!*pmsg) return; ^~~~~~ tio.c:203:1: note: declared here msg(fmt, arg1, arg2, arg3, arg4, arg5, arg6, arg7) ^~~ tio.c:239:4: warning: 'return' with no value, in function returning non-void return; ^~~~~~ tio.c:203:1: note: declared here msg(fmt, arg1, arg2, arg3, arg4, arg5, arg6, arg7) ^~~ tio.c: At top level: tio.c:266:1: warning: return type defaults to 'int' [-Wimplicit-int] exrefresh() ^~~~~~~~~ tio.c:300:1: warning: return type defaults to 'int' [-Wimplicit-int] ungetkey(key) ^~~~~~~~ tio.c: In function 'getkey': tio.c:407:5: warning: implicit declaration of function 'redraw'; did you mean 'v_redraw'? [-Wimplicit-function-declaration] redraw(cursor, FALSE); ^~~~~~ v_redraw In file included from tio.c:13: config.h:124:28: warning: implicit declaration of function 'read'; did you mean 'fread'? [-Wimplicit-function-declaration] # define ttyread(buf, len) read(0, buf, len) /* raw read */ ^~~~ tio.c:444:19: note: in expansion of macro 'ttyread' while ((nkeys = ttyread(keybuf, sizeof keybuf)) <= 0) ^~~~~~~ tio.c:472:10: warning: implicit declaration of function 'strncmp' [-Wimplicit-function-declaration] if (!strncmp(km->rawin, kptr, nkeys - next)) ^~~~~~~ tio.c:492:19: warning: passing argument 2 of 'signal' from incompatible pointer type [-Wincompatible-pointer-types] signal(SIGALRM, dummy); ^~~~~ In file included from /usr/include/sys/select.h:39, from /usr/include/sys/param.h:234, from config.h:10, from tio.c:13: /usr/include/sys/signal.h:399:17: note: expected 'void (*)(int)' but argument is of type 'int (*)()' __sighandler_t *signal (int, __sighandler_t *); ^~~~~~ tio.c:494:3: warning: implicit declaration of function 'alarm' [-Wimplicit-function-declaration] alarm((unsigned)*o_keytime); ^~~~~ tio.c: At top level: tio.c:565:1: warning: return type defaults to 'int' [-Wimplicit-int] mapkey(rawin, cooked, when, name) ^~~~~~ tio.c: In function 'mapkey': tio.c:586:6: warning: implicit declaration of function 'strlen' [-Wimplicit-function-declaration] j = strlen(rawin); ^~~~~~ tio.c:586:6: warning: incompatible implicit declaration of built-in function 'strlen' tio.c:586:6: note: include '' or provide a declaration of 'strlen' tio.c:16:1: +#include tio.c:586:6: j = strlen(rawin); ^~~~~~ tio.c:609:3: warning: 'return' with no value, in function returning non-void return; ^~~~~~ tio.c:565:1: note: declared here mapkey(rawin, cooked, when, name) ^~~~~~ tio.c:617:3: warning: implicit declaration of function 'strncpy' [-Wimplicit-function-declaration] strncpy(mapped[i].rawin, rawin, j); ^~~~~~~ tio.c:617:3: warning: incompatible implicit declaration of built-in function 'strncpy' tio.c:617:3: note: include '' or provide a declaration of 'strncpy' tio.c:618:3: warning: implicit declaration of function 'strcpy' [-Wimplicit-function-declaration] strcpy(mapped[i].cooked, cooked); ^~~~~~ tio.c:618:3: warning: incompatible implicit declaration of built-in function 'strcpy' tio.c:618:3: note: include '' or provide a declaration of 'strcpy' tio.c: At top level: tio.c:631:1: warning: return type defaults to 'int' [-Wimplicit-int] dumpkey(when) ^~~~~~~ tio.c: In function 'dumpkey': tio.c:631:1: warning: type of 'when' defaults to 'int' [-Wimplicit-int] tio.c:650:11: warning: incompatible implicit declaration of built-in function 'strlen' len -= strlen(mapped[i].name); ^~~~~~ tio.c:650:11: note: include '' or provide a declaration of 'strlen' tio.c: At top level: tio.c:706:1: warning: return type defaults to 'int' [-Wimplicit-int] savekeys(fd) ^~~~~~~~ tio.c: In function 'savekeys': tio.c:734:20: warning: incompatible implicit declaration of built-in function 'strlen' twrite(fd, buf, strlen(buf)); ^~~~~~ tio.c:734:20: note: include '' or provide a declaration of 'strlen' tio.c:743:21: warning: incompatible implicit declaration of built-in function 'strlen' twrite(fd, buf, strlen(buf)); ^~~~~~ tio.c:743:21: note: include '' or provide a declaration of 'strlen' tio.c:750:21: warning: incompatible implicit declaration of built-in function 'strlen' twrite(fd, buf, strlen(buf)); ^~~~~~ tio.c:750:21: note: include '' or provide a declaration of 'strlen' --- tmp.o --- In file included from tmp.c:15: vi.h:354:9: warning: type defaults to 'int' in declaration of 'ex' [-Wimplicit-int] extern ex(); ^~ vi.h:355:9: warning: type defaults to 'int' in declaration of 'vi' [-Wimplicit-int] extern vi(); ^~ vi.h:356:9: warning: type defaults to 'int' in declaration of 'doexcmd' [-Wimplicit-int] extern doexcmd(); ^~~~~~~ tmp.c: In function 'tmpstart': tmp.c:50:2: warning: implicit declaration of function 'redraw'; did you mean 'v_redraw'? [-Wimplicit-function-declaration] redraw(MARK_UNSET, FALSE); ^~~~~~ v_redraw tmp.c:56:3: warning: implicit declaration of function 'strcpy' [-Wimplicit-function-declaration] strcpy(origname, filename); ^~~~~~ tmp.c:56:3: warning: incompatible implicit declaration of built-in function 'strcpy' tmp.c:56:3: note: include '' or provide a declaration of 'strcpy' tmp.c:20:1: +#include #endif tmp.c:56:3: strcpy(origname, filename); ^~~~~~ tmp.c:23:39: warning: implicit declaration of function 'msg' [-Wimplicit-function-declaration] #define FAIL(why,arg) mode = MODE_EX; msg(why, arg); endwin(); HZ_abort(9) ^~~ tmp.c:60:4: note: in expansion of macro 'FAIL' FAIL("Can't open \"%s\"", origname); ^~~~ tmp.c:23:54: warning: implicit declaration of function 'endwin'; did you mean 'stdin'? [-Wimplicit-function-declaration] #define FAIL(why,arg) mode = MODE_EX; msg(why, arg); endwin(); HZ_abort(9) ^~~~~~ tmp.c:60:4: note: in expansion of macro 'FAIL' FAIL("Can't open \"%s\"", origname); ^~~~ tmp.c:23:64: warning: implicit declaration of function 'HZ_abort' [-Wimplicit-function-declaration] #define FAIL(why,arg) mode = MODE_EX; msg(why, arg); endwin(); HZ_abort(9) ^~~~~~~~ tmp.c:60:4: note: in expansion of macro 'FAIL' FAIL("Can't open \"%s\"", origname); ^~~~ tmp.c:99:24: warning: implicit declaration of function 'geteuid'; did you mean 'getdelim'? [-Wimplicit-function-declaration] (statb.st_uid != geteuid() ? 0022 : 0200))) ^~~~~~~ getdelim tmp.c:132:13: warning: implicit declaration of function 'getpid'; did you mean 'getline'? [-Wimplicit-function-declaration] { int pid = getpid() ; ^~~~~~ getline tmp.c:139:6: warning: implicit declaration of function 'access' [-Wimplicit-function-declaration] if (access(tmpname, 0) == 0) ^~~~~~ tmp.c:146:2: warning: implicit declaration of function 'close'; did you mean 'pclose'? [-Wimplicit-function-declaration] close(creat(tmpname, 0600)); ^~~~~ pclose tmp.c:158:2: warning: implicit declaration of function 'write'; did you mean 'fwrite'? [-Wimplicit-function-declaration] write(tmpfd, hdr.c, BLKSIZE); ^~~~~ fwrite tmp.c:164:2: warning: implicit declaration of function 'garbage' [-Wimplicit-function-declaration] garbage(); ^~~~~~~ tmp.c:180:3: warning: incompatible implicit declaration of built-in function 'strcpy' strcpy(this->c, "\n"); /* put a line in it */ ^~~~~~ tmp.c:180:3: note: include '' or provide a declaration of 'strcpy' In file included from tmp.c:14: config.h:145:15: warning: implicit declaration of function 'read'; did you mean 'fread'? [-Wimplicit-function-declaration] #define tread read ^~~~ tmp.c:231:13: note: in expansion of macro 'tread' nread = tread(origfd, &this->c[inbuf], BLKSIZE - 1 - inbuf); ^~~~~ tmp.c:238:6: warning: implicit declaration of function 'unlink'; did you mean 'unix'? [-Wimplicit-function-declaration] unlink(tmpname); ^~~~~~ unix tmp.c:320:4: warning: incompatible implicit declaration of built-in function 'strcpy' strcpy(this->c, "\n"); /* put a line in it */ ^~~~~~ tmp.c:320:4: note: include '' or provide a declaration of 'strcpy' tmp.c: At top level: tmp.c:348:1: warning: return type defaults to 'int' [-Wimplicit-int] tmpsave(filename, bang) ^~~~~~~ tmp.c: In function 'tmpsave': tmp.c:398:7: warning: implicit declaration of function 'strcmp' [-Wimplicit-function-declaration] if (strcmp(filename, origname) && access(filename, 0) == 0 && !bang) ^~~~~~ tmp.c:429:6: warning: implicit declaration of function 'strncmp' [-Wimplicit-function-declaration] if (strncmp(filename, o_directory, strlen(o_directory))) ^~~~~~~ tmp.c:429:37: warning: implicit declaration of function 'strlen' [-Wimplicit-function-declaration] if (strncmp(filename, o_directory, strlen(o_directory))) ^~~~~~ tmp.c:429:37: warning: incompatible implicit declaration of built-in function 'strlen' tmp.c:429:37: note: include '' or provide a declaration of 'strlen' tmp.c: At top level: tmp.c:448:1: warning: return type defaults to 'int' [-Wimplicit-int] tmpabort(bang) ^~~~~~~~ tmp.c: In function 'tmpabort': tmp.c:462:11: warning: implicit declaration of function 'tmpend'; did you mean 'popen'? [-Wimplicit-function-declaration] return tmpend(bang); ^~~~~~ popen tmp.c:468:2: warning: implicit declaration of function 'cutswitch'; did you mean 'v_switch'? [-Wimplicit-function-declaration] cutswitch(tmpname); ^~~~~~~~~ v_switch tmp.c:472:2: warning: incompatible implicit declaration of built-in function 'strcpy' strcpy(prevorig, origname); ^~~~~~ tmp.c:472:2: note: include '' or provide a declaration of 'strcpy' tmp.c:476:2: warning: implicit declaration of function 'blkinit'; did you mean 'blkget'? [-Wimplicit-function-declaration] blkinit(); ^~~~~~~ blkget tmp.c: At top level: tmp.c:487:1: warning: return type defaults to 'int' [-Wimplicit-int] tmpend(bang) ^~~~~~ --- vars.o --- cc -pipe -Wno-error=return-type -I/usr/local/include -I/usr/local/include/ncurses -O2 -fno-strict-aliasing -D_HAVE_PARAM_H -c vars.c In file included from vars.c:14: vi.h:354:9: warning: type defaults to 'int' in declaration of 'ex' [-Wimplicit-int] extern ex(); ^~ vi.h:355:9: warning: type defaults to 'int' in declaration of 'vi' [-Wimplicit-int] extern vi(); ^~ vi.h:356:9: warning: type defaults to 'int' in declaration of 'doexcmd' [-Wimplicit-int] extern doexcmd(); ^~~~~~~ --- vcmd.o --- cc -pipe -Wno-error=return-type -I/usr/local/include -I/usr/local/include/ncurses -O2 -fno-strict-aliasing -D_HAVE_PARAM_H -c vcmd.c In file included from vcmd.c:15: vi.h:354:9: warning: type defaults to 'int' in declaration of 'ex' [-Wimplicit-int] extern ex(); ^~ vi.h:355:9: warning: type defaults to 'int' in declaration of 'vi' [-Wimplicit-int] extern vi(); ^~ vi.h:356:9: warning: type defaults to 'int' in declaration of 'doexcmd' [-Wimplicit-int] extern doexcmd(); ^~~~~~~ vcmd.c: In function 'IsIdxHZ': vcmd.c:53:12: warning: implicit declaration of function 'strlen' [-Wimplicit-function-declaration] if (idx > strlen(text)) ^~~~~~ vcmd.c:53:12: warning: incompatible implicit declaration of built-in function 'strlen' vcmd.c:53:12: note: include '' or provide a declaration of 'strlen' vcmd.c:16:1: +#include #if MSDOS vcmd.c:53:12: if (idx > strlen(text)) ^~~~~~ vcmd.c: In function 'v_redraw': vcmd.c:128:2: warning: implicit declaration of function 'redraw'; did you mean 'v_redraw'? [-Wimplicit-function-declaration] redraw(MARK_UNSET, FALSE); ^~~~~~ v_redraw In file included from vi.h:51, from vcmd.c:15: vcmd.c: In function 'v_1ex': config.h:127:29: warning: implicit declaration of function 'write'; did you mean 'fwrite'? [-Wimplicit-function-declaration] # define ttywrite(buf, len) write(1, buf, len) /* raw write */ ^~~~~ curses.h:115:24: note: in definition of macro 'VOIDBIOS' #define VOIDBIOS(x,y) {y;} ^ curses.h:206:38: note: in expansion of macro 'VOIDBIOS' #define wrefresh(w) if ((w) != kbuf) VOIDBIOS((w) = kbuf, {ttywrite(kbuf, (int)((w) - kbuf)); (w) = kbuf;}) else ^~~~~~~~ curses.h:206:60: note: in expansion of macro 'ttywrite' #define wrefresh(w) if ((w) != kbuf) VOIDBIOS((w) = kbuf, {ttywrite(kbuf, (int)((w) - kbuf)); (w) = kbuf;}) else ^~~~~~~~ curses.h:205:31: note: in expansion of macro 'wrefresh' #define refresh() VOIDBIOS(0, wrefresh(stdscr)) ^~~~~~~~ vcmd.c:145:3: note: in expansion of macro 'refresh' refresh(); ^~~~~~~ vcmd.c:151:2: warning: implicit declaration of function 'exrefresh'; did you mean 'wrefresh'? [-Wimplicit-function-declaration] exrefresh(); ^~~~~~~~~ wrefresh vcmd.c:161:3: warning: implicit declaration of function 'msg' [-Wimplicit-function-declaration] msg("[Hit any key to continue]"); ^~~ vcmd.c:162:7: warning: implicit declaration of function 'getkey'; did you mean 'getw'? [-Wimplicit-function-declaration] if (getkey(0) == ':') ^~~~~~ getw vcmd.c: In function 'v_undo': vcmd.c:178:2: warning: implicit declaration of function 'undo'; did you mean 'v_undo'? [-Wimplicit-function-declaration] undo(); ^~~~ v_undo In file included from vcmd.c:15: vcmd.c: In function 'v_xchar': vi.h:231:32: warning: implicit declaration of function 'beforedo'; did you mean 'refresh'? [-Wimplicit-function-declaration] #define ChangeText BeforeAfter(beforedo(FALSE),afterdo()) ^~~~~~~~ vi.h:230:41: note: in definition of macro 'BeforeAfter' #define BeforeAfter(before, after) for((before),bavar=1;bavar;(after),bavar=0) ^~~~~~ vcmd.c:203:2: note: in expansion of macro 'ChangeText' ChangeText ^~~~~~~~~~ vi.h:231:48: warning: implicit declaration of function 'afterdo'; did you mean 'ftello'? [-Wimplicit-function-declaration] #define ChangeText BeforeAfter(beforedo(FALSE),afterdo()) ^~~~~~~ vi.h:230:64: note: in definition of macro 'BeforeAfter' #define BeforeAfter(before, after) for((before),bavar=1;bavar;(after),bavar=0) ^~~~~ vcmd.c:203:2: note: in expansion of macro 'ChangeText' ChangeText ^~~~~~~~~~ vcmd.c:205:3: warning: implicit declaration of function 'cut'; did you mean 'putw'? [-Wimplicit-function-declaration] cut(m, m + cnt); ^~~ putw vcmd.c:206:3: warning: implicit declaration of function 'delete'; did you mean 'v_delete'? [-Wimplicit-function-declaration] delete(m, m + cnt); ^~~~~~ v_delete vcmd.c: In function 'v_ulcase': vcmd.c:281:4: warning: implicit declaration of function 'change'; did you mean 'v_change'? [-Wimplicit-function-declaration] change(m, m + 1, new); ^~~~~~ v_change vcmd.c: In function 'v_selcut': vcmd.c:461:2: warning: implicit declaration of function 'cutname'; did you mean 'rename'? [-Wimplicit-function-declaration] cutname(key); ^~~~~~~ rename vcmd.c: In function 'v_insert': vcmd.c:551:4: warning: implicit declaration of function 'add'; did you mean 'addch'? [-Wimplicit-function-declaration] add(m, "\n"); ^~~ addch --- vi.o --- --- vcmd.o --- vcmd.c: In function 'v_filter': vcmd.c:718:6: warning: implicit declaration of function 'vgets'; did you mean 'gets'? [-Wimplicit-function-declaration] if (vgets('!', cmdln, sizeof(cmdln)) > 0) ^~~~~ gets vcmd.c:720:3: warning: implicit declaration of function 'filter'; did you mean 'v_filter'? [-Wimplicit-function-declaration] filter(m, n, cmdln); ^~~~~~ v_filter vcmd.c: In function 'v_switch': vcmd.c:741:4: warning: implicit declaration of function 'strcpy' [-Wimplicit-function-declaration] { strcpy(tmpblk.c, prevorig); ^~~~~~ vcmd.c:741:4: warning: incompatible implicit declaration of built-in function 'strcpy' vcmd.c:741:4: note: include '' or provide a declaration of 'strcpy' --- vi.o --- cc -pipe -Wno-error=return-type -I/usr/local/include -I/usr/local/include/ncurses -O2 -fno-strict-aliasing -D_HAVE_PARAM_H -c vi.c --- vcmd.o --- vcmd.c: In function 'v_keyword': vcmd.c:783:2: warning: implicit declaration of function 'suspend_curses' [-Wimplicit-function-declaration] suspend_curses(); ^~~~~~~~~~~~~~ vcmd.c:787:10: warning: implicit declaration of function 'fork' [-Wimplicit-function-declaration] switch (fork()) ^~~~ vcmd.c:793:3: warning: implicit declaration of function 'execl' [-Wimplicit-function-declaration] execl(o_keywordprg, o_keywordprg, keyword, (char *)0); ^~~~~ vcmd.c:793:3: warning: incompatible implicit declaration of built-in function 'execl' vcmd.c:794:3: warning: implicit declaration of function 'HZ_abort' [-Wimplicit-function-declaration] HZ_abort(2); /* if we get here, the exec failed */ ^~~~~~~~ vcmd.c:797:3: warning: implicit declaration of function 'wait' [-Wimplicit-function-declaration] wait(&status); ^~~~ vcmd.c:817:2: warning: implicit declaration of function 'resume_curses' [-Wimplicit-function-declaration] resume_curses(FALSE); /* "resume, but not quietly" */ ^~~~~~~~~~~~~ vcmd.c: In function 'v_increment': vcmd.c:829:9: warning: type defaults to 'int' in declaration of 'sign' [-Wimplicit-int] static sign; ^~~~ vcmd.c:863:17: warning: incompatible implicit declaration of built-in function 'strlen' change(m, m + strlen(keyword), newval); ^~~~~~ vcmd.c:863:17: note: include '' or provide a declaration of 'strlen' vcmd.c: In function 'v_undoline': vcmd.c:915:3: warning: implicit declaration of function 'changeline'; did you mean 'v_undoline'? [-Wimplicit-function-declaration] changeline(U_line, U_text); ^~~~~~~~~~ v_undoline --- vi.o --- In file included from vi.c:13: vi.h:354:9: warning: type defaults to 'int' in declaration of 'ex' [-Wimplicit-int] extern ex(); ^~ vi.h:355:9: warning: type defaults to 'int' in declaration of 'vi' [-Wimplicit-int] extern vi(); ^~ vi.h:356:9: warning: type defaults to 'int' in declaration of 'doexcmd' [-Wimplicit-int] extern doexcmd(); ^~~~~~~ vi.c:77:21: warning: initialization of 'MARK (*)()' {aka 'long int (*)()'} from incompatible pointer type 'int (*)()' [-Wincompatible-pointer-types] /* ^Z suspend */ {suspend_elvis, NO_ARGS, NO_FLAGS}, ^~~~~~~~~~~~~ vi.c:77:21: note: (near initialization for 'vikeys[26].func') vi.c:223:1: warning: return type defaults to 'int' [-Wimplicit-int] vi() ^~ vi.c: In function 'vi': vi.c:240:2: warning: implicit declaration of function 'redraw'; did you mean 'v_redraw'? [-Wimplicit-function-declaration] redraw(MARK_UNSET, FALSE); ^~~~~~ v_redraw vi.c:241:2: warning: implicit declaration of function 'msg' [-Wimplicit-function-declaration] msg((char *)0); ^~~ vi.c:290:11: warning: implicit declaration of function 'getkey'; did you mean 'getw'? [-Wimplicit-function-declaration] key = getkey(WHEN_VICMD); ^~~~~~ getw vi.c:293:5: warning: implicit declaration of function 'beep' [-Wimplicit-function-declaration] beep (); ^~~~ vi.c:343:5: warning: implicit declaration of function 'strcpy' [-Wimplicit-function-declaration] strcpy(U_text, fetchline(U_line)); ^~~~~~ vi.c:343:5: warning: incompatible implicit declaration of built-in function 'strcpy' vi.c:343:5: note: include '' or provide a declaration of 'strcpy' vi.c:16:1: +#include #ifdef SIGTSTP vi.c:343:5: strcpy(U_text, fetchline(U_line)); ^~~~~~ vi.c:367:5: warning: incompatible implicit declaration of built-in function 'strcpy' strcpy(U_text, fetchline(U_line)); ^~~~~~ vi.c:367:5: note: include '' or provide a declaration of 'strcpy' vi.c:517:9: warning: implicit declaration of function 'vgets'; did you mean 'gets'? [-Wimplicit-function-declaration] if (vgets(key, text, sizeof text) >= 0) ^~~~~ gets In file included from vi.h:51, from vi.c:13: config.h:127:29: warning: implicit declaration of function 'write'; did you mean 'fwrite'? [-Wimplicit-function-declaration] # define ttywrite(buf, len) write(1, buf, len) /* raw write */ ^~~~~ curses.h:115:24: note: in definition of macro 'VOIDBIOS' #define VOIDBIOS(x,y) {y;} ^ curses.h:206:38: note: in expansion of macro 'VOIDBIOS' #define wrefresh(w) if ((w) != kbuf) VOIDBIOS((w) = kbuf, {ttywrite(kbuf, (int)((w) - kbuf)); (w) = kbuf;}) else ^~~~~~~~ curses.h:206:60: note: in expansion of macro 'ttywrite' #define wrefresh(w) if ((w) != kbuf) VOIDBIOS((w) = kbuf, {ttywrite(kbuf, (int)((w) - kbuf)); (w) = kbuf;}) else ^~~~~~~~ curses.h:205:31: note: in expansion of macro 'wrefresh' #define refresh() VOIDBIOS(0, wrefresh(stdscr)) ^~~~~~~~ vi.c:521:6: note: in expansion of macro 'refresh' refresh(); ^~~~~~~ vi.c: In function 'adjmove': vi.c:677:9: warning: implicit declaration of function 'IsIdxHZ' [-Wimplicit-function-declaration] if (IsIdxHZ (markidx(new), ptext) < 0) ^~~~~~~ vi.c:694:12: warning: implicit declaration of function 'idx2col' [-Wimplicit-function-declaration] colno = idx2col(new, ptext, FALSE); ^~~~~~~ vi.c: At top level: vi.c:746:1: warning: return type defaults to 'int' [-Wimplicit-int] suspend_elvis() ^~~~~~~~~~~~~ vi.c: In function 'suspend_elvis': vi.c:750:2: warning: implicit declaration of function 'suspend_curses'; did you mean 'suspend_elvis'? [-Wimplicit-function-declaration] suspend_curses(); ^~~~~~~~~~~~~~ suspend_elvis vi.c:757:2: warning: implicit declaration of function 'resume_curses' [-Wimplicit-function-declaration] resume_curses(TRUE); ^~~~~~~~~~~~~ --- virec --- cc -pipe -Wno-error=return-type -I/usr/local/include -I/usr/local/include/ncurses -O2 -fno-strict-aliasing -D_HAVE_PARAM_H virec.c -o virec In file included from virec.c:15: vi.h:354:9: warning: type defaults to 'int' in declaration of 'ex' [-Wimplicit-int] extern ex(); ^~ vi.h:355:9: warning: type defaults to 'int' in declaration of 'vi' [-Wimplicit-int] extern vi(); ^~ vi.h:356:9: warning: type defaults to 'int' in declaration of 'doexcmd' [-Wimplicit-int] extern doexcmd(); ^~~~~~~ virec.c:32:1: warning: return type defaults to 'int' [-Wimplicit-int] main(argc, argv) ^~~~ virec.c: In function 'main': virec.c:46:3: warning: implicit declaration of function 'strcpy' [-Wimplicit-function-declaration] strcpy(o_directory, tmp); ^~~~~~ virec.c:46:3: warning: incompatible implicit declaration of built-in function 'strcpy' virec.c:46:3: note: include '' or provide a declaration of 'strcpy' virec.c:20:1: +#include #endif virec.c:46:3: strcpy(o_directory, tmp); ^~~~~~ virec.c:48:20: warning: implicit declaration of function 'strcmp' [-Wimplicit-function-declaration] if (argc >= 3 && !strcmp(argv[1], "-d")) ^~~~~~ virec.c:50:3: warning: incompatible implicit declaration of built-in function 'strcpy' strcpy(o_directory, argv[2]); ^~~~~~ virec.c:50:3: note: include '' or provide a declaration of 'strcpy' virec.c:62:12: warning: implicit declaration of function 'read'; did you mean 'fread'? [-Wimplicit-function-declaration] else if (read(0, &hdr, BLKSIZE) != BLKSIZE) ^~~~ fread virec.c:68:4: warning: implicit declaration of function 'copytext'; did you mean 'cmd_next'? [-Wimplicit-function-declaration] copytext(0, stdout); ^~~~~~~~ cmd_next virec.c:75:4: warning: implicit declaration of function 'recover'; did you mean 'remove'? [-Wimplicit-function-declaration] recover(*++argv); ^~~~~~~ remove virec.c:78:2: warning: implicit declaration of function 'exit' [-Wimplicit-function-declaration] exit(0); ^~~~ virec.c:78:2: warning: incompatible implicit declaration of built-in function 'exit' virec.c:78:2: note: include '' or provide a declaration of 'exit' virec.c:20:1: +#include #endif virec.c:78:2: exit(0); ^~~~ virec.c: At top level: virec.c:83:1: warning: return type defaults to 'int' [-Wimplicit-int] recover(filename) ^~~~~~~ virec.c: In function 'recover': virec.c:99:4: warning: 'return' with no value, in function returning non-void return; ^~~~~~ virec.c:83:1: note: declared here recover(filename) ^~~~~~~ virec.c:114:3: warning: 'return' with no value, in function returning non-void return; ^~~~~~ virec.c:83:1: note: declared here recover(filename) ^~~~~~~ virec.c:139:5: warning: implicit declaration of function 'close'; did you mean 'pclose'? [-Wimplicit-function-declaration] close(tmpfd); ^~~~~ pclose virec.c:140:5: warning: implicit declaration of function 'unlink'; did you mean 'unix'? [-Wimplicit-function-declaration] unlink(tmpname); ^~~~~~ unix virec.c:141:5: warning: 'return' with no value, in function returning non-void return; ^~~~~~ virec.c:83:1: note: declared here recover(filename) ^~~~~~~ virec.c:146:5: warning: 'return' with no value, in function returning non-void return; ^~~~~~ virec.c:83:1: note: declared here recover(filename) ^~~~~~~ virec.c:158:3: warning: 'return' with no value, in function returning non-void return; ^~~~~~ virec.c:83:1: note: declared here recover(filename) ^~~~~~~ virec.c:167:2: warning: implicit declaration of function 'lseek'; did you mean 'fseek'? [-Wimplicit-function-declaration] lseek(tmpfd, (long)j * (long)BLKSIZE, 0); ^~~~~ fseek virec.c:173:3: warning: 'return' with no value, in function returning non-void return; ^~~~~~ virec.c:83:1: note: declared here recover(filename) ^~~~~~~ virec.c:182:3: warning: 'return' with no value, in function returning non-void return; ^~~~~~ virec.c:83:1: note: declared here recover(filename) ^~~~~~~ virec.c: At top level: virec.c:196:1: warning: return type defaults to 'int' [-Wimplicit-int] copytext(tmpfd, fp) ^~~~~~~~ --- celvis --- cc -pipe -Wno-error=return-type -I/usr/local/include -I/usr/local/include/ncurses -O2 -fno-strict-aliasing -D_HAVE_PARAM_H -o celvis blk.o cmd1.o cmd2.o curses.o cut.o ex.o input.o main.o misc.o modify.o move1.o move2.o move3.o move4.o move5.o opts.o recycle.o redraw.o regexp.o regsub.o system.o tio.o tmp.o vars.o vcmd.o vi.o -L/usr/local/lib -Wl,-rpath=/usr/local/lib -lncurses system.o:system.c:function filter: warning: warning: mktemp() possibly used unsafely; consider using mkstemp() -------------------------------------------------------------------------------- -- Phase: run-depends -------------------------------------------------------------------------------- ===> zh-celvis-1.3 depends on file: /usr/local/lib/libncurses.so.6 - found -------------------------------------------------------------------------------- -- Phase: stage -------------------------------------------------------------------------------- ===> Staging for zh-celvis-1.3 ===> Generating temporary packing list install -s -m 555 /construction/chinese/celvis/celvis/celvis /construction/chinese/celvis/celvis/virec /construction/chinese/celvis/stage/usr/local/bin ln -s celvis /construction/chinese/celvis/stage/usr/local/bin/cvi install -m 444 /xports/chinese/celvis/files/celvis.1 /construction/chinese/celvis/stage/usr/local/man/man1 ====> Compressing man pages (compress-man) -------------------------------------------------------------------------------- -- Phase: package -------------------------------------------------------------------------------- ===> Building package for zh-celvis-1.3 file sizes/checksums [4]: . done packing files [4]: . done packing directories [0]: . done -------------------------------------------------- -- Termination -------------------------------------------------- Finished: Thursday, 7 MAR 2019 at 20:20:12 UTC Duration: 00:00:09