>>> Building on exopi-6 under chinese/cless DIST = [chinese/cless:cless-290.tar.gz] FULLPKGNAME = zh-cless-290p2 distfiles size=172827 >>> Running build in chinese/cless at 1735056231.52 ===> chinese/cless ===> Building from scratch zh-cless-290p2 ===> Verifying specs: c curses ===> found c.100.3 curses.15.0 ===> Checking files for zh-cless-290p2 `/exopi-cvs/ports/distfiles/cless-290.tar.gz' is up to date. >> (SHA256) all files: OK ===> Extracting for zh-cless-290p2 ===> Patching for zh-cless-290p2 ===> Applying OpenBSD patch patch-Makefile_in Hmm... Looks like a unified diff to me... The text leading up to this was: -------------------------- |--- Makefile.in.orig Tue Apr 25 04:41:39 1995 |+++ Makefile.in Fri Oct 26 22:20:02 2007 -------------------------- Patching file Makefile.in using Plan A... Hunk #1 succeeded at 25. Hunk #2 succeeded at 73. done ===> Applying OpenBSD patch patch-defines_h_in Hmm... Looks like a unified diff to me... The text leading up to this was: -------------------------- |--- defines.h.in.orig Tue Apr 25 04:33:06 1995 |+++ defines.h.in Fri Oct 26 22:20:02 2007 -------------------------- Patching file defines.h.in using Plan A... Hunk #1 succeeded at 104. done ===> Applying OpenBSD patch patch-less_nro Hmm... Looks like a unified diff to me... The text leading up to this was: -------------------------- |--- less.nro.orig Thu Mar 2 22:15:01 1995 |+++ less.nro Fri Oct 26 22:20:02 2007 -------------------------- Patching file less.nro using Plan A... Hunk #1 succeeded at 1. Hunk #2 succeeded at 23. Hunk #3 succeeded at 114. Hunk #4 succeeded at 329. Hunk #5 succeeded at 374. Hunk #6 succeeded at 402. Hunk #7 succeeded at 417. Hunk #8 succeeded at 444. Hunk #9 succeeded at 457. Hunk #10 succeeded at 519. Hunk #11 succeeded at 556. Hunk #12 succeeded at 569. Hunk #13 succeeded at 613. Hunk #14 succeeded at 638. Hunk #15 succeeded at 667. Hunk #16 succeeded at 705. Hunk #17 succeeded at 777. Hunk #18 succeeded at 805. Hunk #19 succeeded at 813. Hunk #20 succeeded at 823. Hunk #21 succeeded at 839. Hunk #22 succeeded at 878. Hunk #23 succeeded at 888. Hunk #24 succeeded at 950. Hunk #25 succeeded at 983. Hunk #26 succeeded at 1173. Hunk #27 succeeded at 1204. done ===> Applying OpenBSD patch patch-lesskey_nro Hmm... Looks like a unified diff to me... The text leading up to this was: -------------------------- |--- lesskey.nro.orig Wed Feb 1 00:55:56 1995 |+++ lesskey.nro Fri Oct 26 22:20:02 2007 -------------------------- Patching file lesskey.nro using Plan A... Hunk #1 succeeded at 1. Hunk #2 succeeded at 26. Hunk #3 succeeded at 41. Hunk #4 succeeded at 147. Hunk #5 succeeded at 185. Hunk #6 succeeded at 210. done ===> Compiler link: clang -> /usr/bin/clang ===> Compiler link: clang++ -> /usr/bin/clang++ ===> Compiler link: cc -> /usr/bin/cc ===> Compiler link: c++ -> /usr/bin/c++ ===> Generating configure for zh-cless-290p2 ===> Configuring for zh-cless-290p2 Using /exopi-obj/pobj/zh-cless-290/config.site (generated) loading site script /exopi-obj/pobj/zh-cless-290/config.site creating cache ./config.cache checking for gcc... cc checking whether we are using GNU C... (cached) yes checking for POSIXized ISC... no checking how to run the C preprocessor... cc -E checking whether cc needs -traditional... no checking for a BSD compatible install... /exopi-obj/pobj/zh-cless-290/bin/install -c checking for -lcurses... yes checking for -ltermcap... yes checking for -ltermlib... yes checking for -lgen... no checking for -lintl... no checking for -lPW... no checking for working terminal libraries... using -lcurses -ltermcap checking whether cross-compiling... no checking for ANSI C header files... (cached) yes checking for ctype.h... (cached) yes checking for errno.h... (cached) yes checking for fcntl.h... (cached) yes checking for stdio.h... (cached) yes checking for termcap.h... yes checking for termio.h... (cached) no checking for termios.h... (cached) yes checking for time.h... (cached) yes checking for unistd.h... (cached) yes checking for values.h... (cached) no checking for sys/ioctl.h... (cached) yes checking for sys/stream.h... no checking for sys/ptem.h... no checking for off_t... (cached) yes checking for void... yes checking for time_t... yes checking return type of signal handlers... (cached) void checking for _setjmp... yes checking for system... (cached) yes checking for sigsetmask... (cached) yes checking for memcpy... (cached) yes checking for strchr... (cached) yes checking for tcgetattr... (cached) yes checking for fileno... yes checking for strerror... yes checking for sys_errlist... yes checking for errno... yes checking for locale... yes checking for ctype functions... yes checking termcap for ospeed... yes checking for regular expression library using POSIX regcomp updating cache ./config.cache creating ./config.status creating Makefile creating defines.h ===> Building for zh-cless-290p2 test ! -f stamp-h || CONFIG_FILES= CONFIG_HEADERS=defines.h ./config.status touch stamp-h cc -I. -c -O2 -pipe -DHANZI main.c main.c:97:13: warning: passing arguments to 'scan_option' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] scan_option(getenv("LESS")); ^ main.c:106:15: warning: passing arguments to 'scan_option' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] scan_option("-?"); ^ main.c:108:15: warning: passing arguments to 'scan_option' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] scan_option("-V"); ^ main.c:113:14: warning: passing arguments to 'scan_option' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] scan_option(*argv++); ^ main.c:123:7: warning: passing arguments to 'quit' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] quit(QUIT_OK); ^ main.c:164:20: warning: passing arguments to 'get_ifile' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] ifile = get_ifile(*argv++, ifile); ^ main.c:185:22: warning: passing arguments to 'edit_next' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] } while (edit_next(1) == 0); ^ main.c:187:7: warning: passing arguments to 'quit' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] quit(QUIT_OK); ^ main.c:191:10: warning: passing arguments to 'raw_mode' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] raw_mode(1); ^ main.c:193:14: warning: passing arguments to 'init_signals' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] init_signals(1); ^ main.c:209:9: warning: passing arguments to 'error' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] error("No filenames allowed with -t option", NULL_PARG); ^ main.c:210:8: warning: passing arguments to 'quit' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] quit(QUIT_ERROR); ^ main.c:212:10: warning: passing arguments to 'findtag' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] findtag(tagoption); ^ main.c:214:8: warning: passing arguments to 'quit' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] quit(QUIT_ERROR); ^ main.c:215:11: warning: passing arguments to 'edit' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] if (edit(tagfile)) /* Edit file which contains the tag */ ^ main.c:216:8: warning: passing arguments to 'quit' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] quit(QUIT_ERROR); ^ main.c:223:8: warning: passing arguments to 'quit' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] quit(QUIT_ERROR); ^ main.c:230:8: warning: passing arguments to 'quit' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] quit(QUIT_ERROR); ^ main.c:234:8: warning: passing arguments to 'quit' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] quit(QUIT_ERROR); ^ main.c:239:6: warning: passing arguments to 'quit' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] quit(QUIT_OK); ^ main.c:75:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] main(argc, argv) ^ main.c:248:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] strtcpy(to, from, len) ^ In file included from main.c:32: In file included from ./less.h:253: ./funcs.h:1:14: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] public void strtcpy (); ^ main.c:267:22: warning: passing arguments to 'ecalloc' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] p = (char *) ecalloc(strlen(s)+1, sizeof(char)); ^ main.c:262:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] save(s) ^ In file included from main.c:32: In file included from ./less.h:253: ./funcs.h:2:16: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] public char * save (); ^ main.c:286:7: warning: passing arguments to 'error' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] error("Cannot allocate memory", NULL_PARG); ^ main.c:287:6: warning: passing arguments to 'quit' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] quit(QUIT_ERROR); ^ main.c:277:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] ecalloc(count, size) ^ In file included from main.c:32: In file included from ./less.h:253: ./funcs.h:3:22: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] public VOID_POINTER ecalloc (); ^ main.c:289:1: warning: non-void function does not return a value in all control paths [-Wreturn-type] } ^ main.c:295:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] skipsp(s) ^ In file included from main.c:32: In file included from ./less.h:253: ./funcs.h:4:16: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] public char * skipsp (); ^ main.c:321:6: warning: passing arguments to 'edit' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] edit((char*)NULL); ^ main.c:326:10: warning: passing arguments to 'raw_mode' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] raw_mode(0); ^ main.c:307:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] quit(status) ^ In file included from main.c:32: In file included from ./less.h:253: ./funcs.h:5:14: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] public void quit (); ^ 37 warnings generated. cc -I. -c -O2 -pipe -DHANZI screen.c screen.c:143:14: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C2x, conflicting with a previous declaration [-Wdeprecated-non-prototype] extern char *tgetstr(); ^ /usr/include/termcap.h:63:31: note: conflicting prototype is here extern NCURSES_EXPORT(char *) tgetstr (const char *, char **); ^ screen.c:144:14: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C2x, conflicting with a previous declaration [-Wdeprecated-non-prototype] extern char *tgoto(); ^ /usr/include/termcap.h:64:31: note: conflicting prototype is here extern NCURSES_EXPORT(char *) tgoto (const char *, int, int); ^ screen.c:159:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] raw_mode(on) ^ In file included from screen.c:35: In file included from ./less.h:253: ./funcs.h:6:14: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] public void raw_mode (); ^ screen.c:422:7: warning: passing arguments to 'error' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] error("WARNING: terminal cannot %s", &parg); ^ screen.c:410:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] cannot(s) ^ screen.c:454:6: warning: call to undeclared function 'ioctl'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] if (ioctl(2, TIOCGWINSZ, &w) == 0 && w.ws_row > 0) ^ screen.c:616:16: warning: passing arguments to 'add_fcmd_table' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] add_fcmd_table(kfcmdtable, sz_kfcmdtable); ^ screen.c:617:16: warning: passing arguments to 'add_ecmd_table' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] add_ecmd_table(kecmdtable, sz_kecmdtable); ^ screen.c:869:19: warning: passing arguments to 'cheaper' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] sc_home = cheaper(t1, t2, "home cursor", "|\b^"); ^ screen.c:886:25: warning: passing arguments to 'cheaper' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] sc_lower_left = cheaper(t1, t2, ^ screen.c:907:23: warning: passing arguments to 'cheaper' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] sc_addline = cheaper(t1, t2, "scroll backwards", ""); ^ screen.c:928:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] inc_costcount(c) ^ screen.c:936:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] cost(t) ^ screen.c:950:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] cheaper(t1, t2, doit, def) ^ screen.c:123:14: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] static char *cheaper(); ^ screen.c:1036:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] goto_line(slinenum) ^ In file included from screen.c:35: In file included from ./less.h:253: ./funcs.h:16:14: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] public void goto_line (); ^ screen.c:1054:9: warning: passing arguments to 'putchr' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] putchr('\7'); ^ screen.c:1185:8: warning: passing arguments to 'putchr' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] putchr(' '); ^ 20 warnings generated. cc -I. -c -O2 -pipe -DHANZI brac.c brac.c:62:16: warning: passing arguments to 'position' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] pos = position((forwdir) ? TOP : BOTTOM); ^ brac.c:63:37: warning: passing arguments to 'ch_seek' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] if (pos == NULL_POSITION || ch_seek(pos)) ^ brac.c:66:9: warning: passing arguments to 'error' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] error("Nothing in top line", NULL_PARG); ^ brac.c:68:9: warning: passing arguments to 'error' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] error("Nothing in bottom line", NULL_PARG); ^ brac.c:80:10: warning: passing arguments to 'error' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] error("No bracket in top line", NULL_PARG); ^ brac.c:82:10: warning: passing arguments to 'error' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] error("No bracket in bottom line", NULL_PARG); ^ brac.c:112:17: warning: passing arguments to 'jump_line_loc' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] jump_line_loc(ch_tell(), forwdir ? -1 : 1); ^ brac.c:116:7: warning: passing arguments to 'error' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] error("No matching bracket", NULL_PARG); ^ brac.c:44:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] match_brac(obrac, cbrac, forwdir, n) ^ In file included from brac.c:32: In file included from ./less.h:253: ./funcs.h:32:14: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] public void match_brac (); ^ 10 warnings generated. cc -I. -c -O2 -pipe -DHANZI ch.c ch.c:176:10: warning: passing arguments to 'error' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] error("seek error", NULL_PARG); ^ ch.c:190:12: warning: passing arguments to 'iread' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] n = iread(ch_file, &bp->data[bp->datasize], ^ ch.c:203:8: warning: passing arguments to 'error' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] error("read error", NULL_PARG); ^ ch.c:233:11: warning: passing arguments to 'ierror' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] ierror("Waiting for data", NULL_PARG); ^ ch.c:278:8: warning: passing arguments to 'error' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] error("ch_ungetchar overrun", NULL_PARG); ^ ch.c:274:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] ch_ungetchar(c) ^ In file included from ch.c:34: In file included from ./less.h:253: ./funcs.h:33:14: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] public void ch_ungetchar (); ^ ch.c:297:9: warning: passing arguments to 'ierror' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] ierror("Finishing logfile", NULL_PARG); ^ ch.c:329:11: warning: passing arguments to 'error' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] error("Warning: log file is incomplete", ^ ch.c:350:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] buffered(block) ^ ch.c:366:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] ch_seek(pos) ^ In file included from ch.c:34: In file included from ./less.h:253: ./funcs.h:36:13: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] public int ch_seek (); ^ ch.c:407:22: warning: passing arguments to 'filesize' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] ch_fsize = filesize(ch_file); ^ ch.c:536:9: warning: passing arguments to 'error' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] error("Cannot allocate %d buffers", &parg); ^ ch.c:538:9: warning: passing arguments to 'quit' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] quit(QUIT_ERROR); ^ ch.c:521:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] ch_nbuf(want_nbufs) ^ In file included from ch.c:34: In file included from ./less.h:253: ./funcs.h:43:13: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] public int ch_nbuf (); ^ ch.c:572:21: warning: passing arguments to 'filesize' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] ch_fsize = filesize(ch_file); ^ ch.c:588:8: warning: passing arguments to 'error' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] error("seek error to 0", NULL_PARG); ^ ch.c:639:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] seekable(f) ^ In file included from ch.c:34: In file included from ./less.h:253: ./funcs.h:45:13: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] public int seekable (); ^ ch.c:656:47: warning: passing arguments to 'get_filestate' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] thisfile = (struct filestate *) get_filestate(curr_ifile); ^ ch.c:679:16: warning: passing arguments to 'set_filestate' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] set_filestate(curr_ifile, (void *) thisfile); ^ ch.c:649:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] ch_init(f, flags) ^ In file included from ch.c:34: In file included from ./less.h:253: ./funcs.h:46:14: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] public void ch_init (); ^ ch.c:722:16: warning: passing arguments to 'set_filestate' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] set_filestate(curr_ifile, (void *) NULL); ^ 26 warnings generated. cc -I. -c -O2 -pipe -DHANZI charset.c charset.c:111:9: warning: passing arguments to 'error' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] error("invalid chardef", NULL_PARG); ^ charset.c:112:8: warning: passing arguments to 'quit' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] quit(QUIT_ERROR); ^ charset.c:120:10: warning: passing arguments to 'error' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] error("chardef longer than 256", NULL_PARG); ^ charset.c:121:9: warning: passing arguments to 'quit' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] quit(QUIT_ERROR); ^ charset.c:81:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] ichardef(s) ^ charset.c:155:7: warning: passing arguments to 'error' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] error("invalid charset name", NULL_PARG); ^ charset.c:156:6: warning: passing arguments to 'quit' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] quit(QUIT_ERROR); ^ charset.c:138:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] icharset(name) ^ charset.c:158:1: warning: non-void function does not return a value in all control paths [-Wreturn-type] } ^ charset.c:186:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] setbinfmt(s) ^ charset.c:259:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] binary_char(c) ^ In file included from charset.c:33: In file included from ./less.h:253: ./funcs.h:51:13: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] public int binary_char (); ^ charset.c:270:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] control_char(c) ^ In file included from charset.c:33: In file included from ./less.h:253: ./funcs.h:52:13: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] public int control_char (); ^ charset.c:282:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] prchar(c) ^ In file included from charset.c:33: In file included from ./less.h:253: ./funcs.h:53:16: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] public char * prchar (); ^ 16 warnings generated. cc -I. -c -O2 -pipe -DHANZI cmdbuf.c cmdbuf.c:139:12: warning: passing arguments to 'prchar' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] p = prchar(*cp); ^ cmdbuf.c:159:13: warning: passing arguments to 'prchar' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] p = prchar(*s); ^ cmdbuf.c:160:9: warning: passing arguments to 'putstr' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] putstr(p); ^ cmdbuf.c:204:12: warning: passing arguments to 'prchar' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] p = prchar(*cp); ^ cmdbuf.c:206:8: warning: passing arguments to 'putstr' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] putstr(p); ^ cmdbuf.c:278:13: warning: passing arguments to 'prchar' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] p = prchar(*cp); ^ cmdbuf.c:326:12: warning: passing arguments to 'prchar' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] p = prchar(*cp); ^ cmdbuf.c:328:8: warning: passing arguments to 'putstr' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] putstr(p); ^ cmdbuf.c:347:12: warning: passing arguments to 'prchar' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] p = prchar(*cp); ^ cmdbuf.c:359:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] set_mlist(mlist) ^ In file included from cmdbuf.c:33: In file included from ./less.h:253: ./funcs.h:56:14: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] public void set_mlist (); ^ cmdbuf.c:401:13: warning: passing arguments to 'prchar' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] p = prchar(*cp); ^ cmdbuf.c:403:9: warning: passing arguments to 'putstr' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] putstr(p); ^ cmdbuf.c:369:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] cmd_updown(action) ^ cmdbuf.c:443:32: warning: passing arguments to 'ecalloc' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] ml = (struct mlist *) ecalloc(1, sizeof(struct mlist)); ^ cmdbuf.c:444:20: warning: passing arguments to 'save' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] ml->string = save(cmdbuf); ^ cmdbuf.c:494:19: warning: passing arguments to 'editchar' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] action = editchar(c, flags); ^ cmdbuf.c:557:23: warning: passing arguments to 'cmd_complete' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] return (cmd_complete(action)); ^ cmdbuf.c:467:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] cmd_edit(c) ^ cmdbuf.c:590:12: warning: passing arguments to 'prchar' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] p = prchar(c); ^ cmdbuf.c:615:13: warning: passing arguments to 'prchar' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] p = prchar(*s); ^ cmdbuf.c:634:9: warning: passing arguments to 'putstr' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] putstr(p); ^ cmdbuf.c:569:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] cmd_ichar(c) ^ cmdbuf.c:652:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] cmd_istr(str) ^ cmdbuf.c:753:32: warning: passing arguments to 'ecalloc' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] tk_original = (char *) ecalloc(cp-word+1, sizeof(char)); ^ cmdbuf.c:762:21: warning: passing arguments to 'fcomplete' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] tk_text = fcomplete(word); ^ cmdbuf.c:777:24: warning: passing arguments to 'forw_textlist' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] return (forw_textlist(&tk_tlist, prev)); ^ cmdbuf.c:779:24: warning: passing arguments to 'back_textlist' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] return (back_textlist(&tk_tlist, prev)); ^ cmdbuf.c:770:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] next_compl(action, prev) ^ cmdbuf.c:822:17: warning: passing arguments to 'init_textlist' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] init_textlist(&tk_tlist, tk_text); ^ cmdbuf.c:793:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] cmd_complete(action) ^ cmdbuf.c:44:12: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] static int cmd_complete(); ^ cmdbuf.c:877:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] cmd_char(c) ^ In file included from cmdbuf.c:33: In file included from ./less.h:253: ./funcs.h:58:13: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] public int cmd_char (); ^ cmdbuf.c:932:8: warning: passing arguments to 'putstr' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] putstr(s); ^ cmdbuf.c:929:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] cmd_putstr(s) ^ In file included from cmdbuf.c:33: In file included from ./less.h:253: ./funcs.h:60:14: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] public void cmd_putstr (); ^ 37 warnings generated. cc -I. -c -O2 -pipe -DHANZI command.c command.c:112:12: warning: passing arguments to 'cmd_putstr' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] cmd_putstr(prompt); ^ command.c:114:11: warning: passing arguments to 'set_mlist' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] set_mlist(mlist); ^ command.c:105:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] start_mca(action, prompt, mlist) ^ command.c:138:13: warning: passing arguments to 'cmd_putstr' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] cmd_putstr("@"); ^ command.c:141:13: warning: passing arguments to 'cmd_putstr' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] cmd_putstr("*"); ^ command.c:144:13: warning: passing arguments to 'cmd_putstr' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] cmd_putstr("!"); ^ command.c:147:13: warning: passing arguments to 'cmd_putstr' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] cmd_putstr("/"); ^ command.c:149:13: warning: passing arguments to 'cmd_putstr' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] cmd_putstr("?"); ^ command.c:151:11: warning: passing arguments to 'set_mlist' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] set_mlist(ml_search); ^ command.c:170:15: warning: passing arguments to 'multi_search' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] multi_search(cbuf, number); ^ command.c:183:26: warning: passing arguments to 'save' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] every_first_cmd = save(cbuf); ^ command.c:186:16: warning: passing arguments to 'toggle_option' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] toggle_option(optchar, cbuf, optflag); ^ command.c:190:13: warning: passing arguments to 'match_brac' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] match_brac(cbuf[0], cbuf[1], 1, number); ^ command.c:193:13: warning: passing arguments to 'match_brac' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] match_brac(cbuf[1], cbuf[0], 0, number); ^ command.c:197:12: warning: passing arguments to 'edit_list' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] edit_list(cbuf); ^ command.c:211:22: warning: passing arguments to 'fexpand' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] shellcmd = fexpand(cbuf); ^ command.c:215:11: warning: passing arguments to 'lsystem' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] lsystem(""); ^ command.c:217:11: warning: passing arguments to 'lsystem' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] lsystem(shellcmd); ^ command.c:218:8: warning: passing arguments to 'error' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] error("!done", NULL_PARG); ^ command.c:223:19: warning: passing arguments to 'pipe_mark' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] (void) pipe_mark(pipec, cbuf); ^ command.c:224:8: warning: passing arguments to 'error' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] error("|done", NULL_PARG); ^ command.c:264:13: warning: passing arguments to 'editchar' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] editchar(c, EC_PEEK|EC_NOHISTORY|EC_NOCOMPLETE) == A_INVALID) ^ command.c:303:51: warning: passing arguments to 'single_char_option' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] if (optflag != OPT_TOGGLE || single_char_option(c)) ^ command.c:305:18: warning: passing arguments to 'toggle_option' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] toggle_option(c, "", optflag); ^ command.c:318:22: warning: passing arguments to 'opt_prompt' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] if ((p = opt_prompt(c)) == NULL) ^ command.c:381:14: warning: passing arguments to 'cmd_char' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] if (cmd_char(c) == CC_QUIT) ^ command.c:234:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] mca_char(c) ^ command.c:433:12: warning: passing arguments to 'jump_loc' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] jump_loc(ch_zero(), 1); ^ command.c:435:12: warning: passing arguments to 'jump_loc' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] jump_loc(initial_scrpos.pos, initial_scrpos.ln); ^ command.c:449:16: warning: passing arguments to 'next_ifile' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] next_ifile(curr_ifile) == NULL_IFILE) ^ command.c:450:7: warning: passing arguments to 'quit' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] quit(QUIT_OK); ^ command.c:458:9: warning: passing arguments to 'putchr' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] putchr(':'); ^ command.c:462:9: warning: passing arguments to 'putstr' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] putstr(p); ^ command.c:476:7: warning: passing arguments to 'error' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] error("cless version %s", &parg); ^ command.c:545:8: warning: passing arguments to 'error' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] error("ungetcc overflow", NULL_PARG); ^ command.c:546:7: warning: passing arguments to 'quit' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] quit(QUIT_ERROR); ^ command.c:538:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] ungetcc(c) ^ In file included from command.c:32: In file included from ./less.h:253: ./funcs.h:65:14: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] public void ungetcc (); ^ command.c:556:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] ungetsc(s) ^ In file included from command.c:32: In file included from ./less.h:253: ./funcs.h:66:14: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] public void ungetsc (); ^ command.c:600:18: warning: passing arguments to 'search' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] if ((n = search(search_type, pattern, n)) == 0) ^ command.c:623:22: warning: passing arguments to 'edit_next' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] nomore = edit_next(1); ^ command.c:625:22: warning: passing arguments to 'edit_prev' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] nomore = edit_prev(1); ^ command.c:636:8: warning: passing arguments to 'error' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] error("Pattern not found", NULL_PARG); ^ command.c:643:17: warning: passing arguments to 'edit_ifile' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] if (edit_ifile(save_ifile)) ^ command.c:644:8: warning: passing arguments to 'quit' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] quit(QUIT_ERROR); ^ command.c:571:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] multi_search(pattern, n) ^ command.c:87:13: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] static void multi_search(); ^ command.c:680:9: warning: passing arguments to 'quit' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] quit(QUIT_SAVED_STATUS); ^ command.c:736:16: warning: passing arguments to 'cmd_char' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] if (cmd_char(c) == CC_QUIT || len_cmdbuf() == 0) ^ command.c:754:23: warning: passing arguments to 'fcmd_decode' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] action = fcmd_decode(cbuf, &s); ^ command.c:792:11: warning: passing arguments to 'forward' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] forward(number, 0, 1); ^ command.c:809:12: warning: passing arguments to 'backward' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] backward(number, 0, 1); ^ command.c:819:11: warning: passing arguments to 'forward' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] forward(number, 0, 0); ^ command.c:829:12: warning: passing arguments to 'backward' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] backward(number, 0, 0); ^ command.c:839:11: warning: passing arguments to 'forward' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] forward(number, 1, 0); ^ command.c:849:12: warning: passing arguments to 'backward' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] backward(number, 1, 0); ^ command.c:861:12: warning: passing arguments to 'forward' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] forward(1, 0, 0); ^ command.c:873:11: warning: passing arguments to 'forward' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] forward(wscroll, 0, 0); ^ command.c:884:12: warning: passing arguments to 'backward' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] backward(wscroll, 0, 0); ^ command.c:913:13: warning: passing arguments to 'jump_back' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] jump_back(number); ^ command.c:925:16: warning: passing arguments to 'jump_percent' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] jump_percent(number); ^ command.c:936:14: warning: passing arguments to 'jump_back' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] jump_back(number); ^ command.c:946:17: warning: passing arguments to 'jump_line_loc' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] jump_line_loc((POSITION)number, jump_sline); ^ command.c:955:9: warning: passing arguments to 'error' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] error("%s", &parg); ^ command.c:970:8: warning: passing arguments to 'quit' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] quit(QUIT_OK); ^ command.c:1056:10: warning: passing arguments to 'putstr' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] putstr(" help"); ^ command.c:1058:8: warning: passing arguments to 'help' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] help(0); ^ command.c:1079:27: warning: passing arguments to 'get_filename' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] if (strcmp(get_filename(curr_ifile), "-") == 0) ^ command.c:1081:10: warning: passing arguments to 'error' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] error("Cannot edit standard input", NULL_PARG); ^ command.c:1086:10: warning: passing arguments to 'error' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] error("Cannot edit file processed with LESSOPEN", ^ command.c:1095:21: warning: passing arguments to 'pr_expand' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] lsystem(pr_expand(editproto, 0)); ^ command.c:1095:11: warning: passing arguments to 'lsystem' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] lsystem(pr_expand(editproto, 0)); ^ command.c:1101:18: warning: passing arguments to 'edit_ifile' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] if (edit_ifile(curr_ifile)) ^ command.c:1102:9: warning: passing arguments to 'quit' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] quit(QUIT_ERROR); ^ command.c:1115:17: warning: passing arguments to 'edit_next' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] if (edit_next(number)) ^ command.c:1118:10: warning: passing arguments to 'quit' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] quit(QUIT_OK); ^ command.c:1120:10: warning: passing arguments to 'error' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] error("No %snext file", &parg); ^ command.c:1130:17: warning: passing arguments to 'edit_prev' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] if (edit_prev(number)) ^ command.c:1133:10: warning: passing arguments to 'error' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] error("No %sprevious file", &parg); ^ command.c:1143:18: warning: passing arguments to 'edit_index' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] if (edit_index(number)) ^ command.c:1144:10: warning: passing arguments to 'error' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] error("No such file", NULL_PARG); ^ command.c:1161:17: warning: passing arguments to 'toggle_option' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] toggle_option(c, "", OPT_NO_TOGGLE); ^ command.c:1194:11: warning: passing arguments to 'setmark' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] setmark(c); ^ command.c:1206:10: warning: passing arguments to 'gomark' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] gomark(c); ^ command.c:1217:15: warning: passing arguments to 'badmark' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] if (badmark(c)) ^ command.c:1244:20: warning: passing arguments to 'cmd_char' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] (void) cmd_char(c); ^ 87 warnings generated. cc -I. -c -O2 -pipe -DHANZI decode.c decode.c:211:16: warning: passing arguments to 'add_fcmd_table' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] add_fcmd_table((char*)cmdtable, sizeof(cmdtable)); ^ decode.c:212:16: warning: passing arguments to 'add_ecmd_table' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] add_ecmd_table((char*)edittable, sizeof(edittable)); ^ decode.c:226:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] add_cmd_table(tlist, buf, len) ^ decode.c:260:8: warning: passing arguments to 'error' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] error("Warning: some commands disabled", NULL_PARG); ^ decode.c:255:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] add_fcmd_table(buf, len) ^ In file included from decode.c:49: In file included from ./less.h:253: ./funcs.h:69:14: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] public void add_fcmd_table (); ^ decode.c:272:8: warning: passing arguments to 'error' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] error("Warning: some edit commands disabled", NULL_PARG); ^ decode.c:267:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] add_ecmd_table(buf, len) ^ In file included from decode.c:49: In file included from ./less.h:253: ./funcs.h:70:14: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] public void add_ecmd_table (); ^ decode.c:279:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] cmd_search(cmd, table, endtable, sp) ^ In file included from decode.c:49: In file included from ./less.h:253: ./funcs.h:71:13: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] public int cmd_search (); ^ decode.c:365:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] cmd_decode(tlist, cmd, sp) ^ decode.c:390:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] fcmd_decode(cmd, sp) ^ In file included from decode.c:49: In file included from ./less.h:253: ./funcs.h:72:13: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] public int fcmd_decode (); ^ decode.c:401:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] ecmd_decode(cmd, sp) ^ In file included from decode.c:49: In file included from ./less.h:253: ./funcs.h:73:13: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] public int ecmd_decode (); ^ decode.c:410:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] gint(sp) ^ decode.c:421:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] old_lesskey(buf, len) ^ decode.c:439:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] new_lesskey(buf, len) ^ decode.c:511:16: warning: passing arguments to 'filesize' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] len = filesize(f); ^ decode.c:488:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] lesskey(filename) ^ In file included from decode.c:49: In file included from ./less.h:253: ./funcs.h:74:13: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] public int lesskey (); ^ decode.c:558:21: warning: passing arguments to 'homefile' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] filename = homefile(LESSKEYFILE); ^ decode.c:564:8: warning: passing arguments to 'error' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] error("Cannot use lesskey file \"%s\"", &parg); ^ decode.c:647:11: warning: passing arguments to 'ungetcc' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] ungetcc(usercmd[--nch]); ^ decode.c:652:11: warning: passing arguments to 'ungetsc' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] ungetsc(s); ^ decode.c:574:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] editchar(c, flags) ^ In file included from decode.c:49: In file included from ./less.h:253: ./funcs.h:76:13: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] public int editchar (); ^ 28 warnings generated. cc -I. -c -O2 -pipe -DHANZI edit.c edit.c:68:24: warning: passing arguments to 'skipsp' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] tlist->string = skipsp(str); ^ edit.c:62:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] init_textlist(tlist, str) ^ In file included from edit.c:28: In file included from ./less.h:253: ./funcs.h:77:14: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] public void init_textlist (); ^ edit.c:78:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] forw_textlist(tlist, prev) ^ In file included from edit.c:28: In file included from ./less.h:253: ./funcs.h:78:16: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] public char * forw_textlist (); ^ edit.c:102:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] back_textlist(tlist, prev) ^ In file included from edit.c:28: In file included from ./less.h:253: ./funcs.h:79:16: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] public char * back_textlist (); ^ edit.c:141:12: warning: passing arguments to 'get_scrpos' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] get_scrpos(&scrpos); ^ edit.c:144:12: warning: passing arguments to 'store_pos' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] store_pos(curr_ifile, &scrpos); ^ edit.c:157:47: warning: passing arguments to 'get_filename' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] close_altfile(curr_altfilename, get_filename(curr_ifile), ^ edit.c:157:16: warning: passing arguments to 'close_altfile' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] close_altfile(curr_altfilename, get_filename(curr_ifile), ^ edit.c:175:21: warning: passing arguments to 'edit_ifile' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] return (edit_ifile(NULL_IFILE)); ^ edit.c:176:30: warning: passing arguments to 'get_ifile' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] return (edit_ifile(get_ifile(filename, curr_ifile))); ^ edit.c:176:20: warning: passing arguments to 'edit_ifile' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] return (edit_ifile(get_ifile(filename, curr_ifile))); ^ edit.c:171:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] edit(filename) ^ In file included from edit.c:28: In file included from ./less.h:253: ./funcs.h:80:13: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] public int edit (); ^ edit.c:233:25: warning: passing arguments to 'get_filename' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] filename = get_filename(ifile); ^ edit.c:238:29: warning: passing arguments to 'open_altfile' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] alt_filename = open_altfile(filename, &f, &alt_pipe); ^ edit.c:260:38: warning: passing arguments to 'bad_file' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] } else if ((parg.p_string = bad_file(open_filename)) != NULL) ^ edit.c:265:8: warning: passing arguments to 'error' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] error("%s", &parg); ^ edit.c:270:17: warning: passing arguments to 'close_altfile' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] close_altfile(alt_filename, filename, alt_pipe); ^ edit.c:273:12: warning: passing arguments to 'del_ifile' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] del_ifile(ifile); ^ edit.c:284:32: warning: passing arguments to 'errno_message' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] parg.p_string = errno_message(filename); ^ edit.c:285:8: warning: passing arguments to 'error' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] error("%s", &parg); ^ edit.c:288:35: warning: passing arguments to 'opened' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] } else if (!force_open && !opened(ifile) && bin_file(f)) ^ edit.c:288:54: warning: passing arguments to 'bin_file' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] } else if (!force_open && !opened(ifile) && bin_file(f)) ^ edit.c:294:17: warning: passing arguments to 'query' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] answer = query("\"%s\" may be a binary file. See it anyway? ", ^ edit.c:312:10: warning: passing arguments to 'set_open' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] set_open(curr_ifile); /* File has been opened */ ^ edit.c:313:9: warning: passing arguments to 'get_pos' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] get_pos(curr_ifile, &initial_scrpos); ^ edit.c:315:9: warning: passing arguments to 'ch_init' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] ch_init(f, chflags); ^ edit.c:318:14: warning: passing arguments to 'use_logfile' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] use_logfile(namelogfile); ^ edit.c:322:10: warning: passing arguments to 'ungetsc' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] ungetsc(every_first_cmd); ^ edit.c:351:9: warning: passing arguments to 'error' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] error("%s", &parg); ^ edit.c:184:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] edit_ifile(ifile) ^ In file included from edit.c:28: In file included from ./less.h:253: ./funcs.h:81:13: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] public int edit_ifile (); ^ edit.c:387:19: warning: passing arguments to 'glob' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] gfilelist = glob(filename); ^ edit.c:393:33: warning: passing arguments to 'get_filename' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] good_filename = get_filename(curr_ifile); ^ edit.c:402:15: warning: passing arguments to 'get_ifile' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] if (get_ifile(good_filename, curr_ifile) == curr_ifile) ^ edit.c:408:7: warning: passing arguments to 'quit' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] quit(QUIT_ERROR); ^ edit.c:363:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] edit_list(filelist) ^ In file included from edit.c:28: In file included from ./less.h:253: ./funcs.h:82:13: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] public int edit_list (); ^ edit.c:419:19: warning: passing arguments to 'edit_next' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] return (edit_next(1)); ^ edit.c:429:19: warning: passing arguments to 'edit_prev' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] return (edit_prev(1)); ^ edit.c:449:20: warning: passing arguments to 'next_ifile' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] next = next_ifile(h); ^ edit.c:437:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] edit_next(n) ^ In file included from edit.c:28: In file included from ./less.h:253: ./funcs.h:85:13: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] public int edit_next (); ^ edit.c:486:20: warning: passing arguments to 'prev_ifile' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] next = prev_ifile(h); ^ edit.c:474:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] edit_prev(n) ^ In file included from edit.c:28: In file included from ./less.h:253: ./funcs.h:86:13: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] public int edit_prev (); ^ edit.c:519:22: warning: passing arguments to 'next_ifile' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] if ((h = next_ifile(h)) == NULL_IFILE) ^ edit.c:526:20: warning: passing arguments to 'get_index' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] } while (get_index(h) != n); ^ edit.c:511:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] edit_index(n) ^ In file included from edit.c:28: In file included from ./less.h:253: ./funcs.h:87:13: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] public int edit_index (); ^ edit.c:542:8: warning: passing arguments to 'error' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] error("Missing filename (\"less -\\?\" for help)", NULL_PARG); ^ edit.c:544:7: warning: passing arguments to 'quit' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] quit(QUIT_OK); ^ edit.c:559:9: warning: passing arguments to 'putchr' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] putchr(c); ^ edit.c:607:17: warning: passing arguments to 'query' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] answer = query("Warning: \"%s\" exists; Overwrite, Append or Don't log? ", &parg); ^ edit.c:636:7: warning: passing arguments to 'quit' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] quit(QUIT_OK); ^ edit.c:642:17: warning: passing arguments to 'query' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] answer = query("Overwrite, Append, or Don't log? (Type \"O\", \"A\", \"D\" or \"q\") ", NULL_PARG); ^ edit.c:652:8: warning: passing arguments to 'error' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] error("Cannot write to \"%s\"", &parg); ^ edit.c:571:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] use_logfile(filename) ^ In file included from edit.c:28: In file included from ./less.h:253: ./funcs.h:90:14: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] public void use_logfile (); ^ 62 warnings generated. cc -c -DHELPFILE=\"/usr/local/share/doc/cless/cless.gb\" -I. -O2 -pipe -DHANZI ./filename.c ./filename.c:47:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] dirfile(dirname, filename) ^ ./filename.c:87:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] homefile(filename) ^ In file included from ./filename.c:33: In file included from ./less.h:253: ./funcs.h:91:16: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] public char * homefile (); ^ ./filename.c:128:15: warning: passing arguments to 'save' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] return (save(helpfile)); ^ ./filename.c:132:14: warning: passing arguments to 'save' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] return (save(HELPFILE)); ^ ./filename.c:162:17: warning: passing arguments to 'save' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] return (save(s)); ^ ./filename.c:164:28: warning: passing arguments to 'get_filename' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] n += strlen(get_filename(curr_ifile)); ^ ./filename.c:170:17: warning: passing arguments to 'save' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] return (save(s)); ^ ./filename.c:172:28: warning: passing arguments to 'get_filename' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] n += strlen(get_filename(old_ifile)); ^ ./filename.c:180:22: warning: passing arguments to 'ecalloc' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] e = (char *) ecalloc(n+1, sizeof(char)); ^ ./filename.c:191:27: warning: passing arguments to 'get_filename' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] strcpy(to, get_filename(curr_ifile)); ^ ./filename.c:195:27: warning: passing arguments to 'get_filename' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] strcpy(to, get_filename(old_ifile)); ^ ./filename.c:142:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] fexpand(s) ^ In file included from ./filename.c:33: In file included from ./less.h:253: ./funcs.h:93:16: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] public char * fexpand (); ^ ./filename.c:239:25: warning: passing arguments to 'ecalloc' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] fpat = (char *) ecalloc(strlen(s)+2, sizeof(char)); ^ ./filename.c:242:10: warning: passing arguments to 'glob' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] s = glob(fpat); ^ ./filename.c:214:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] fcomplete(s) ^ In file included from ./filename.c:33: In file included from ./less.h:253: ./funcs.h:94:16: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] public char * fcomplete (); ^ ./filename.c:268:15: warning: passing arguments to 'seekable' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] if (!seekable(f)) ^ ./filename.c:274:18: warning: passing arguments to 'binary_char' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] if (binary_char(data[i])) ^ ./filename.c:261:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] bin_file(f) ^ In file included from ./filename.c:33: In file included from ./less.h:253: ./funcs.h:95:13: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] public int bin_file (); ^ ./filename.c:283:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] seek_filesize(f) ^ ./filename.c:296:7: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C2x, conflicting with a previous declaration [-Wdeprecated-non-prototype] FILE *popen(); ^ /usr/include/stdio.h:316:7: note: conflicting prototype is here FILE *popen(const char *, const char *); ^ ./filename.c:316:24: warning: passing arguments to 'ecalloc' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] buf = (char *) ecalloc(len, sizeof(char)); ^ ./filename.c:329:24: warning: passing arguments to 'ecalloc' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] p = (char *) ecalloc(len, sizeof(char)); ^ ./filename.c:303:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] readfd(fd) ^ ./filename.c:360:25: warning: passing arguments to 'ecalloc' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] scmd = (char *) ecalloc(len, sizeof(char)); ^ ./filename.c:369:27: warning: passing arguments to 'ecalloc' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] scmd2 = (char *) ecalloc(strlen(shell) + strlen(scmd) + 7, ^ ./filename.c:346:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] shellcmd(cmd, s1, s2) ^ ./filename.c:385:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] glob(filename) ^ In file included from ./filename.c:33: In file included from ./less.h:253: ./funcs.h:102:16: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] public char * glob (); ^ ./filename.c:456:14: warning: passing arguments to 'ch_ungetchar' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] ch_ungetchar(-1); ^ ./filename.c:497:15: warning: passing arguments to 'ch_ungetchar' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] ch_ungetchar(c); ^ ./filename.c:500:15: warning: passing arguments to 'save' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] return (save("-")); ^ ./filename.c:446:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] open_altfile(filename, pf, pfd) ^ In file included from ./filename.c:33: In file included from ./less.h:253: ./funcs.h:103:16: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] public char * open_altfile (); ^ ./filename.c:520:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] close_altfile(altfilename, filename, pipefd) ^ In file included from ./filename.c:33: In file included from ./less.h:253: ./funcs.h:104:14: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] public void close_altfile (); ^ ./filename.c:647:24: warning: passing arguments to 'errno_message' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] return (errno_message(filename)); ^ ./filename.c:655:23: warning: passing arguments to 'ecalloc' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] m = (char *) ecalloc(strlen(filename) + sizeof(is_dir), ^ ./filename.c:664:23: warning: passing arguments to 'ecalloc' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] m = (char *) ecalloc(strlen(filename) + sizeof(not_reg), ^ ./filename.c:640:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] bad_file(filename) ^ In file included from ./filename.c:33: In file included from ./less.h:253: ./funcs.h:107:16: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] public char * bad_file (); ^ ./filename.c:679:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] filesize(f) ^ In file included from ./filename.c:33: In file included from ./less.h:253: ./funcs.h:108:18: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] public POSITION filesize (); ^ 46 warnings generated. cc -I. -c -O2 -pipe -DHANZI forwback.c forwback.c:83:16: warning: passing arguments to 'position' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] pos = position(BOTTOM_PLUS_ONE); ^ forwback.c:158:22: warning: passing arguments to 'position' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] if (pos != position(BOTTOM_PLUS_ONE) || empty_screen()) ^ forwback.c:166:16: warning: passing arguments to 'add_forw_pos' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] add_forw_pos(pos); ^ forwback.c:175:11: warning: passing arguments to 'putstr' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] putstr("...skipping...\n"); ^ forwback.c:200:19: warning: passing arguments to 'forw_line' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] pos = forw_line(pos); ^ forwback.c:208:27: warning: passing arguments to 'position' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] if (!force && position(TOP) != NULL_POSITION) ^ forwback.c:216:15: warning: passing arguments to 'add_forw_pos' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] add_forw_pos(pos); ^ forwback.c:255:17: warning: passing arguments to 'currline' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] (void) currline(BOTTOM); ^ forwback.c:113:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] forw(n, pos, force, only_last, nblank) ^ In file included from forwback.c:33: In file included from ./less.h:253: ./funcs.h:109:14: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] public void forw (); ^ forwback.c:279:18: warning: passing arguments to 'back_line' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] pos = back_line(pos); ^ forwback.c:292:15: warning: passing arguments to 'add_back_pos' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] add_back_pos(pos); ^ forwback.c:307:17: warning: passing arguments to 'currline' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] (void) currline(BOTTOM); ^ forwback.c:262:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] back(n, pos, force, only_last) ^ In file included from forwback.c:33: In file included from ./less.h:253: ./funcs.h:110:14: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] public void back (); ^ forwback.c:328:16: warning: passing arguments to 'edit_next' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] if (edit_next(1)) ^ forwback.c:329:8: warning: passing arguments to 'quit' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] quit(QUIT_OK); ^ forwback.c:333:16: warning: passing arguments to 'position' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] pos = position(BOTTOM_PLUS_ONE); ^ forwback.c:334:52: warning: passing arguments to 'empty_lines' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] if (pos == NULL_POSITION && (!force || empty_lines(2, sc_height-1))) ^ forwback.c:349:22: warning: passing arguments to 'position' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] back(1, position(TOP), 1, 0); ^ forwback.c:350:20: warning: passing arguments to 'position' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] pos = position(BOTTOM_PLUS_ONE); ^ forwback.c:315:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] forward(n, force, only_last) ^ In file included from forwback.c:33: In file included from ./less.h:253: ./funcs.h:111:14: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] public void forward (); ^ forwback.c:375:16: warning: passing arguments to 'position' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] pos = position(TOP); ^ forwback.c:376:49: warning: passing arguments to 'position' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] if (pos == NULL_POSITION && (!force || position(BOTTOM) == 0)) ^ forwback.c:368:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] backward(n, force, only_last) ^ In file included from forwback.c:33: In file included from ./less.h:253: ./funcs.h:112:14: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] public void backward (); ^ 27 warnings generated. cc -I. -c -O2 -pipe -DHANZI help.c help.c:51:8: warning: passing arguments to 'error' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] error("Cannot find help file", NULL_PARG); ^ help.c:70:24: warning: passing arguments to 'ecalloc' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] cmd = (char *) ecalloc(strlen(helpfile) + strlen(progname) + 150, ^ help.c:83:9: warning: passing arguments to 'lsystem' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] lsystem(cmd); ^ help.c:85:8: warning: passing arguments to 'error' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] error("End of help", NULL_PARG); ^ help.c:42:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] help(nomsg) ^ In file included from help.c:37: In file included from ./less.h:253: ./funcs.h:114:14: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] public void help (); ^ 6 warnings generated. cc -I. -c -O2 -pipe -DHANZI ifile.c ifile.c:67:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] incr_index(p, incr) ^ ifile.c:76:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] link_ifile(p, prev) ^ ifile.c:99:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] unlink_ifile(p) ^ ifile.c:124:30: warning: passing arguments to 'ecalloc' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] p = (struct ifile *) ecalloc(1, sizeof(struct ifile)); ^ ifile.c:125:22: warning: passing arguments to 'save' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] p->h_filename = save(filename); ^ ifile.c:115:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] new_ifile(filename, prev) ^ ifile.c:148:28: warning: passing arguments to 'getoff_ifile' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] curr_ifile = getoff_ifile(curr_ifile); ^ ifile.c:136:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] del_ifile(h) ^ In file included from ifile.c:39: In file included from ./less.h:253: ./funcs.h:115:14: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] public void del_ifile (); ^ ifile.c:159:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] next_ifile(h) ^ In file included from ifile.c:39: In file included from ./less.h:253: ./funcs.h:116:15: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] public IFILE next_ifile (); ^ ifile.c:174:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] prev_ifile(h) ^ In file included from ifile.c:39: In file included from ./less.h:253: ./funcs.h:117:15: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] public IFILE prev_ifile (); ^ ifile.c:189:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] getoff_ifile(ifile) ^ In file included from ifile.c:39: In file included from ./less.h:253: ./funcs.h:118:15: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] public IFILE getoff_ifile (); ^ ifile.c:214:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] find_ifile(filename) ^ ifile.c:231:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] get_ifile(filename, prev) ^ In file included from ifile.c:39: In file included from ./less.h:253: ./funcs.h:120:15: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] public IFILE get_ifile (); ^ ifile.c:246:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] get_filename(ifile) ^ In file included from ifile.c:39: In file included from ./less.h:253: ./funcs.h:121:16: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] public char * get_filename (); ^ ifile.c:258:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] get_index(ifile) ^ In file included from ifile.c:39: In file included from ./less.h:253: ./funcs.h:122:13: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] public int get_index (); ^ ifile.c:268:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] store_pos(ifile, scrpos) ^ In file included from ifile.c:39: In file included from ./less.h:253: ./funcs.h:123:14: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] public void store_pos (); ^ ifile.c:280:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] get_pos(ifile, scrpos) ^ In file included from ifile.c:39: In file included from ./less.h:253: ./funcs.h:124:14: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] public void get_pos (); ^ ifile.c:291:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] set_open(ifile) ^ In file included from ifile.c:39: In file included from ./less.h:253: ./funcs.h:125:14: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] public void set_open (); ^ ifile.c:301:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] opened(ifile) ^ In file included from ifile.c:39: In file included from ./less.h:253: ./funcs.h:126:13: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] public int opened (); ^ ifile.c:308:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] get_filestate(ifile) ^ In file included from ifile.c:39: In file included from ./less.h:253: ./funcs.h:127:16: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] public void * get_filestate (); ^ ifile.c:315:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] set_filestate(ifile, filestate) ^ In file included from ifile.c:39: In file included from ./less.h:253: ./funcs.h:128:14: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] public void set_filestate (); ^ 34 warnings generated. cc -I. -c -O2 -pipe -DHANZI input.c input.c:71:14: warning: passing arguments to 'prep_hilite' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] prep_hilite(curr_pos, curr_pos + 3*size_linebuf); ^ input.c:73:13: warning: passing arguments to 'ch_seek' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] if (ch_seek(curr_pos)) ^ input.c:80:10: warning: passing arguments to 'plinenum' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] plinenum(curr_pos); ^ input.c:81:16: warning: passing arguments to 'ch_seek' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] (void) ch_seek(curr_pos); ^ input.c:111:14: warning: passing arguments to 'pappend' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] if (pappend(c, ch_tell()-1)) ^ input.c:135:7: warning: passing arguments to 'pdone' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] pdone(endline); ^ input.c:56:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] forw_line(curr_pos) ^ In file included from input.c:38: In file included from ./less.h:253: ./funcs.h:130:18: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] public POSITION forw_line (); ^ input.c:180:14: warning: passing arguments to 'prep_hilite' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] prep_hilite((curr_pos < 3*size_linebuf) ? ^ input.c:183:13: warning: passing arguments to 'ch_seek' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] if (ch_seek(curr_pos-1)) ^ input.c:262:13: warning: passing arguments to 'ch_seek' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] if (ch_seek(new_pos)) ^ input.c:271:10: warning: passing arguments to 'plinenum' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] plinenum(new_pos); ^ input.c:272:16: warning: passing arguments to 'ch_seek' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] (void) ch_seek(new_pos); ^ input.c:288:14: warning: passing arguments to 'pappend' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] if (pappend(c, ch_tell()-1)) ^ input.c:300:9: warning: passing arguments to 'pdone' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] pdone(0); ^ input.c:307:7: warning: passing arguments to 'pdone' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] pdone(endline); ^ input.c:166:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] back_line(curr_pos) ^ In file included from input.c:38: In file included from ./less.h:253: ./funcs.h:131:18: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] public POSITION back_line (); ^ 18 warnings generated. cc -I. -c -O2 -pipe -DHANZI jump.c jump.c:51:8: warning: passing arguments to 'error' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] error("Cannot seek to end of file", NULL_PARG); ^ jump.c:59:17: warning: passing arguments to 'back_line' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] pos = back_line(ch_tell()); ^ jump.c:61:11: warning: passing arguments to 'jump_loc' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] jump_loc((POSITION)0, sc_height-1); ^ jump.c:63:11: warning: passing arguments to 'jump_loc' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] jump_loc(pos, sc_height-1); ^ jump.c:82:16: warning: passing arguments to 'find_pos' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] pos = find_pos(n); ^ jump.c:83:37: warning: passing arguments to 'ch_seek' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] if (pos != NULL_POSITION && ch_seek(pos) == 0) ^ jump.c:85:11: warning: passing arguments to 'jump_loc' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] jump_loc(pos, jump_sline); ^ jump.c:88:11: warning: passing arguments to 'jump_loc' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] jump_loc(ch_tell(), jump_sline); ^ jump.c:89:8: warning: passing arguments to 'error' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] error("Cannot seek to beginning of file", NULL_PARG); ^ jump.c:93:8: warning: passing arguments to 'error' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] error("Cannot seek to line number %d", &parg); ^ jump.c:70:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] jump_back(n) ^ In file included from jump.c:32: In file included from ./less.h:253: ./funcs.h:133:14: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] public void jump_back (); ^ jump.c:108:12: warning: passing arguments to 'get_scrpos' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] get_scrpos(&scrpos); ^ jump.c:110:10: warning: passing arguments to 'jump_loc' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] jump_loc(scrpos.pos, scrpos.ln); ^ jump.c:128:9: warning: passing arguments to 'ierror' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] ierror("Determining length of file", NULL_PARG); ^ jump.c:133:8: warning: passing arguments to 'error' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] error("Don't know length of file", NULL_PARG); ^ jump.c:143:15: warning: passing arguments to 'jump_line_loc' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] jump_line_loc(pos, jump_sline); ^ jump.c:117:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] jump_percent(percent) ^ In file included from jump.c:32: In file included from ./less.h:253: ./funcs.h:135:14: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] public void jump_percent (); ^ jump.c:158:13: warning: passing arguments to 'ch_seek' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] if (ch_seek(pos) == 0) ^ jump.c:169:10: warning: passing arguments to 'jump_loc' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] jump_loc(pos, sline); ^ jump.c:152:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] jump_line_loc(pos, sline) ^ In file included from jump.c:32: In file included from ./less.h:253: ./funcs.h:136:14: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] public void jump_line_loc (); ^ jump.c:189:18: warning: passing arguments to 'adjsline' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] sline = adjsline(sline); ^ jump.c:191:23: warning: passing arguments to 'onscreen' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] if ((nline = onscreen(pos)) >= 0) ^ jump.c:199:24: warning: passing arguments to 'position' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] forw(nline, position(BOTTOM_PLUS_ONE), 1, 0, 0); ^ jump.c:199:8: warning: passing arguments to 'forw' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] forw(nline, position(BOTTOM_PLUS_ONE), 1, 0, 0); ^ jump.c:201:25: warning: passing arguments to 'position' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] back(-nline, position(TOP), 1, 0); ^ jump.c:201:8: warning: passing arguments to 'back' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] back(-nline, position(TOP), 1, 0); ^ jump.c:209:13: warning: passing arguments to 'ch_seek' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] if (ch_seek(pos)) ^ jump.c:211:8: warning: passing arguments to 'error' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] error("Cannot seek to that file position", NULL_PARG); ^ jump.c:219:17: warning: passing arguments to 'position' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] tpos = position(TOP); ^ jump.c:220:17: warning: passing arguments to 'position' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] bpos = position(BOTTOM_PLUS_ONE); ^ jump.c:238:9: warning: passing arguments to 'forw' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] forw(sc_height-sline+nline-1, bpos, 1, 0, 0); ^ jump.c:241:19: warning: passing arguments to 'back_line' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] pos = back_line(pos); ^ jump.c:257:7: warning: passing arguments to 'forw' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] forw(sc_height-1, pos, 1, 0, sline-nline); ^ jump.c:268:19: warning: passing arguments to 'forw_line' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] pos = forw_line(pos); ^ jump.c:285:9: warning: passing arguments to 'back' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] back(nline+1, tpos, 1, 0); ^ jump.c:292:15: warning: passing arguments to 'add_back_pos' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] add_back_pos(pos); ^ jump.c:293:7: warning: passing arguments to 'back' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] back(sc_height-1, pos, 1, 0); ^ jump.c:178:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] jump_loc(pos, sline) ^ In file included from jump.c:32: In file included from ./less.h:253: ./funcs.h:137:14: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] public void jump_loc (); ^ 42 warnings generated. cc -I. -c -O2 -pipe -DHANZI line.c line.c:108:20: warning: passing arguments to 'find_linenum' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] lno = find_linenum(pos); ^ line.c:88:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] plinenum(pos) ^ In file included from line.c:34: In file included from ./less.h:253: ./funcs.h:139:14: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] public void plinenum (); ^ line.c:137:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] attr_swidth(a) ^ line.c:155:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] attr_ewidth(a) ^ line.c:187:18: warning: passing arguments to 'control_char' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] if (control_char(c)) ^ line.c:175:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] pwidth(c, a) ^ line.c:229:16: warning: passing arguments to 'is_hilited' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] if (is_hilited(pos, pos+1, 0)) ^ line.c:221:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] storec(c, a, pos) ^ line.c:300:16: warning: passing arguments to 'do_append' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] if (do_append(pendc, pendpos)) ^ line.c:321:19: warning: passing arguments to 'do_append' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] return (do_append(c, pos)); ^ line.c:294:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] pappend(c, pos) ^ In file included from line.c:34: In file included from ./less.h:253: ./funcs.h:140:13: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] public int pappend (); ^ line.c:351:24: warning: passing arguments to 'control_char' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] else if (control_char(c)) ^ line.c:382:25: warning: passing arguments to 'control_char' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] } else if (control_char(c)) ^ line.c:396:14: warning: passing arguments to 'prchar' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] s = prchar(c); ^ line.c:325:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] do_append(c, pos) ^ line.c:52:12: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] static int do_append(); ^ line.c:438:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] pdone(endline) ^ In file included from line.c:34: In file included from ./less.h:253: ./funcs.h:141:14: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] public void pdone (); ^ line.c:469:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] gline(i, ap) ^ In file included from line.c:34: In file included from ./less.h:253: ./funcs.h:142:13: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] public int gline (); ^ line.c:514:42: warning: passing arguments to 'ch_seek' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] if (curr_pos == NULL_POSITION || ch_seek(curr_pos) || ^ line.c:506:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] forw_raw_line(curr_pos, linep) ^ In file included from line.c:34: In file included from ./less.h:253: ./funcs.h:144:18: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] public POSITION forw_raw_line (); ^ line.c:561:10: warning: passing arguments to 'ch_seek' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] ch_seek(curr_pos-1)) ^ line.c:552:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] back_raw_line(curr_pos, linep) ^ In file included from line.c:34: In file included from ./less.h:253: ./funcs.h:145:18: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] public POSITION back_raw_line (); ^ 28 warnings generated. cc -I. -c -O2 -pipe -DHANZI linenum.c linenum.c:123:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] calcgap(p) ^ linenum.c:143:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] add_lnum(lno, pos) ^ In file included from linenum.c:52: In file included from ./less.h:253: ./funcs.h:147:14: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] public void add_lnum (); ^ linenum.c:233:8: warning: passing arguments to 'ierror' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] ierror("Calculating line numbers", NULL_PARG); ^ linenum.c:327:14: warning: passing arguments to 'ch_seek' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] if (ch_seek(p->pos)) ^ linenum.c:335:24: warning: passing arguments to 'forw_raw_line' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] cpos = forw_raw_line(cpos, (char **)NULL); ^ linenum.c:356:14: warning: passing arguments to 'ch_seek' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] if (ch_seek(p->pos)) ^ linenum.c:364:24: warning: passing arguments to 'back_raw_line' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] cpos = back_raw_line(cpos, (char **)NULL); ^ linenum.c:274:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] find_linenum(pos) ^ In file included from linenum.c:52: In file included from ./less.h:253: ./funcs.h:148:13: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] public int find_linenum (); ^ linenum.c:413:14: warning: passing arguments to 'ch_seek' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] if (ch_seek(p->pos)) ^ linenum.c:420:24: warning: passing arguments to 'forw_raw_line' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] cpos = forw_raw_line(cpos, (char **)NULL); ^ linenum.c:429:14: warning: passing arguments to 'ch_seek' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] if (ch_seek(p->pos)) ^ linenum.c:436:24: warning: passing arguments to 'back_raw_line' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] cpos = back_raw_line(cpos, (char **)NULL); ^ linenum.c:384:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] find_pos(lno) ^ In file included from linenum.c:52: In file included from ./less.h:253: ./funcs.h:149:18: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] public POSITION find_pos (); ^ linenum.c:461:16: warning: passing arguments to 'position' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] pos = position(where); ^ linenum.c:464:17: warning: passing arguments to 'position' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] pos = position(++where); ^ linenum.c:454:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] currline(where) ^ In file included from linenum.c:52: In file included from ./less.h:253: ./funcs.h:150:13: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] public int currline (); ^ 20 warnings generated. cc -I. -c -O2 -pipe -DHANZI lsystem.c lsystem.c:72:9: warning: passing arguments to 'putstr' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] putstr("!"); ^ lsystem.c:73:9: warning: passing arguments to 'putstr' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] putstr(cmd); ^ lsystem.c:74:9: warning: passing arguments to 'putstr' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] putstr("\n"); ^ lsystem.c:81:19: warning: passing arguments to 'edit_ifile' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] (void) edit_ifile(NULL_IFILE); ^ lsystem.c:88:10: warning: passing arguments to 'raw_mode' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] raw_mode(0); ^ lsystem.c:93:14: warning: passing arguments to 'init_signals' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] init_signals(0); ^ lsystem.c:116:12: warning: passing arguments to 'save' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] p = save(shell); ^ lsystem.c:119:24: warning: passing arguments to 'ecalloc' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] p = (char *) ecalloc(strlen(shell) + strlen(cmd) + 7, ^ lsystem.c:127:12: warning: passing arguments to 'save' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] p = save("sh"); ^ lsystem.c:129:12: warning: passing arguments to 'save' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] p = save(cmd); ^ lsystem.c:149:14: warning: passing arguments to 'init_signals' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] init_signals(1); ^ lsystem.c:150:10: warning: passing arguments to 'raw_mode' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] raw_mode(1); ^ lsystem.c:157:16: warning: passing arguments to 'edit_ifile' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] if (edit_ifile(save_ifile)) ^ lsystem.c:158:7: warning: passing arguments to 'quit' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] quit(QUIT_ERROR); ^ lsystem.c:167:7: warning: passing arguments to 'winch' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] winch(0); ^ lsystem.c:52:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] lsystem(cmd) ^ In file included from lsystem.c:34: In file included from ./less.h:253: ./funcs.h:151:14: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] public void lsystem (); ^ lsystem.c:197:16: warning: passing arguments to 'markpos' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] mpos = markpos(c); ^ lsystem.c:200:17: warning: passing arguments to 'position' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] tpos = position(TOP); ^ lsystem.c:203:17: warning: passing arguments to 'position' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] bpos = position(BOTTOM); ^ lsystem.c:206:21: warning: passing arguments to 'pipe_data' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] return (pipe_data(cmd, tpos, bpos)); ^ lsystem.c:208:21: warning: passing arguments to 'pipe_data' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] return (pipe_data(cmd, mpos, tpos)); ^ lsystem.c:210:21: warning: passing arguments to 'pipe_data' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] return (pipe_data(cmd, tpos, bpos)); ^ lsystem.c:212:21: warning: passing arguments to 'pipe_data' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] return (pipe_data(cmd, tpos, mpos)); ^ lsystem.c:186:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] pipe_mark(c, cmd) ^ In file included from lsystem.c:34: In file included from ./less.h:253: ./funcs.h:152:13: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] public int pipe_mark (); ^ lsystem.c:227:15: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C2x, conflicting with a previous declaration [-Wdeprecated-non-prototype] extern FILE *popen(); ^ /usr/include/stdio.h:316:7: note: conflicting prototype is here FILE *popen(const char *, const char *); ^ lsystem.c:235:13: warning: passing arguments to 'ch_seek' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] if (ch_seek(spos) != 0) ^ lsystem.c:237:8: warning: passing arguments to 'error' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] error("Cannot seek to start position", NULL_PARG); ^ lsystem.c:243:8: warning: passing arguments to 'error' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] error("Cannot create pipe", NULL_PARG); ^ lsystem.c:247:8: warning: passing arguments to 'putstr' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] putstr("!"); ^ lsystem.c:248:8: warning: passing arguments to 'putstr' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] putstr(cmd); ^ lsystem.c:249:8: warning: passing arguments to 'putstr' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] putstr("\n"); ^ lsystem.c:253:10: warning: passing arguments to 'raw_mode' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] raw_mode(0); ^ lsystem.c:254:14: warning: passing arguments to 'init_signals' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] init_signals(0); ^ lsystem.c:289:14: warning: passing arguments to 'init_signals' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] init_signals(1); ^ lsystem.c:290:10: warning: passing arguments to 'raw_mode' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] raw_mode(1); ^ lsystem.c:295:7: warning: passing arguments to 'winch' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] winch(0); ^ lsystem.c:220:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] pipe_data(cmd, spos, epos) ^ In file included from lsystem.c:34: In file included from ./less.h:253: ./funcs.h:153:13: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] public int pipe_data (); ^ 40 warnings generated. cc -I. -c -O2 -pipe -DHANZI mark.c mark.c:81:7: warning: passing arguments to 'error' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] error("Invalid mark letter", NULL_PARG); ^ mark.c:72:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] getumark(c) ^ mark.c:114:9: warning: passing arguments to 'error' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] error("Cannot seek to end of file", NULL_PARG); ^ mark.c:146:9: warning: passing arguments to 'error' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] error("Mark not set", NULL_PARG); ^ mark.c:91:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] getmark(c) ^ mark.c:158:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] badmark(c) ^ In file included from mark.c:28: In file included from ./less.h:253: ./funcs.h:155:13: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] public int badmark (); ^ mark.c:177:12: warning: passing arguments to 'get_scrpos' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] get_scrpos(&scrpos); ^ mark.c:168:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] setmark(c) ^ In file included from mark.c:28: In file included from ./less.h:253: ./funcs.h:156:14: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] public void setmark (); ^ mark.c:190:12: warning: passing arguments to 'get_scrpos' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] get_scrpos(&scrpos); ^ mark.c:234:17: warning: passing arguments to 'edit_ifile' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] if (edit_ifile(m->m_ifile)) ^ mark.c:238:10: warning: passing arguments to 'jump_loc' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] jump_loc(scrpos.pos, scrpos.ln); ^ mark.c:201:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] gomark(c) ^ In file included from mark.c:28: In file included from ./less.h:253: ./funcs.h:158:14: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] public void gomark (); ^ mark.c:260:8: warning: passing arguments to 'error' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] error("Mark not in current file", NULL_PARG); ^ mark.c:249:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] markpos(c) ^ In file included from mark.c:28: In file included from ./less.h:253: ./funcs.h:159:18: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] public POSITION markpos (); ^ 18 warnings generated. cc -I. -c -O2 -pipe -DHANZI optfunc.c optfunc.c:97:9: warning: passing arguments to 'error' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] error("Input is not a pipe", NULL_PARG); ^ optfunc.c:102:9: warning: passing arguments to 'error' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] error("Log file is already in use", NULL_PARG); ^ optfunc.c:105:13: warning: passing arguments to 'skipsp' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] s = skipsp(s); ^ optfunc.c:106:21: warning: passing arguments to 'glob' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] namelogfile = glob(s); ^ optfunc.c:107:14: warning: passing arguments to 'use_logfile' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] use_logfile(namelogfile); ^ optfunc.c:112:9: warning: passing arguments to 'error' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] error("No log file", NULL_PARG); ^ optfunc.c:116:9: warning: passing arguments to 'error' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] error("Log file \"%s\"", &parg); ^ optfunc.c:83:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] opt_o(type, s) ^ In file included from optfunc.c:44: In file included from ./less.h:253: ./funcs.h:160:14: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] public void opt_o (); ^ optfunc.c:126:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] opt__O(type, s) ^ In file included from optfunc.c:44: In file included from ./less.h:253: ./funcs.h:161:14: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] public void opt__O (); ^ optfunc.c:151:13: warning: passing arguments to 'getnum' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] n = getnum(&t, 'l', &err); ^ optfunc.c:154:9: warning: passing arguments to 'error' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] error("Line number is required after -l", NULL_PARG); ^ optfunc.c:158:10: warning: passing arguments to 'ungetsc' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] ungetsc(s); ^ optfunc.c:139:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] opt_l(type, s) ^ In file included from optfunc.c:44: In file included from ./less.h:253: ./funcs.h:162:14: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] public void opt_l (); ^ optfunc.c:174:14: warning: passing arguments to 'lesskey' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] if (lesskey(s)) ^ optfunc.c:177:9: warning: passing arguments to 'error' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] error("Cannot use lesskey file \"%s\"", &parg); ^ optfunc.c:165:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] opt_k(type, s) ^ In file included from optfunc.c:44: In file included from ./less.h:253: ./funcs.h:163:14: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] public void opt_k (); ^ optfunc.c:203:17: warning: passing arguments to 'skipsp' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] findtag(skipsp(s)); ^ optfunc.c:203:10: warning: passing arguments to 'findtag' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] findtag(skipsp(s)); ^ optfunc.c:207:11: warning: passing arguments to 'edit' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] if (edit(tagfile)) ^ optfunc.c:211:18: warning: passing arguments to 'edit_ifile' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] if (edit_ifile(save_ifile)) ^ optfunc.c:212:9: warning: passing arguments to 'quit' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] quit(QUIT_ERROR); ^ optfunc.c:215:11: warning: passing arguments to 'jump_loc' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] jump_loc(pos, jump_sline); ^ optfunc.c:189:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] opt_t(type, s) ^ In file included from optfunc.c:44: In file included from ./less.h:253: ./funcs.h:164:14: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] public void opt_t (); ^ optfunc.c:236:13: warning: passing arguments to 'skipsp' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] s = skipsp(s); ^ optfunc.c:237:14: warning: passing arguments to 'glob' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] tags = glob(s); ^ optfunc.c:241:8: warning: passing arguments to 'error' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] error("Tags file \"%s\"", &parg); ^ optfunc.c:224:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] opt__T(type, s) ^ In file included from optfunc.c:44: In file included from ./less.h:253: ./funcs.h:165:14: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] public void opt__T (); ^ optfunc.c:264:10: warning: passing arguments to 'ungetsc' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] ungetsc(s); ^ optfunc.c:265:10: warning: passing arguments to 'ungetsc' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] ungetsc("/"); ^ optfunc.c:251:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] opt_p(type, s) ^ In file included from optfunc.c:44: In file included from ./less.h:253: ./funcs.h:166:14: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] public void opt_p (); ^ optfunc.c:296:16: warning: passing arguments to 'save' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] *proto = save(s); ^ optfunc.c:300:8: warning: passing arguments to 'error' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] error("%s", &parg); ^ optfunc.c:274:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] opt__P(type, s) ^ In file included from optfunc.c:44: In file included from ./less.h:253: ./funcs.h:167:14: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] public void opt__P (); ^ optfunc.c:321:18: warning: passing arguments to 'ch_nbuf' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] cbufs = ch_nbuf(cbufs); ^ optfunc.c:310:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] opt_b(type, s) ^ In file included from optfunc.c:44: In file included from ./less.h:253: ./funcs.h:168:14: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] public void opt_b (); ^ optfunc.c:333:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] opt_i(type, s) ^ In file included from optfunc.c:44: In file included from ./less.h:253: ./funcs.h:169:14: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] public void opt_i (); ^ optfunc.c:364:8: warning: passing arguments to 'quit' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] quit(QUIT_OK); ^ optfunc.c:353:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] opt__V(type, s) ^ In file included from optfunc.c:44: In file included from ./less.h:253: ./funcs.h:170:14: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] public void opt__V (); ^ optfunc.c:466:8: warning: passing arguments to 'error' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] error("Use \"h\" for help", NULL_PARG); ^ optfunc.c:475:11: warning: passing arguments to 'raw_mode' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] raw_mode(1); ^ optfunc.c:480:7: warning: passing arguments to 'help' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] help(1); ^ optfunc.c:481:7: warning: passing arguments to 'quit' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] quit(QUIT_OK); ^ optfunc.c:456:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] opt_query(type, s) ^ In file included from optfunc.c:44: In file included from ./less.h:253: ./funcs.h:172:14: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] public void opt_query (); ^ 55 warnings generated. cc -I. -c -O2 -pipe -DHANZI option.c option.c:75:20: warning: passing arguments to a function without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] (*pendopt->ofunc)(INIT, s); ^ option.c:99:20: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] if (set_default = (*s == '+')) ~~~~~~~~~~~~^~~~~~~~~~~~~ option.c:99:20: note: place parentheses around the assignment to silence this warning if (set_default = (*s == '+')) ^ ( ) option.c:99:20: note: use '==' to turn this assignment into an equality comparison if (set_default = (*s == '+')) ^ == option.c:112:27: warning: passing arguments to 'save' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] every_first_cmd = save(++s); ^ option.c:114:12: warning: passing arguments to 'ungetsc' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] ungetsc(s); ^ option.c:115:17: warning: passing arguments to 'optstring' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] s = optstring(s, c); ^ option.c:133:14: warning: passing arguments to 'findopt' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] o = findopt(c); ^ option.c:136:25: warning: passing arguments to 'propt' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] parg.p_string = propt(c); ^ option.c:141:9: warning: passing arguments to 'error' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] error("There is no %s flag (\"less -\\?\" for help)", ^ option.c:144:8: warning: passing arguments to 'quit' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] quit(QUIT_ERROR); ^ option.c:159:29: warning: passing arguments to 'flip_triple' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] *(o->ovar) = flip_triple(o->odefault, ^ option.c:179:17: warning: passing arguments to 'optstring' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] s = optstring(s, c); ^ option.c:182:23: warning: passing arguments to 'getnum' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] *(o->ovar) = getnum(&s, c, (int*)NULL); ^ option.c:189:15: warning: passing arguments to a function without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] (*o->ofunc)(INIT, str); ^ option.c:55:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] scan_option(s) ^ In file included from option.c:37: In file included from ./less.h:253: ./funcs.h:174:14: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] public void scan_option (); ^ option.c:216:13: warning: passing arguments to 'findopt' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] o = findopt(c); ^ option.c:219:24: warning: passing arguments to 'propt' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] parg.p_string = propt(c); ^ option.c:220:8: warning: passing arguments to 'error' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] error("There is no %s flag", &parg); ^ option.c:226:24: warning: passing arguments to 'propt' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] parg.p_string = propt(c); ^ option.c:227:8: warning: passing arguments to 'error' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] error("Cannot change the %s flag", &parg); ^ option.c:233:24: warning: passing arguments to 'propt' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] parg.p_string = propt(c); ^ option.c:234:8: warning: passing arguments to 'error' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] error("Cannot query the %s flag", &parg); ^ option.c:255:17: warning: passing arguments to 'repaint_hilite' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] repaint_hilite(0); ^ option.c:293:29: warning: passing arguments to 'flip_triple' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] *(o->ovar) = flip_triple(*(o->ovar), ^ option.c:300:29: warning: passing arguments to 'flip_triple' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] *(o->ovar) = flip_triple(o->odefault, ^ option.c:314:10: warning: passing arguments to 'error' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] error("Can't use \"-+\" or \"--\" for a string flag", ^ option.c:326:17: warning: passing arguments to 'getnum' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] num = getnum(&s, '\0', &err); ^ option.c:334:10: warning: passing arguments to 'error' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] error("Can't use \"--\" for a numeric flag", ^ option.c:347:14: warning: passing arguments to a function without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] (*o->ofunc)((how_toggle==OPT_NO_TOGGLE) ? QUERY : TOGGLE, s); ^ option.c:364:8: warning: passing arguments to 'error' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] error(o->odesc[*(o->ovar)], NULL_PARG); ^ option.c:372:8: warning: passing arguments to 'error' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] error(o->odesc[1], &parg); ^ option.c:203:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] toggle_option(c, s, how_toggle) ^ In file included from option.c:37: In file included from ./less.h:253: ./funcs.h:175:14: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] public void toggle_option (); ^ option.c:389:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] flip_triple(val, lc) ^ option.c:45:12: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] static int flip_triple(); ^ option.c:409:28: warning: passing arguments to 'prchar' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] sprintf(buf, "-%s", prchar(c)); ^ option.c:404:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] propt(c) ^ option.c:43:14: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] static char *propt(); ^ option.c:423:13: warning: passing arguments to 'findopt' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] o = findopt(c); ^ option.c:418:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] single_char_option(c) ^ In file included from option.c:37: In file included from ./less.h:253: ./funcs.h:176:13: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] public int single_char_option (); ^ option.c:439:13: warning: passing arguments to 'findopt' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] o = findopt(c); ^ option.c:434:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] opt_prompt(c) ^ In file included from option.c:37: In file included from ./less.h:253: ./funcs.h:177:16: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] public char * opt_prompt (); ^ option.c:467:7: warning: passing arguments to 'error' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] error("String is required after %s", &parg); ^ option.c:462:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] nostring(c) ^ option.c:494:7: warning: passing arguments to 'quit' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] quit(QUIT_ERROR); ^ option.c:485:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] optstring(s, c) ^ option.c:44:14: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] static char *optstring(); ^ option.c:521:12: warning: passing arguments to 'skipsp' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] s = skipsp(*sp); ^ option.c:536:8: warning: passing arguments to 'error' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] error("Number is required after %s", &parg); ^ option.c:537:7: warning: passing arguments to 'quit' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] quit(QUIT_ERROR); ^ option.c:511:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] getnum(sp, c, errp) ^ In file included from option.c:37: In file included from ./less.h:253: ./funcs.h:180:13: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] public int getnum (); ^ 54 warnings generated. cc -I. -c -O2 -pipe -DHANZI opttbl.c opttbl.c:260:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] findopt(c) ^ In file included from opttbl.c:32: In file included from ./less.h:253: ./funcs.h:182:25: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] public struct option * findopt (); ^ 2 warnings generated. cc -I. -c -O2 -pipe -DHANZI os.c os.c:84:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] iread(fd, buf, len) ^ In file included from os.c:40: In file included from ./less.h:253: ./funcs.h:183:13: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] public int iread (); ^ os.c:185:22: warning: passing arguments to 'ecalloc' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] m = (char *) ecalloc(strlen(filename) + strlen(p) + 3, sizeof(char)); ^ os.c:174:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] errno_message(filename) ^ In file included from os.c:40: In file included from ./less.h:253: ./funcs.h:186:16: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] public char * errno_message (); ^ os.c:224:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] percentage(num, den) ^ In file included from os.c:40: In file included from ./less.h:253: ./funcs.h:187:13: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] public int percentage (); ^ 7 warnings generated. cc -I. -c -O2 -pipe -DHANZI output.c output.c:65:25: warning: passing arguments to 'gline' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] for (i = 0; (c = gline(i, &a)) != '\0'; i++) ^ output.c:95:10: warning: passing arguments to 'putchr' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] putchr(c); ^ output.c:151:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] putchr(c) ^ In file included from output.c:32: In file included from ./less.h:253: ./funcs.h:190:13: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] public int putchr (); ^ output.c:173:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] putstr(s) ^ In file included from output.c:32: In file included from ./less.h:253: ./funcs.h:191:14: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] public void putstr (); ^ output.c:194:10: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] if (neg = (num < 0)) ~~~~^~~~~~~~~~~ output.c:194:10: note: place parentheses around the assignment to silence this warning if (neg = (num < 0)) ^ ( ) output.c:194:10: note: use '==' to turn this assignment into an equality comparison if (neg = (num < 0)) ^ == output.c:185:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] iprintnum(num, radix) ^ output.c:217:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] iprintf(fmt, parg) ^ output.c:296:10: warning: passing arguments to 'ungetcc' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] ungetcc(c); ^ output.c:261:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] error(fmt, parg) ^ In file included from output.c:32: In file included from ./less.h:253: ./funcs.h:192:14: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] public void error (); ^ output.c:320:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] ierror(fmt, parg) ^ In file included from output.c:32: In file included from ./less.h:253: ./funcs.h:193:14: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] public void ierror (); ^ output.c:338:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] query(fmt, parg) ^ In file included from output.c:32: In file included from ./less.h:253: ./funcs.h:194:13: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] public int query (); ^ 16 warnings generated. cc -I. -c -O2 -pipe -DHANZI position.c position.c:56:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] position(where) ^ In file included from position.c:38: In file included from ./less.h:253: ./funcs.h:195:18: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] public POSITION position (); ^ position.c:77:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] add_forw_pos(pos) ^ In file included from position.c:38: In file included from ./less.h:253: ./funcs.h:196:14: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] public void add_forw_pos (); ^ position.c:94:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] add_back_pos(pos) ^ In file included from position.c:38: In file included from ./less.h:253: ./funcs.h:197:14: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] public void add_back_pos (); ^ position.c:135:13: warning: passing arguments to 'get_scrpos' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] get_scrpos(&scrpos); ^ position.c:139:30: warning: passing arguments to 'ecalloc' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] table = (POSITION *) ecalloc(sc_height, sizeof(POSITION)); ^ position.c:152:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] onscreen(pos) ^ In file included from position.c:38: In file included from ./less.h:253: ./funcs.h:200:13: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] public int onscreen (); ^ position.c:171:21: warning: passing arguments to 'empty_lines' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] return (empty_lines(0, sc_height-1)); ^ position.c:175:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] empty_lines(s, e) ^ In file included from position.c:38: In file included from ./less.h:253: ./funcs.h:202:13: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] public int empty_lines (); ^ position.c:196:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] get_scrpos(scrpos) ^ In file included from position.c:38: In file included from ./less.h:253: ./funcs.h:203:14: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] public void get_scrpos (); ^ position.c:228:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] adjsline(sline) ^ In file included from position.c:38: In file included from ./less.h:253: ./funcs.h:204:13: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] public int adjsline (); ^ 17 warnings generated. cc -I. -c -O2 -pipe -DHANZI prompt.c prompt.c:78:19: warning: passing arguments to 'save' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] prproto[0] = save(s_proto); ^ prompt.c:79:19: warning: passing arguments to 'save' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] prproto[1] = save(m_proto); ^ prompt.c:80:19: warning: passing arguments to 'save' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] prproto[2] = save(M_proto); ^ prompt.c:81:16: warning: passing arguments to 'save' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] eqproto = save(e_proto); ^ prompt.c:98:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] ap_pos(pos) ^ prompt.c:109:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] ap_int(n) ^ prompt.c:123:9: warning: passing arguments to 'strtcpy' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] strtcpy(mp, s, (unsigned int)(&message[sizeof(message)] - mp)); ^ prompt.c:120:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] ap_str(s) ^ prompt.c:145:16: warning: passing arguments to 'position' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] pos = position(where); ^ prompt.c:147:17: warning: passing arguments to 'position' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] pos = position(++where); ^ prompt.c:140:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] curr_byte(where) ^ prompt.c:173:30: warning: passing arguments to 'get_filename' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] return (strcmp(get_filename(curr_ifile), "-") != 0); ^ prompt.c:189:21: warning: passing arguments to 'next_ifile' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] return (next_ifile(curr_ifile) != NULL_IFILE); ^ prompt.c:160:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] cond(c, where) ^ prompt.c:226:22: warning: passing arguments to 'get_filename' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] ap_str(get_filename(curr_ifile)); ^ prompt.c:229:19: warning: passing arguments to 'get_index' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] ap_int(get_index(curr_ifile)); ^ prompt.c:232:15: warning: passing arguments to 'currline' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] n = currline(where); ^ prompt.c:241:24: warning: passing arguments to 'find_linenum' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] (n = find_linenum(len)) <= 0) ^ prompt.c:253:21: warning: passing arguments to 'percentage' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] ap_int(percentage(pos,len)); ^ prompt.c:270:17: warning: passing arguments to 'next_ifile' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] h = next_ifile(curr_ifile); ^ prompt.c:272:23: warning: passing arguments to 'get_filename' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] ap_str(get_filename(h)); ^ prompt.c:202:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] protochar(c, where) ^ prompt.c:287:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] skipcond(p) ^ prompt.c:355:29: warning: passing arguments to 'adjsline' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] case 'j': *wp = adjsline(jump_sline); break; ^ prompt.c:342:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] wherechar(p, wp) ^ prompt.c:366:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] pr_expand(proto, maxwidth) ^ In file included from prompt.c:37: In file included from ./less.h:253: ./funcs.h:206:16: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] public char * pr_expand (); ^ 27 warnings generated. cc -I. -c -O2 -pipe -DHANZI search.c search.c:112:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] cvt_text(odst, osrc, ops) ^ search.c:139:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] is_ucase(s) ^ search.c:206:17: warning: passing arguments to 'position' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] pos = position(slinenum); ^ search.c:209:18: warning: passing arguments to 'position' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] epos = position(slinenum+1); ^ search.c:214:17: warning: passing arguments to 'is_hilited' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] if (is_hilited(pos, epos, 1)) ^ search.c:216:20: warning: passing arguments to 'forw_line' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] (void) forw_line(pos); ^ search.c:217:13: warning: passing arguments to 'goto_line' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] goto_line(slinenum); ^ search.c:180:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] repaint_hilite(on) ^ In file included from search.c:32: In file included from ./less.h:253: ./funcs.h:209:14: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] public void repaint_hilite (); ^ search.c:233:8: warning: passing arguments to 'error' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] error("No previous regular expression", NULL_PARG); ^ search.c:250:34: warning: passing arguments to 'ecalloc' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] regex_t *s = (regex_t *) ecalloc(1, sizeof(regex_t)); ^ search.c:254:8: warning: passing arguments to 'error' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] error("Invalid pattern", NULL_PARG); ^ search.c:246:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] compile_pattern(pattern) ^ search.c:336:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] match_pattern(line, sp, ep) ^ search.c:401:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] is_hilited(pos, epos, nohide) ^ In file included from search.c:32: In file included from ./less.h:253: ./funcs.h:212:13: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] public int is_hilited (); ^ search.c:436:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] add_hilite(anchor, hl) ^ search.c:493:22: warning: passing arguments to 'forw_raw_line' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] (void) forw_raw_line(linepos, &line); ^ search.c:476:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] adj_hilite(anchor, linepos) ^ search.c:575:34: warning: passing arguments to 'ecalloc' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] hl = (struct hilite *) ecalloc(1, sizeof(struct hilite)); ^ search.c:542:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] hilite_line(linepos, line, sp, ep) ^ search.c:643:12: warning: passing arguments to 'get_scrpos' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] get_scrpos(&scrpos); ^ search.c:646:34: warning: passing arguments to 'position' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] prep_hilite(scrpos.pos, position(BOTTOM_PLUS_ONE)); ^ search.c:646:13: warning: passing arguments to 'prep_hilite' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] prep_hilite(scrpos.pos, position(BOTTOM_PLUS_ONE)); ^ search.c:712:17: warning: passing arguments to 'position' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] pos = position(linenum); ^ search.c:720:21: warning: passing arguments to 'adjsline' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] linenum = adjsline(jump_sline); ^ search.c:721:17: warning: passing arguments to 'position' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] pos = position(linenum); ^ search.c:723:23: warning: passing arguments to 'forw_raw_line' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] pos = forw_raw_line(pos, (char **)NULL); ^ search.c:674:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] search_pos(search_type) ^ search.c:746:24: warning: passing arguments to 'find_linenum' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] linenum = find_linenum(pos); ^ search.c:780:23: warning: passing arguments to 'forw_raw_line' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] pos = forw_raw_line(pos, &line); ^ search.c:789:23: warning: passing arguments to 'back_raw_line' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] pos = back_raw_line(pos, &line); ^ search.c:815:12: warning: passing arguments to 'add_lnum' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] add_lnum(linenum, pos); ^ search.c:732:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] search_range(pos, endpos, search_type, n, plinepos, pendpos) ^ search.c:907:9: warning: passing arguments to 'error' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] error("No previous regular expression", NULL_PARG); ^ search.c:982:8: warning: passing arguments to 'error' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] error("Nothing to search", NULL_PARG); ^ search.c:1006:10: warning: passing arguments to 'jump_loc' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] jump_loc(pos, jump_sline); ^ search.c:892:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] search(search_type, pattern, n) ^ In file included from search.c:32: In file included from ./less.h:253: ./funcs.h:215:13: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] public int search (); ^ search.c:1030:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] prep_hilite(spos, epos) ^ In file included from search.c:32: In file included from ./less.h:253: ./funcs.h:216:14: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] public void prep_hilite (); ^ 41 warnings generated. cc -I. -c -O2 -pipe -DHANZI signal.c signal.c:58:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] u_interrupt(type) ^ signal.c:76:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] stop(type) ^ signal.c:92:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] winch(type) ^ In file included from signal.c:38: In file included from ./less.h:253: ./funcs.h:218:20: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] public RETSIGTYPE winch (); ^ signal.c:122:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] init_signals(on) ^ In file included from signal.c:38: In file included from ./less.h:253: ./funcs.h:219:14: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] public void init_signals (); ^ signal.c:184:11: warning: passing arguments to 'raw_mode' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] raw_mode(0); ^ signal.c:197:11: warning: passing arguments to 'raw_mode' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] raw_mode(1); ^ signal.c:238:9: warning: passing arguments to 'error' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] error("Line numbers turned off", NULL_PARG); ^ 9 warnings generated. cc -I. -c -O2 -pipe -DHANZI tags.c tags.c:64:8: warning: passing arguments to 'error' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] error("No tags file", NULL_PARG); ^ tags.c:93:13: warning: passing arguments to 'skipsp' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] p = skipsp(tline+taglen); ^ tags.c:106:13: warning: passing arguments to 'skipsp' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] p = skipsp(p); ^ tags.c:114:22: warning: passing arguments to 'getnum' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] taglinenum = getnum(&p, 0, &err); ^ tags.c:143:7: warning: passing arguments to 'error' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] error("No such tag in tags file", NULL_PARG); ^ tags.c:51:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] findtag(tag) ^ In file included from tags.c:28: In file included from ./less.h:253: ./funcs.h:221:14: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] public void findtag (); ^ tags.c:168:19: warning: passing arguments to 'find_pos' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] return (find_pos(taglinenum)); ^ tags.c:171:24: warning: passing arguments to 'find_linenum' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] linenum = find_linenum(pos); ^ tags.c:187:22: warning: passing arguments to 'forw_raw_line' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] pos = forw_raw_line(pos, &line); ^ tags.c:196:9: warning: passing arguments to 'error' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] error("Tag not found", NULL_PARG); ^ tags.c:206:12: warning: passing arguments to 'add_lnum' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] add_lnum(linenum, pos); ^ 12 warnings generated. cc -I. -c -O2 -pipe -DHANZI ttyin.c ttyin.c:93:17: warning: passing arguments to 'iread' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] result = iread(tty, &c, sizeof(char)); ^ ttyin.c:102:8: warning: passing arguments to 'quit' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] quit(QUIT_ERROR); ^ 2 warnings generated. cc -I. -c -O2 -pipe -DHANZI version.c cc -o less main.o screen.o brac.o ch.o charset.o cmdbuf.o command.o decode.o edit.o filename.o forwback.o help.o ifile.o input.o jump.o line.o linenum.o lsystem.o mark.o optfunc.o option.o opttbl.o os.o output.o position.o prompt.o search.o signal.o tags.o ttyin.o version.o -lcurses -ltermcap ld: warning: charset.c(charset.o:(prchar)): warning: sprintf() is often misused, please use snprintf() ld: warning: main.c(main.o:(save)): warning: strcpy() is almost always misused, please use strlcpy() ld: warning: filename.c(filename.o:(bad_file)): warning: strcat() is almost always misused, please use strlcat() cc -I. -c -O2 -pipe -DHANZI lesskey.c lesskey.c:219:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] mkpathname(dirname, filename) ^ lesskey.c:240:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] homefile(filename) ^ In file included from lesskey.c:96: In file included from ./less.h:253: ./funcs.h:91:16: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] public char * homefile (); ^ lesskey.c:278:6: warning: call to undeclared function 'usage'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] usage(); ^ lesskey.c:286:4: warning: call to undeclared function 'usage'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] usage(); ^ lesskey.c:290:3: warning: call to undeclared function 'usage'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] usage(); ^ lesskey.c:264:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] parse_args(argc, argv) ^ lesskey.c:317:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] tchar(pp) ^ lesskey.c:381:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] skipsp(s) ^ In file included from lesskey.c:96: In file included from ./less.h:253: ./funcs.h:4:16: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] public char * skipsp (); ^ lesskey.c:393:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] skipnsp(s) ^ lesskey.c:406:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] clean_line(s) ^ lesskey.c:428:8: warning: passing arguments to 'error' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] error("too many commands"); ^ lesskey.c:423:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] add_cmd_char(c) ^ lesskey.c:438:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] control_line(s) ^ lesskey.c:466:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] fputbytes(fd, buf, len) ^ lesskey.c:482:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] fputint(fd, val) ^ lesskey.c:512:7: warning: passing arguments to 'error' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] error("unknown action"); ^ lesskey.c:504:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] findaction(actname) ^ lesskey.c:516:1: warning: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] usage() ^ int lesskey.c:523:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] error(s) ^ In file included from lesskey.c:96: In file included from ./less.h:253: ./funcs.h:192:14: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] public void error (); ^ lesskey.c:535:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] parse_line(line) ^ lesskey.c:617:1: warning: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] main(argc, argv) ^ int lesskey.c:617:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] 25 warnings generated. cc -o lesskey lesskey.o version.o ld: warning: lesskey.c(lesskey.o:(mkpathname)): warning: strcpy() is almost always misused, please use strlcpy() ld: warning: lesskey.c(lesskey.o:(mkpathname)): warning: strcat() is almost always misused, please use strlcat() >>> Running package in chinese/cless at 1735056243.35 ===> chinese/cless ===> Faking installation for zh-cless-290p2 ./mkinstalldirs /exopi-obj/pobj/zh-cless-290/fake-amd64/usr/local/bin /exopi-obj/pobj/zh-cless-290/fake-amd64/usr/local/share/doc/cless /exopi-obj/pobj/zh-cless-290/fake-amd64/usr/local/man/man1 /exopi-obj/pobj/zh-cless-290/bin/install -c -s -m 755 less /exopi-obj/pobj/zh-cless-290/fake-amd64/usr/local/bin/cless mkdir /exopi-obj/pobj/zh-cless-290/fake-amd64/usr/local/share/doc/cless /exopi-obj/pobj/zh-cless-290/bin/install -c -s -m 755 lesskey /exopi-obj/pobj/zh-cless-290/fake-amd64/usr/local/bin/clesskey /exopi-obj/pobj/zh-cless-290/bin/install -c -m 644 ./less.hlp /exopi-obj/pobj/zh-cless-290/fake-amd64/usr/local/share/doc/cless/cless.hlp /exopi-obj/pobj/zh-cless-290/bin/install -c -m 644 ./less.bg5 /exopi-obj/pobj/zh-cless-290/fake-amd64/usr/local/share/doc/cless/cless.bg5 /exopi-obj/pobj/zh-cless-290/bin/install -c -m 644 ./less.gb /exopi-obj/pobj/zh-cless-290/fake-amd64/usr/local/share/doc/cless/cless.gb /exopi-obj/pobj/zh-cless-290/bin/install -c -m 644 ./less.nro /exopi-obj/pobj/zh-cless-290/fake-amd64/usr/local/man/man1/cless.1 /exopi-obj/pobj/zh-cless-290/bin/install -c -m 644 ./lesskey.nro /exopi-obj/pobj/zh-cless-290/fake-amd64/usr/local/man/man1/clesskey.1 /exopi-obj/pobj/zh-cless-290/bin/install -c -m 644 /exopi-obj/pobj/zh-cless-290/cless-290/README.CLESS /exopi-obj/pobj/zh-cless-290/fake-amd64/usr/local/share/doc/cless ===> Building package for zh-cless-290p2 Create /exopi-cvs/ports/packages/amd64/all/zh-cless-290p2.tgz Creating package zh-cless-290p2 reading plist| checking dependencies| checksumming| checksumming| | 0% checksumming|*** | 6% checksumming|******* | 11% checksumming|********** | 17% checksumming|************** | 22% checksumming|***************** | 28% checksumming|******************** | 33% checksumming|************************ | 39% checksumming|*************************** | 44% checksumming|******************************* | 50% checksumming|********************************** | 56% checksumming|************************************* | 61% checksumming|***************************************** | 67% checksumming|******************************************** | 72% checksumming|*********************************************** | 78% checksumming|*************************************************** | 83% checksumming|****************************************************** | 89% checksumming|********************************************************** | 94% checksumming|*************************************************************|100% archiving| archiving| | 0% archiving|************************************ | 56% archiving|***************************************** | 64% archiving|******************************************************** | 87% archiving|********************************************************** | 90% archiving|*********************************************************** | 92% archiving|************************************************************ | 94% archiving|************************************************************** | 97% archiving|****************************************************************|100% Link to /exopi-cvs/ports/packages/amd64/ftp/zh-cless-290p2.tgz >>> Running clean in chinese/cless at 1735056245.55 ===> chinese/cless ===> Cleaning for zh-cless-290p2 >>> Ended at 1735056246.03 max_stuck=0.00/build=11.84/package=2.17/clean=0.54