>>> Building on exopi-1 under chinese/cless DIST = [chinese/cless:cless-290.tar.gz] FULLPKGNAME = zh-cless-290p2 distfiles size=172827 >>> Running build in chinese/cless at 1764750558.46 ===> chinese/cless ===> Building from scratch zh-cless-290p2 ===> Verifying specs: c curses ===> found c.102.2 curses.16.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 C23 [-Wdeprecated-non-prototype] 97 | 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 C23 [-Wdeprecated-non-prototype] 106 | 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 C23 [-Wdeprecated-non-prototype] 108 | 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 C23 [-Wdeprecated-non-prototype] 113 | 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 C23 [-Wdeprecated-non-prototype] 123 | 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 C23 [-Wdeprecated-non-prototype] 164 | 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 C23 [-Wdeprecated-non-prototype] 185 | } 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 C23 [-Wdeprecated-non-prototype] 187 | 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 C23 [-Wdeprecated-non-prototype] 191 | 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 C23 [-Wdeprecated-non-prototype] 193 | 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 C23 [-Wdeprecated-non-prototype] 209 | 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 C23 [-Wdeprecated-non-prototype] 210 | 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 C23 [-Wdeprecated-non-prototype] 212 | 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 C23 [-Wdeprecated-non-prototype] 214 | 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 C23 [-Wdeprecated-non-prototype] 215 | 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 C23 [-Wdeprecated-non-prototype] 216 | 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 C23 [-Wdeprecated-non-prototype] 223 | 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 C23 [-Wdeprecated-non-prototype] 230 | 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 C23 [-Wdeprecated-non-prototype] 234 | 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 C23 [-Wdeprecated-non-prototype] 239 | 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 C23 [-Wdeprecated-non-prototype] 75 | 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 C23 [-Wdeprecated-non-prototype] 248 | 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 C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 1 | 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 C23 [-Wdeprecated-non-prototype] 267 | 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 C23 [-Wdeprecated-non-prototype] 262 | 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 C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 2 | 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 C23 [-Wdeprecated-non-prototype] 286 | 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 C23 [-Wdeprecated-non-prototype] 287 | 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 C23 [-Wdeprecated-non-prototype] 277 | 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 C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 3 | public VOID_POINTER ecalloc (); | ^ main.c:289:1: warning: non-void function does not return a value in all control paths [-Wreturn-type] 289 | } | ^ main.c:295:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 295 | 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 C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 4 | 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 C23 [-Wdeprecated-non-prototype] 321 | 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 C23 [-Wdeprecated-non-prototype] 326 | 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 C23 [-Wdeprecated-non-prototype] 307 | 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 C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 5 | 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 C23, conflicting with a previous declaration [-Wdeprecated-non-prototype] 143 | extern char *tgetstr(); | ^ /usr/include/termcap.h:63:31: note: conflicting prototype is here 63 | 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 C23, conflicting with a previous declaration [-Wdeprecated-non-prototype] 144 | extern char *tgoto(); | ^ /usr/include/termcap.h:64:31: note: conflicting prototype is here 64 | 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 C23 [-Wdeprecated-non-prototype] 159 | 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 C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 6 | 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 C23 [-Wdeprecated-non-prototype] 422 | 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 C23 [-Wdeprecated-non-prototype] 410 | 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] 454 | 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 C23 [-Wdeprecated-non-prototype] 616 | 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 C23 [-Wdeprecated-non-prototype] 617 | 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 C23 [-Wdeprecated-non-prototype] 869 | 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 C23 [-Wdeprecated-non-prototype] 886 | 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 C23 [-Wdeprecated-non-prototype] 907 | 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 C23 [-Wdeprecated-non-prototype] 928 | 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 C23 [-Wdeprecated-non-prototype] 936 | 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 C23 [-Wdeprecated-non-prototype] 950 | 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 C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 123 | 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 C23 [-Wdeprecated-non-prototype] 1036 | 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 C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 16 | 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 C23 [-Wdeprecated-non-prototype] 1054 | 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 C23 [-Wdeprecated-non-prototype] 1185 | 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 C23 [-Wdeprecated-non-prototype] 62 | 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 C23 [-Wdeprecated-non-prototype] 63 | 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 C23 [-Wdeprecated-non-prototype] 66 | 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 C23 [-Wdeprecated-non-prototype] 68 | 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 C23 [-Wdeprecated-non-prototype] 80 | 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 C23 [-Wdeprecated-non-prototype] 82 | 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 C23 [-Wdeprecated-non-prototype] 112 | 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 C23 [-Wdeprecated-non-prototype] 116 | 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 C23 [-Wdeprecated-non-prototype] 44 | 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 C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 32 | 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 C23 [-Wdeprecated-non-prototype] 176 | 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 C23 [-Wdeprecated-non-prototype] 190 | 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 C23 [-Wdeprecated-non-prototype] 203 | 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 C23 [-Wdeprecated-non-prototype] 233 | 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 C23 [-Wdeprecated-non-prototype] 278 | 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 C23 [-Wdeprecated-non-prototype] 274 | 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 C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 33 | 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 C23 [-Wdeprecated-non-prototype] 297 | 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 C23 [-Wdeprecated-non-prototype] 329 | 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 C23 [-Wdeprecated-non-prototype] 350 | 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 C23 [-Wdeprecated-non-prototype] 366 | 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 C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 36 | 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 C23 [-Wdeprecated-non-prototype] 407 | 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 C23 [-Wdeprecated-non-prototype] 536 | 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 C23 [-Wdeprecated-non-prototype] 538 | 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 C23 [-Wdeprecated-non-prototype] 521 | 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 C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 43 | 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 C23 [-Wdeprecated-non-prototype] 572 | 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 C23 [-Wdeprecated-non-prototype] 588 | 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 C23 [-Wdeprecated-non-prototype] 639 | 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 C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 45 | 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 C23 [-Wdeprecated-non-prototype] 656 | 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 C23 [-Wdeprecated-non-prototype] 679 | 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 C23 [-Wdeprecated-non-prototype] 649 | 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 C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 46 | 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 C23 [-Wdeprecated-non-prototype] 722 | 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 C23 [-Wdeprecated-non-prototype] 111 | 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 C23 [-Wdeprecated-non-prototype] 112 | 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 C23 [-Wdeprecated-non-prototype] 120 | 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 C23 [-Wdeprecated-non-prototype] 121 | 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 C23 [-Wdeprecated-non-prototype] 81 | 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 C23 [-Wdeprecated-non-prototype] 155 | 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 C23 [-Wdeprecated-non-prototype] 156 | 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 C23 [-Wdeprecated-non-prototype] 138 | icharset(name) | ^ charset.c:158:1: warning: non-void function does not return a value in all control paths [-Wreturn-type] 158 | } | ^ charset.c:186:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 186 | 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 C23 [-Wdeprecated-non-prototype] 259 | 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 C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 51 | 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 C23 [-Wdeprecated-non-prototype] 270 | 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 C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 52 | 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 C23 [-Wdeprecated-non-prototype] 282 | 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 C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 53 | public char * prchar (); | ^ cc -I. -c -O2 -pipe -DHANZI cmdbuf.c 16 warnings generated. cmdbuf.c:139:12: warning: passing arguments to 'prchar' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 139 | 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 C23 [-Wdeprecated-non-prototype] 159 | 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 C23 [-Wdeprecated-non-prototype] 160 | 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 C23 [-Wdeprecated-non-prototype] 204 | 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 C23 [-Wdeprecated-non-prototype] 206 | 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 C23 [-Wdeprecated-non-prototype] 278 | 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 C23 [-Wdeprecated-non-prototype] 326 | 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 C23 [-Wdeprecated-non-prototype] 328 | 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 C23 [-Wdeprecated-non-prototype] 347 | 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 C23 [-Wdeprecated-non-prototype] 359 | 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 C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 56 | 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 C23 [-Wdeprecated-non-prototype] 401 | 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 C23 [-Wdeprecated-non-prototype] 403 | 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 C23 [-Wdeprecated-non-prototype] 369 | 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 C23 [-Wdeprecated-non-prototype] 443 | 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 C23 [-Wdeprecated-non-prototype] 444 | 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 C23 [-Wdeprecated-non-prototype] 494 | 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 C23 [-Wdeprecated-non-prototype] 557 | 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 C23 [-Wdeprecated-non-prototype] 467 | 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 C23 [-Wdeprecated-non-prototype] 590 | 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 C23 [-Wdeprecated-non-prototype] 615 | 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 C23 [-Wdeprecated-non-prototype] 634 | 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 C23 [-Wdeprecated-non-prototype] 569 | 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 C23 [-Wdeprecated-non-prototype] 652 | 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 C23 [-Wdeprecated-non-prototype] 753 | 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 C23 [-Wdeprecated-non-prototype] 762 | 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 C23 [-Wdeprecated-non-prototype] 777 | 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 C23 [-Wdeprecated-non-prototype] 779 | 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 C23 [-Wdeprecated-non-prototype] 770 | 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 C23 [-Wdeprecated-non-prototype] 822 | 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 C23 [-Wdeprecated-non-prototype] 793 | 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 C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 44 | 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 C23 [-Wdeprecated-non-prototype] 877 | 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 C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 58 | 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 C23 [-Wdeprecated-non-prototype] 932 | 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 C23 [-Wdeprecated-non-prototype] 929 | 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 C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 60 | 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 C23 [-Wdeprecated-non-prototype] 112 | 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 C23 [-Wdeprecated-non-prototype] 114 | 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 C23 [-Wdeprecated-non-prototype] 105 | 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 C23 [-Wdeprecated-non-prototype] 138 | 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 C23 [-Wdeprecated-non-prototype] 141 | 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 C23 [-Wdeprecated-non-prototype] 144 | 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 C23 [-Wdeprecated-non-prototype] 147 | 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 C23 [-Wdeprecated-non-prototype] 149 | 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 C23 [-Wdeprecated-non-prototype] 151 | 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 C23 [-Wdeprecated-non-prototype] 170 | 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 C23 [-Wdeprecated-non-prototype] 183 | 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 C23 [-Wdeprecated-non-prototype] 186 | 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 C23 [-Wdeprecated-non-prototype] 190 | 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 C23 [-Wdeprecated-non-prototype] 193 | 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 C23 [-Wdeprecated-non-prototype] 197 | 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 C23 [-Wdeprecated-non-prototype] 211 | 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 C23 [-Wdeprecated-non-prototype] 215 | 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 C23 [-Wdeprecated-non-prototype] 217 | 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 C23 [-Wdeprecated-non-prototype] 218 | 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 C23 [-Wdeprecated-non-prototype] 223 | (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 C23 [-Wdeprecated-non-prototype] 224 | 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 C23 [-Wdeprecated-non-prototype] 264 | 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 C23 [-Wdeprecated-non-prototype] 303 | 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 C23 [-Wdeprecated-non-prototype] 305 | 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 C23 [-Wdeprecated-non-prototype] 318 | 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 C23 [-Wdeprecated-non-prototype] 381 | 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 C23 [-Wdeprecated-non-prototype] 234 | 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 C23 [-Wdeprecated-non-prototype] 433 | 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 C23 [-Wdeprecated-non-prototype] 435 | 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 C23 [-Wdeprecated-non-prototype] 449 | 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 C23 [-Wdeprecated-non-prototype] 450 | 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 C23 [-Wdeprecated-non-prototype] 458 | 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 C23 [-Wdeprecated-non-prototype] 462 | 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 C23 [-Wdeprecated-non-prototype] 476 | 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 C23 [-Wdeprecated-non-prototype] 545 | 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 C23 [-Wdeprecated-non-prototype] 546 | 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 C23 [-Wdeprecated-non-prototype] 538 | 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 C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 65 | 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 C23 [-Wdeprecated-non-prototype] 556 | 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 C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 66 | 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 C23 [-Wdeprecated-non-prototype] 600 | 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 C23 [-Wdeprecated-non-prototype] 623 | 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 C23 [-Wdeprecated-non-prototype] 625 | 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 C23 [-Wdeprecated-non-prototype] 636 | 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 C23 [-Wdeprecated-non-prototype] 643 | 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 C23 [-Wdeprecated-non-prototype] 644 | 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 C23 [-Wdeprecated-non-prototype] 571 | 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 C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 87 | 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 C23 [-Wdeprecated-non-prototype] 680 | 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 C23 [-Wdeprecated-non-prototype] 736 | 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 C23 [-Wdeprecated-non-prototype] 754 | 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 C23 [-Wdeprecated-non-prototype] 792 | 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 C23 [-Wdeprecated-non-prototype] 809 | 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 C23 [-Wdeprecated-non-prototype] 819 | 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 C23 [-Wdeprecated-non-prototype] 829 | 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 C23 [-Wdeprecated-non-prototype] 839 | 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 C23 [-Wdeprecated-non-prototype] 849 | 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 C23 [-Wdeprecated-non-prototype] 861 | 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 C23 [-Wdeprecated-non-prototype] 873 | 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 C23 [-Wdeprecated-non-prototype] 884 | 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 C23 [-Wdeprecated-non-prototype] 913 | 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 C23 [-Wdeprecated-non-prototype] 925 | 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 C23 [-Wdeprecated-non-prototype] 936 | 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 C23 [-Wdeprecated-non-prototype] 946 | 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 C23 [-Wdeprecated-non-prototype] 955 | 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 C23 [-Wdeprecated-non-prototype] 970 | 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 C23 [-Wdeprecated-non-prototype] 1056 | 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 C23 [-Wdeprecated-non-prototype] 1058 | 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 C23 [-Wdeprecated-non-prototype] 1079 | 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 C23 [-Wdeprecated-non-prototype] 1081 | 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 C23 [-Wdeprecated-non-prototype] 1086 | 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 C23 [-Wdeprecated-non-prototype] 1095 | 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 C23 [-Wdeprecated-non-prototype] 1095 | 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 C23 [-Wdeprecated-non-prototype] 1101 | 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 C23 [-Wdeprecated-non-prototype] 1102 | 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 C23 [-Wdeprecated-non-prototype] 1115 | 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 C23 [-Wdeprecated-non-prototype] 1118 | 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 C23 [-Wdeprecated-non-prototype] 1120 | 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 C23 [-Wdeprecated-non-prototype] 1130 | 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 C23 [-Wdeprecated-non-prototype] 1133 | 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 C23 [-Wdeprecated-non-prototype] 1143 | 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 C23 [-Wdeprecated-non-prototype] 1144 | 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 C23 [-Wdeprecated-non-prototype] 1161 | 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 C23 [-Wdeprecated-non-prototype] 1194 | 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 C23 [-Wdeprecated-non-prototype] 1206 | 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 C23 [-Wdeprecated-non-prototype] 1217 | 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 C23 [-Wdeprecated-non-prototype] 1244 | (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 C23 [-Wdeprecated-non-prototype] 211 | 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 C23 [-Wdeprecated-non-prototype] 212 | 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 C23 [-Wdeprecated-non-prototype] 226 | 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 C23 [-Wdeprecated-non-prototype] 260 | 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 C23 [-Wdeprecated-non-prototype] 255 | 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 C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 69 | 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 C23 [-Wdeprecated-non-prototype] 272 | 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 C23 [-Wdeprecated-non-prototype] 267 | 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 C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 70 | 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 C23 [-Wdeprecated-non-prototype] 279 | 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 C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 71 | 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 C23 [-Wdeprecated-non-prototype] 365 | 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 C23 [-Wdeprecated-non-prototype] 390 | 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 C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 72 | 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 C23 [-Wdeprecated-non-prototype] 401 | 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 C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 73 | 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 C23 [-Wdeprecated-non-prototype] 410 | 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 C23 [-Wdeprecated-non-prototype] 421 | 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 C23 [-Wdeprecated-non-prototype] 439 | 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 C23 [-Wdeprecated-non-prototype] 511 | 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 C23 [-Wdeprecated-non-prototype] 488 | 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 C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 74 | 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 C23 [-Wdeprecated-non-prototype] 558 | 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 C23 [-Wdeprecated-non-prototype] 564 | 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 C23 [-Wdeprecated-non-prototype] 647 | 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 C23 [-Wdeprecated-non-prototype] 652 | 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 C23 [-Wdeprecated-non-prototype] 574 | 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 C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 76 | 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 C23 [-Wdeprecated-non-prototype] 68 | 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 C23 [-Wdeprecated-non-prototype] 62 | 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 C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 77 | 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 C23 [-Wdeprecated-non-prototype] 78 | 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 C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 78 | 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 C23 [-Wdeprecated-non-prototype] 102 | 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 C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 79 | 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 C23 [-Wdeprecated-non-prototype] 141 | 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 C23 [-Wdeprecated-non-prototype] 144 | 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 C23 [-Wdeprecated-non-prototype] 157 | 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 C23 [-Wdeprecated-non-prototype] 157 | 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 C23 [-Wdeprecated-non-prototype] 175 | 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 C23 [-Wdeprecated-non-prototype] 176 | 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 C23 [-Wdeprecated-non-prototype] 176 | 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 C23 [-Wdeprecated-non-prototype] 171 | 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 C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 80 | 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 C23 [-Wdeprecated-non-prototype] 233 | 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 C23 [-Wdeprecated-non-prototype] 238 | 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 C23 [-Wdeprecated-non-prototype] 260 | } 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 C23 [-Wdeprecated-non-prototype] 265 | 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 C23 [-Wdeprecated-non-prototype] 270 | 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 C23 [-Wdeprecated-non-prototype] 273 | 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 C23 [-Wdeprecated-non-prototype] 284 | 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 C23 [-Wdeprecated-non-prototype] 285 | 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 C23 [-Wdeprecated-non-prototype] 288 | } 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 C23 [-Wdeprecated-non-prototype] 288 | } 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 C23 [-Wdeprecated-non-prototype] 294 | 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 C23 [-Wdeprecated-non-prototype] 312 | 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 C23 [-Wdeprecated-non-prototype] 313 | 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 C23 [-Wdeprecated-non-prototype] 315 | 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 C23 [-Wdeprecated-non-prototype] 318 | 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 C23 [-Wdeprecated-non-prototype] 322 | 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 C23 [-Wdeprecated-non-prototype] 351 | 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 C23 [-Wdeprecated-non-prototype] 184 | 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 C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 81 | 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 C23 [-Wdeprecated-non-prototype] 387 | 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 C23 [-Wdeprecated-non-prototype] 393 | 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 C23 [-Wdeprecated-non-prototype] 402 | 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 C23 [-Wdeprecated-non-prototype] 408 | 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 C23 [-Wdeprecated-non-prototype] 363 | 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 C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 82 | 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 C23 [-Wdeprecated-non-prototype] 419 | 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 C23 [-Wdeprecated-non-prototype] 429 | 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 C23 [-Wdeprecated-non-prototype] 449 | 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 C23 [-Wdeprecated-non-prototype] 437 | 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 C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 85 | 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 C23 [-Wdeprecated-non-prototype] 486 | 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 C23 [-Wdeprecated-non-prototype] 474 | 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 C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 86 | 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 C23 [-Wdeprecated-non-prototype] 519 | 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 C23 [-Wdeprecated-non-prototype] 526 | } 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 C23 [-Wdeprecated-non-prototype] 511 | 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 C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 87 | 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 C23 [-Wdeprecated-non-prototype] 542 | 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 C23 [-Wdeprecated-non-prototype] 544 | 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 C23 [-Wdeprecated-non-prototype] 559 | 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 C23 [-Wdeprecated-non-prototype] 607 | 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 C23 [-Wdeprecated-non-prototype] 636 | 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 C23 [-Wdeprecated-non-prototype] 642 | 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 C23 [-Wdeprecated-non-prototype] 652 | 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 C23 [-Wdeprecated-non-prototype] 571 | 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 C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 90 | 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 C23 [-Wdeprecated-non-prototype] 47 | 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 C23 [-Wdeprecated-non-prototype] 87 | 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 C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 91 | 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 C23 [-Wdeprecated-non-prototype] 128 | 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 C23 [-Wdeprecated-non-prototype] 132 | 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 C23 [-Wdeprecated-non-prototype] 162 | 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 C23 [-Wdeprecated-non-prototype] 164 | 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 C23 [-Wdeprecated-non-prototype] 170 | 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 C23 [-Wdeprecated-non-prototype] 172 | 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 C23 [-Wdeprecated-non-prototype] 180 | 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 C23 [-Wdeprecated-non-prototype] 191 | 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 C23 [-Wdeprecated-non-prototype] 195 | 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 C23 [-Wdeprecated-non-prototype] 142 | 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 C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 93 | 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 C23 [-Wdeprecated-non-prototype] 239 | 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 C23 [-Wdeprecated-non-prototype] 242 | 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 C23 [-Wdeprecated-non-prototype] 214 | 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 C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 94 | 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 C23 [-Wdeprecated-non-prototype] 268 | 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 C23 [-Wdeprecated-non-prototype] 274 | 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 C23 [-Wdeprecated-non-prototype] 261 | 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 C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 95 | 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 C23 [-Wdeprecated-non-prototype] 283 | 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 C23, conflicting with a previous declaration [-Wdeprecated-non-prototype] 296 | FILE *popen(); | ^ /usr/include/stdio.h:236:7: note: conflicting prototype is here 236 | 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 C23 [-Wdeprecated-non-prototype] 316 | 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 C23 [-Wdeprecated-non-prototype] 329 | 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 C23 [-Wdeprecated-non-prototype] 303 | 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 C23 [-Wdeprecated-non-prototype] 360 | 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 C23 [-Wdeprecated-non-prototype] 369 | 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 C23 [-Wdeprecated-non-prototype] 346 | 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 C23 [-Wdeprecated-non-prototype] 385 | 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 C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 102 | 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 C23 [-Wdeprecated-non-prototype] 456 | 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 C23 [-Wdeprecated-non-prototype] 497 | 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 C23 [-Wdeprecated-non-prototype] 500 | 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 C23 [-Wdeprecated-non-prototype] 446 | 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 C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 103 | 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 C23 [-Wdeprecated-non-prototype] 520 | 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 C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 104 | 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 C23 [-Wdeprecated-non-prototype] 647 | 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 C23 [-Wdeprecated-non-prototype] 655 | 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 C23 [-Wdeprecated-non-prototype] 664 | 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 C23 [-Wdeprecated-non-prototype] 640 | 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 C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 107 | 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 C23 [-Wdeprecated-non-prototype] 679 | 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 C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 108 | 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 C23 [-Wdeprecated-non-prototype] 83 | 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 C23 [-Wdeprecated-non-prototype] 158 | 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 C23 [-Wdeprecated-non-prototype] 166 | 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 C23 [-Wdeprecated-non-prototype] 175 | 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 C23 [-Wdeprecated-non-prototype] 200 | 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 C23 [-Wdeprecated-non-prototype] 208 | 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 C23 [-Wdeprecated-non-prototype] 216 | 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 C23 [-Wdeprecated-non-prototype] 255 | (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 C23 [-Wdeprecated-non-prototype] 113 | 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 C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 109 | 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 C23 [-Wdeprecated-non-prototype] 279 | 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 C23 [-Wdeprecated-non-prototype] 292 | 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 C23 [-Wdeprecated-non-prototype] 307 | (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 C23 [-Wdeprecated-non-prototype] 262 | 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 C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 110 | 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 C23 [-Wdeprecated-non-prototype] 328 | 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 C23 [-Wdeprecated-non-prototype] 329 | 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 C23 [-Wdeprecated-non-prototype] 333 | 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 C23 [-Wdeprecated-non-prototype] 334 | 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 C23 [-Wdeprecated-non-prototype] 349 | 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 C23 [-Wdeprecated-non-prototype] 350 | 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 C23 [-Wdeprecated-non-prototype] 315 | 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 C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 111 | 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 C23 [-Wdeprecated-non-prototype] 375 | 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 C23 [-Wdeprecated-non-prototype] 376 | 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 C23 [-Wdeprecated-non-prototype] 368 | 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 C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 112 | 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 C23 [-Wdeprecated-non-prototype] 51 | 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 C23 [-Wdeprecated-non-prototype] 70 | 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 C23 [-Wdeprecated-non-prototype] 83 | 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 C23 [-Wdeprecated-non-prototype] 85 | 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 C23 [-Wdeprecated-non-prototype] 42 | 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 C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 114 | 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 C23 [-Wdeprecated-non-prototype] 67 | 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 C23 [-Wdeprecated-non-prototype] 76 | 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 C23 [-Wdeprecated-non-prototype] 99 | 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 C23 [-Wdeprecated-non-prototype] 124 | 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 C23 [-Wdeprecated-non-prototype] 125 | 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 C23 [-Wdeprecated-non-prototype] 115 | 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 C23 [-Wdeprecated-non-prototype] 148 | 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 C23 [-Wdeprecated-non-prototype] 136 | 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 C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 115 | 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 C23 [-Wdeprecated-non-prototype] 159 | 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 C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 116 | 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 C23 [-Wdeprecated-non-prototype] 174 | 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 C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 117 | 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 C23 [-Wdeprecated-non-prototype] 189 | 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 C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 118 | 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 C23 [-Wdeprecated-non-prototype] 214 | 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 C23 [-Wdeprecated-non-prototype] 231 | 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 C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 120 | 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 C23 [-Wdeprecated-non-prototype] 246 | 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 C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 121 | 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 C23 [-Wdeprecated-non-prototype] 258 | 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 C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 122 | 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 C23 [-Wdeprecated-non-prototype] 268 | 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 C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 123 | 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 C23 [-Wdeprecated-non-prototype] 280 | 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 C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 124 | 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 C23 [-Wdeprecated-non-prototype] 291 | 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 C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 125 | 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 C23 [-Wdeprecated-non-prototype] 301 | 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 C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 126 | 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 C23 [-Wdeprecated-non-prototype] 308 | 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 C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 127 | 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 C23 [-Wdeprecated-non-prototype] 315 | 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 C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 128 | 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 C23 [-Wdeprecated-non-prototype] 71 | 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 C23 [-Wdeprecated-non-prototype] 73 | 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 C23 [-Wdeprecated-non-prototype] 80 | 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 C23 [-Wdeprecated-non-prototype] 81 | (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 C23 [-Wdeprecated-non-prototype] 111 | 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 C23 [-Wdeprecated-non-prototype] 135 | 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 C23 [-Wdeprecated-non-prototype] 56 | 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 C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 130 | 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 C23 [-Wdeprecated-non-prototype] 180 | 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 C23 [-Wdeprecated-non-prototype] 183 | 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 C23 [-Wdeprecated-non-prototype] 262 | 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 C23 [-Wdeprecated-non-prototype] 271 | 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 C23 [-Wdeprecated-non-prototype] 272 | (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 C23 [-Wdeprecated-non-prototype] 288 | 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 C23 [-Wdeprecated-non-prototype] 300 | 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 C23 [-Wdeprecated-non-prototype] 307 | 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 C23 [-Wdeprecated-non-prototype] 166 | 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 C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 131 | 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 C23 [-Wdeprecated-non-prototype] 51 | 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 C23 [-Wdeprecated-non-prototype] 59 | 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 C23 [-Wdeprecated-non-prototype] 61 | 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 C23 [-Wdeprecated-non-prototype] 63 | 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 C23 [-Wdeprecated-non-prototype] 82 | 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 C23 [-Wdeprecated-non-prototype] 83 | 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 C23 [-Wdeprecated-non-prototype] 85 | 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 C23 [-Wdeprecated-non-prototype] 88 | 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 C23 [-Wdeprecated-non-prototype] 89 | 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 C23 [-Wdeprecated-non-prototype] 93 | 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 C23 [-Wdeprecated-non-prototype] 70 | 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 C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 133 | 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 C23 [-Wdeprecated-non-prototype] 108 | 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 C23 [-Wdeprecated-non-prototype] 110 | 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 C23 [-Wdeprecated-non-prototype] 128 | 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 C23 [-Wdeprecated-non-prototype] 133 | 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 C23 [-Wdeprecated-non-prototype] 143 | 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 C23 [-Wdeprecated-non-prototype] 117 | 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 C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 135 | 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 C23 [-Wdeprecated-non-prototype] 158 | 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 C23 [-Wdeprecated-non-prototype] 169 | 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 C23 [-Wdeprecated-non-prototype] 152 | 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 C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 136 | 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 C23 [-Wdeprecated-non-prototype] 189 | 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 C23 [-Wdeprecated-non-prototype] 191 | 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 C23 [-Wdeprecated-non-prototype] 199 | 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 C23 [-Wdeprecated-non-prototype] 199 | 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 C23 [-Wdeprecated-non-prototype] 201 | 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 C23 [-Wdeprecated-non-prototype] 201 | 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 C23 [-Wdeprecated-non-prototype] 209 | 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 C23 [-Wdeprecated-non-prototype] 211 | 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 C23 [-Wdeprecated-non-prototype] 219 | 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 C23 [-Wdeprecated-non-prototype] 220 | 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 C23 [-Wdeprecated-non-prototype] 238 | 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 C23 [-Wdeprecated-non-prototype] 241 | 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 C23 [-Wdeprecated-non-prototype] 257 | 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 C23 [-Wdeprecated-non-prototype] 268 | 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 C23 [-Wdeprecated-non-prototype] 285 | 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 C23 [-Wdeprecated-non-prototype] 292 | 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 C23 [-Wdeprecated-non-prototype] 293 | 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 C23 [-Wdeprecated-non-prototype] 178 | 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 C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 137 | 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 C23 [-Wdeprecated-non-prototype] 108 | 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 C23 [-Wdeprecated-non-prototype] 88 | 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 C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 139 | 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 C23 [-Wdeprecated-non-prototype] 137 | 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 C23 [-Wdeprecated-non-prototype] 155 | 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 C23 [-Wdeprecated-non-prototype] 187 | 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 C23 [-Wdeprecated-non-prototype] 175 | 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 C23 [-Wdeprecated-non-prototype] 229 | 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 C23 [-Wdeprecated-non-prototype] 221 | 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 C23 [-Wdeprecated-non-prototype] 300 | 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 C23 [-Wdeprecated-non-prototype] 321 | 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 C23 [-Wdeprecated-non-prototype] 294 | 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 C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 140 | 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 C23 [-Wdeprecated-non-prototype] 351 | 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 C23 [-Wdeprecated-non-prototype] 382 | } 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 C23 [-Wdeprecated-non-prototype] 396 | 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 C23 [-Wdeprecated-non-prototype] 325 | 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 C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 52 | 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 C23 [-Wdeprecated-non-prototype] 438 | 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 C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 141 | 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 C23 [-Wdeprecated-non-prototype] 469 | 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 C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 142 | 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 C23 [-Wdeprecated-non-prototype] 514 | 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 C23 [-Wdeprecated-non-prototype] 506 | 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 C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 144 | 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 C23 [-Wdeprecated-non-prototype] 561 | 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 C23 [-Wdeprecated-non-prototype] 552 | 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 C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 145 | 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 C23 [-Wdeprecated-non-prototype] 123 | 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 C23 [-Wdeprecated-non-prototype] 143 | 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 C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 147 | 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 C23 [-Wdeprecated-non-prototype] 233 | 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 C23 [-Wdeprecated-non-prototype] 327 | 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 C23 [-Wdeprecated-non-prototype] 335 | 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 C23 [-Wdeprecated-non-prototype] 356 | 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 C23 [-Wdeprecated-non-prototype] 364 | 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 C23 [-Wdeprecated-non-prototype] 274 | 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 C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 148 | 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 C23 [-Wdeprecated-non-prototype] 413 | 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 C23 [-Wdeprecated-non-prototype] 420 | 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 C23 [-Wdeprecated-non-prototype] 429 | 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 C23 [-Wdeprecated-non-prototype] 436 | 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 C23 [-Wdeprecated-non-prototype] 384 | 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 C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 149 | 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 C23 [-Wdeprecated-non-prototype] 461 | 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 C23 [-Wdeprecated-non-prototype] 464 | 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 C23 [-Wdeprecated-non-prototype] 454 | 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 C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 150 | 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 C23 [-Wdeprecated-non-prototype] 72 | 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 C23 [-Wdeprecated-non-prototype] 73 | 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 C23 [-Wdeprecated-non-prototype] 74 | 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 C23 [-Wdeprecated-non-prototype] 81 | (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 C23 [-Wdeprecated-non-prototype] 88 | 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 C23 [-Wdeprecated-non-prototype] 93 | 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 C23 [-Wdeprecated-non-prototype] 116 | 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 C23 [-Wdeprecated-non-prototype] 119 | 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 C23 [-Wdeprecated-non-prototype] 127 | 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 C23 [-Wdeprecated-non-prototype] 129 | 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 C23 [-Wdeprecated-non-prototype] 149 | 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 C23 [-Wdeprecated-non-prototype] 150 | 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 C23 [-Wdeprecated-non-prototype] 157 | 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 C23 [-Wdeprecated-non-prototype] 158 | 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 C23 [-Wdeprecated-non-prototype] 167 | 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 C23 [-Wdeprecated-non-prototype] 52 | 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 C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 151 | 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 C23 [-Wdeprecated-non-prototype] 197 | 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 C23 [-Wdeprecated-non-prototype] 200 | 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 C23 [-Wdeprecated-non-prototype] 203 | 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 C23 [-Wdeprecated-non-prototype] 206 | 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 C23 [-Wdeprecated-non-prototype] 208 | 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 C23 [-Wdeprecated-non-prototype] 210 | 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 C23 [-Wdeprecated-non-prototype] 212 | 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 C23 [-Wdeprecated-non-prototype] 186 | 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 C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 152 | 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 C23, conflicting with a previous declaration [-Wdeprecated-non-prototype] 227 | extern FILE *popen(); | ^ /usr/include/stdio.h:236:7: note: conflicting prototype is here 236 | 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 C23 [-Wdeprecated-non-prototype] 235 | 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 C23 [-Wdeprecated-non-prototype] 237 | 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 C23 [-Wdeprecated-non-prototype] 243 | 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 C23 [-Wdeprecated-non-prototype] 247 | 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 C23 [-Wdeprecated-non-prototype] 248 | 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 C23 [-Wdeprecated-non-prototype] 249 | 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 C23 [-Wdeprecated-non-prototype] 253 | 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 C23 [-Wdeprecated-non-prototype] 254 | 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 C23 [-Wdeprecated-non-prototype] 289 | 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 C23 [-Wdeprecated-non-prototype] 290 | 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 C23 [-Wdeprecated-non-prototype] 295 | 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 C23 [-Wdeprecated-non-prototype] 220 | 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 C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 153 | 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 C23 [-Wdeprecated-non-prototype] 81 | 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 C23 [-Wdeprecated-non-prototype] 72 | 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 C23 [-Wdeprecated-non-prototype] 114 | 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 C23 [-Wdeprecated-non-prototype] 146 | 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 C23 [-Wdeprecated-non-prototype] 91 | 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 C23 [-Wdeprecated-non-prototype] 158 | 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 C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 155 | 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 C23 [-Wdeprecated-non-prototype] 177 | 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 C23 [-Wdeprecated-non-prototype] 168 | 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 C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 156 | 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 C23 [-Wdeprecated-non-prototype] 190 | 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 C23 [-Wdeprecated-non-prototype] 234 | 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 C23 [-Wdeprecated-non-prototype] 238 | 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 C23 [-Wdeprecated-non-prototype] 201 | 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 C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 158 | 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 C23 [-Wdeprecated-non-prototype] 260 | 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 C23 [-Wdeprecated-non-prototype] 249 | 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 C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 159 | 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 C23 [-Wdeprecated-non-prototype] 97 | 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 C23 [-Wdeprecated-non-prototype] 102 | 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 C23 [-Wdeprecated-non-prototype] 105 | 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 C23 [-Wdeprecated-non-prototype] 106 | 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 C23 [-Wdeprecated-non-prototype] 107 | 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 C23 [-Wdeprecated-non-prototype] 112 | 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 C23 [-Wdeprecated-non-prototype] 116 | 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 C23 [-Wdeprecated-non-prototype] 83 | 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 C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 160 | 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 C23 [-Wdeprecated-non-prototype] 126 | 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 C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 161 | 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 C23 [-Wdeprecated-non-prototype] 151 | 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 C23 [-Wdeprecated-non-prototype] 154 | 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 C23 [-Wdeprecated-non-prototype] 158 | 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 C23 [-Wdeprecated-non-prototype] 139 | 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 C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 162 | 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 C23 [-Wdeprecated-non-prototype] 174 | 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 C23 [-Wdeprecated-non-prototype] 177 | 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 C23 [-Wdeprecated-non-prototype] 165 | 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 C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 163 | 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 C23 [-Wdeprecated-non-prototype] 203 | 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 C23 [-Wdeprecated-non-prototype] 203 | 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 C23 [-Wdeprecated-non-prototype] 207 | 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 C23 [-Wdeprecated-non-prototype] 211 | 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 C23 [-Wdeprecated-non-prototype] 212 | 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 C23 [-Wdeprecated-non-prototype] 215 | 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 C23 [-Wdeprecated-non-prototype] 189 | 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 C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 164 | 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 C23 [-Wdeprecated-non-prototype] 236 | 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 C23 [-Wdeprecated-non-prototype] 237 | 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 C23 [-Wdeprecated-non-prototype] 241 | 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 C23 [-Wdeprecated-non-prototype] 224 | 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 C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 165 | 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 C23 [-Wdeprecated-non-prototype] 264 | 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 C23 [-Wdeprecated-non-prototype] 265 | ungetsc("/"); | ^ optfunc.c:251:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 251 | 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 C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 166 | 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 C23 [-Wdeprecated-non-prototype] 296 | *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 C23 [-Wdeprecated-non-prototype] 300 | 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 C23 [-Wdeprecated-non-prototype] 274 | 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 C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 167 | 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 C23 [-Wdeprecated-non-prototype] 321 | 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 C23 [-Wdeprecated-non-prototype] 310 | 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 C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 168 | 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 C23 [-Wdeprecated-non-prototype] 333 | 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 C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 169 | 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 C23 [-Wdeprecated-non-prototype] 364 | 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 C23 [-Wdeprecated-non-prototype] 353 | 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 C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 170 | 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 C23 [-Wdeprecated-non-prototype] 466 | 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 C23 [-Wdeprecated-non-prototype] 475 | 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 C23 [-Wdeprecated-non-prototype] 480 | 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 C23 [-Wdeprecated-non-prototype] 481 | 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 C23 [-Wdeprecated-non-prototype] 456 | 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 C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 172 | 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 C23 [-Wdeprecated-non-prototype] 75 | (*pendopt->ofunc)(INIT, s); | ^ option.c:99:20: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] 99 | if (set_default = (*s == '+')) | ~~~~~~~~~~~~^~~~~~~~~~~~~ option.c:99:20: note: place parentheses around the assignment to silence this warning 99 | if (set_default = (*s == '+')) | ^ | ( ) option.c:99:20: note: use '==' to turn this assignment into an equality comparison 99 | 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 C23 [-Wdeprecated-non-prototype] 112 | 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 C23 [-Wdeprecated-non-prototype] 114 | 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 C23 [-Wdeprecated-non-prototype] 115 | 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 C23 [-Wdeprecated-non-prototype] 133 | 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 C23 [-Wdeprecated-non-prototype] 136 | 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 C23 [-Wdeprecated-non-prototype] 141 | 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 C23 [-Wdeprecated-non-prototype] 144 | 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 C23 [-Wdeprecated-non-prototype] 159 | *(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 C23 [-Wdeprecated-non-prototype] 179 | 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 C23 [-Wdeprecated-non-prototype] 182 | *(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 C23 [-Wdeprecated-non-prototype] 189 | (*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 C23 [-Wdeprecated-non-prototype] 55 | 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 C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 174 | 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 C23 [-Wdeprecated-non-prototype] 216 | 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 C23 [-Wdeprecated-non-prototype] 219 | 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 C23 [-Wdeprecated-non-prototype] 220 | 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 C23 [-Wdeprecated-non-prototype] 226 | 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 C23 [-Wdeprecated-non-prototype] 227 | 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 C23 [-Wdeprecated-non-prototype] 233 | 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 C23 [-Wdeprecated-non-prototype] 234 | 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 C23 [-Wdeprecated-non-prototype] 255 | 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 C23 [-Wdeprecated-non-prototype] 293 | *(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 C23 [-Wdeprecated-non-prototype] 300 | *(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 C23 [-Wdeprecated-non-prototype] 314 | 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 C23 [-Wdeprecated-non-prototype] 326 | 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 C23 [-Wdeprecated-non-prototype] 334 | 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 C23 [-Wdeprecated-non-prototype] 347 | (*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 C23 [-Wdeprecated-non-prototype] 364 | 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 C23 [-Wdeprecated-non-prototype] 372 | 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 C23 [-Wdeprecated-non-prototype] 203 | 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 C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 175 | 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 C23 [-Wdeprecated-non-prototype] 389 | 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 C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 45 | 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 C23 [-Wdeprecated-non-prototype] 409 | 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 C23 [-Wdeprecated-non-prototype] 404 | 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 C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 43 | 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 C23 [-Wdeprecated-non-prototype] 423 | 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 C23 [-Wdeprecated-non-prototype] 418 | 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 C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 176 | 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 C23 [-Wdeprecated-non-prototype] 439 | 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 C23 [-Wdeprecated-non-prototype] 434 | 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 C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 177 | 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 C23 [-Wdeprecated-non-prototype] 467 | 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 C23 [-Wdeprecated-non-prototype] 462 | 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 C23 [-Wdeprecated-non-prototype] 494 | 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 C23 [-Wdeprecated-non-prototype] 485 | 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 C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 44 | 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 C23 [-Wdeprecated-non-prototype] 521 | 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 C23 [-Wdeprecated-non-prototype] 536 | 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 C23 [-Wdeprecated-non-prototype] 537 | 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 C23 [-Wdeprecated-non-prototype] 511 | 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 C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 180 | 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 C23 [-Wdeprecated-non-prototype] 260 | 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 C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 182 | 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 C23 [-Wdeprecated-non-prototype] 84 | 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 C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 183 | 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 C23 [-Wdeprecated-non-prototype] 185 | 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 C23 [-Wdeprecated-non-prototype] 174 | 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 C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 186 | 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 C23 [-Wdeprecated-non-prototype] 224 | 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 C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 187 | 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 C23 [-Wdeprecated-non-prototype] 65 | 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 C23 [-Wdeprecated-non-prototype] 95 | 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 C23 [-Wdeprecated-non-prototype] 151 | 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 C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 190 | 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 C23 [-Wdeprecated-non-prototype] 173 | 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 C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 191 | public void putstr (); | ^ output.c:194:10: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] 194 | if (neg = (num < 0)) | ~~~~^~~~~~~~~~~ output.c:194:10: note: place parentheses around the assignment to silence this warning 194 | if (neg = (num < 0)) | ^ | ( ) output.c:194:10: note: use '==' to turn this assignment into an equality comparison 194 | 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 C23 [-Wdeprecated-non-prototype] 185 | 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 C23 [-Wdeprecated-non-prototype] 217 | 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 C23 [-Wdeprecated-non-prototype] 296 | 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 C23 [-Wdeprecated-non-prototype] 261 | 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 C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 192 | 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 C23 [-Wdeprecated-non-prototype] 320 | 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 C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 193 | 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 C23 [-Wdeprecated-non-prototype] 338 | 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 C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 194 | 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 C23 [-Wdeprecated-non-prototype] 56 | 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 C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 195 | 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 C23 [-Wdeprecated-non-prototype] 77 | 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 C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 196 | 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 C23 [-Wdeprecated-non-prototype] 94 | 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 C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 197 | 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 C23 [-Wdeprecated-non-prototype] 135 | 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 C23 [-Wdeprecated-non-prototype] 139 | 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 C23 [-Wdeprecated-non-prototype] 152 | 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 C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 200 | 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 C23 [-Wdeprecated-non-prototype] 171 | 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 C23 [-Wdeprecated-non-prototype] 175 | 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 C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 202 | 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 C23 [-Wdeprecated-non-prototype] 196 | 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 C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 203 | 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 C23 [-Wdeprecated-non-prototype] 228 | 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 C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 204 | 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 C23 [-Wdeprecated-non-prototype] 78 | 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 C23 [-Wdeprecated-non-prototype] 79 | 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 C23 [-Wdeprecated-non-prototype] 80 | 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 C23 [-Wdeprecated-non-prototype] 81 | 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 C23 [-Wdeprecated-non-prototype] 98 | 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 C23 [-Wdeprecated-non-prototype] 109 | 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 C23 [-Wdeprecated-non-prototype] 123 | 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 C23 [-Wdeprecated-non-prototype] 120 | 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 C23 [-Wdeprecated-non-prototype] 145 | 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 C23 [-Wdeprecated-non-prototype] 147 | 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 C23 [-Wdeprecated-non-prototype] 140 | 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 C23 [-Wdeprecated-non-prototype] 173 | 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 C23 [-Wdeprecated-non-prototype] 189 | 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 C23 [-Wdeprecated-non-prototype] 160 | 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 C23 [-Wdeprecated-non-prototype] 226 | 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 C23 [-Wdeprecated-non-prototype] 229 | 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 C23 [-Wdeprecated-non-prototype] 232 | 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 C23 [-Wdeprecated-non-prototype] 241 | (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 C23 [-Wdeprecated-non-prototype] 253 | 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 C23 [-Wdeprecated-non-prototype] 270 | 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 C23 [-Wdeprecated-non-prototype] 272 | 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 C23 [-Wdeprecated-non-prototype] 202 | 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 C23 [-Wdeprecated-non-prototype] 287 | 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 C23 [-Wdeprecated-non-prototype] 355 | 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 C23 [-Wdeprecated-non-prototype] 342 | 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 C23 [-Wdeprecated-non-prototype] 366 | 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 C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 206 | 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 C23 [-Wdeprecated-non-prototype] 112 | 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 C23 [-Wdeprecated-non-prototype] 139 | 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 C23 [-Wdeprecated-non-prototype] 206 | 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 C23 [-Wdeprecated-non-prototype] 209 | 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 C23 [-Wdeprecated-non-prototype] 214 | 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 C23 [-Wdeprecated-non-prototype] 216 | (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 C23 [-Wdeprecated-non-prototype] 217 | 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 C23 [-Wdeprecated-non-prototype] 180 | 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 C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 209 | 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 C23 [-Wdeprecated-non-prototype] 233 | 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 C23 [-Wdeprecated-non-prototype] 250 | 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 C23 [-Wdeprecated-non-prototype] 254 | 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 C23 [-Wdeprecated-non-prototype] 246 | 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 C23 [-Wdeprecated-non-prototype] 336 | 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 C23 [-Wdeprecated-non-prototype] 401 | 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 C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 212 | 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 C23 [-Wdeprecated-non-prototype] 436 | 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 C23 [-Wdeprecated-non-prototype] 493 | (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 C23 [-Wdeprecated-non-prototype] 476 | 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 C23 [-Wdeprecated-non-prototype] 575 | 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 C23 [-Wdeprecated-non-prototype] 542 | 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 C23 [-Wdeprecated-non-prototype] 643 | 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 C23 [-Wdeprecated-non-prototype] 646 | 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 C23 [-Wdeprecated-non-prototype] 646 | 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 C23 [-Wdeprecated-non-prototype] 712 | 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 C23 [-Wdeprecated-non-prototype] 720 | 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 C23 [-Wdeprecated-non-prototype] 721 | 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 C23 [-Wdeprecated-non-prototype] 723 | 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 C23 [-Wdeprecated-non-prototype] 674 | 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 C23 [-Wdeprecated-non-prototype] 746 | 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 C23 [-Wdeprecated-non-prototype] 780 | 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 C23 [-Wdeprecated-non-prototype] 789 | 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 C23 [-Wdeprecated-non-prototype] 815 | 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 C23 [-Wdeprecated-non-prototype] 732 | 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 C23 [-Wdeprecated-non-prototype] 907 | 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 C23 [-Wdeprecated-non-prototype] 982 | 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 C23 [-Wdeprecated-non-prototype] 1006 | 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 C23 [-Wdeprecated-non-prototype] 892 | 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 C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 215 | 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 C23 [-Wdeprecated-non-prototype] 1030 | 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 C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 216 | 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 C23 [-Wdeprecated-non-prototype] 58 | 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 C23 [-Wdeprecated-non-prototype] 76 | 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 C23 [-Wdeprecated-non-prototype] 92 | 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 C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 218 | 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 C23 [-Wdeprecated-non-prototype] 122 | 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 C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 219 | 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 C23 [-Wdeprecated-non-prototype] 184 | 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 C23 [-Wdeprecated-non-prototype] 197 | 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 C23 [-Wdeprecated-non-prototype] 238 | 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 C23 [-Wdeprecated-non-prototype] 64 | 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 C23 [-Wdeprecated-non-prototype] 93 | 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 C23 [-Wdeprecated-non-prototype] 106 | 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 C23 [-Wdeprecated-non-prototype] 114 | 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 C23 [-Wdeprecated-non-prototype] 143 | 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 C23 [-Wdeprecated-non-prototype] 51 | 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 C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 221 | 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 C23 [-Wdeprecated-non-prototype] 168 | 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 C23 [-Wdeprecated-non-prototype] 171 | 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 C23 [-Wdeprecated-non-prototype] 187 | 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 C23 [-Wdeprecated-non-prototype] 196 | 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 C23 [-Wdeprecated-non-prototype] 206 | 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 C23 [-Wdeprecated-non-prototype] 93 | 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 C23 [-Wdeprecated-non-prototype] 102 | 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: main.c(main.o:(save)): warning: strcpy() is almost always misused, please use strlcpy() ld: warning: os.c(os.o:(errno_message)): warning: sprintf() is often misused, please use snprintf() 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 C23 [-Wdeprecated-non-prototype] 219 | 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 C23 [-Wdeprecated-non-prototype] 240 | 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 C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 91 | 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] 278 | usage(); | ^ lesskey.c:286:4: warning: call to undeclared function 'usage'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 286 | usage(); | ^ lesskey.c:290:3: warning: call to undeclared function 'usage'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 290 | usage(); | ^ lesskey.c:264:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 264 | 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 C23 [-Wdeprecated-non-prototype] 317 | 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 C23 [-Wdeprecated-non-prototype] 381 | 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 C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 4 | 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 C23 [-Wdeprecated-non-prototype] 393 | 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 C23 [-Wdeprecated-non-prototype] 406 | 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 C23 [-Wdeprecated-non-prototype] 428 | 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 C23 [-Wdeprecated-non-prototype] 423 | 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 C23 [-Wdeprecated-non-prototype] 438 | 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 C23 [-Wdeprecated-non-prototype] 466 | 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 C23 [-Wdeprecated-non-prototype] 482 | 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 C23 [-Wdeprecated-non-prototype] 512 | 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 C23 [-Wdeprecated-non-prototype] 504 | findaction(actname) | ^ lesskey.c:516:1: warning: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] 516 | 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 C23 [-Wdeprecated-non-prototype] 523 | 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 C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 192 | 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 C23 [-Wdeprecated-non-prototype] 535 | 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] 617 | 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 C23 [-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 1764750571.99 ===> 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 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 less /exopi-obj/pobj/zh-cless-290/fake-amd64/usr/local/bin/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 1764750574.22 ===> chinese/cless ===> Cleaning for zh-cless-290p2 >>> Ended at 1764750574.58 max_stuck=0.00/build=13.53/package=2.19/clean=0.44