=> "/opt/pkg/bin/bmake" ["-C", "/Volumes/data/jenkins/workspace/pkgsrc-macos-trunk-arm64/x11/xless", "all", "BATCH=1", "DEPENDS_TARGET=/nonexistent"] WARNING: [license.mk] Every package should define a LICENSE. ===> Building for xless-1.7nb4 making all in ./regexp... rm -f regexp.o clang -c -pipe -Os -I/opt/pkg/include -Wall -Wpointer-arith -no-cpp-precomp -I. -I/opt/pkg/include -D__aarch64__ -D__DARWIN__ -DNO_ALLOCA -DCSRG_BASED regexp.c regexp.c:213:3: warning: passing arguments to 'regerror' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 213 | FAIL("NULL argument"); | ^ regexp.c:147:27: note: expanded from macro 'FAIL' 147 | #define FAIL(m) { regerror(m); return(NULL); } | ^ regexp.c:223:6: warning: passing arguments to 'regc' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 223 | regc(MAGIC); | ^ regexp.c:224:9: warning: passing arguments to 'reg' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 224 | if (reg(0, &flags) == NULL) | ^ regexp.c:229:3: warning: passing arguments to 'regerror' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 229 | FAIL("regexp too big"); | ^ regexp.c:147:27: note: expanded from macro 'FAIL' 147 | #define FAIL(m) { regerror(m); return(NULL); } | ^ regexp.c:234:3: warning: passing arguments to 'regerror' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 234 | FAIL("out of space"); | ^ regexp.c:147:27: note: expanded from macro 'FAIL' 147 | #define FAIL(m) { regerror(m); return(NULL); } | ^ regexp.c:240:6: warning: passing arguments to 'regc' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 240 | regc(MAGIC); | ^ regexp.c:241:9: warning: passing arguments to 'reg' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 241 | if (reg(0, &flags) == NULL) | ^ regexp.c:250:16: warning: passing arguments to 'regnext' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 250 | if (OP(regnext(scan)) == END) { /* Only one top-level choice. */ | ^ regexp.c:270:39: warning: passing arguments to 'regnext' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 270 | for (; scan != NULL; scan = regnext(scan)) | ^ regexp.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 | regcomp(exp) | ^ In file included from regexp.c:35: ./regexp.h:22: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] 22 | extern regexp *regcomp(); | ^ regexp.c:308:4: warning: passing arguments to 'regerror' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 308 | FAIL("too many ()"); | ^ regexp.c:147:27: note: expanded from macro 'FAIL' 147 | #define FAIL(m) { regerror(m); return(NULL); } | ^ regexp.c:311:16: warning: passing arguments to 'regnode' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 311 | ret = regnode(OPEN+parno); | ^ regexp.c:316:16: warning: passing arguments to 'regbranch' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 316 | br = regbranch(&flags); | ^ regexp.c:320:10: warning: passing arguments to 'regtail' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 320 | regtail(ret, br); /* OPEN -> first. */ | ^ regexp.c:328:17: warning: passing arguments to 'regbranch' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 328 | br = regbranch(&flags); | ^ regexp.c:331:10: warning: passing arguments to 'regtail' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 331 | regtail(ret, br); /* BRANCH -> BRANCH. */ | ^ regexp.c:338:17: warning: passing arguments to 'regnode' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 338 | ender = regnode((paren) ? CLOSE+parno : END); | ^ regexp.c:339:9: warning: passing arguments to 'regtail' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 339 | regtail(ret, ender); | ^ regexp.c:342:41: warning: passing arguments to 'regnext' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 342 | for (br = ret; br != NULL; br = regnext(br)) | ^ regexp.c:343:12: warning: passing arguments to 'regoptail' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 343 | regoptail(br, ender); | ^ regexp.c:347:3: warning: passing arguments to 'regerror' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 347 | FAIL("unmatched ()"); | ^ regexp.c:147:27: note: expanded from macro 'FAIL' 147 | #define FAIL(m) { regerror(m); return(NULL); } | ^ regexp.c:350:4: warning: passing arguments to 'regerror' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 350 | FAIL("unmatched ()"); | ^ regexp.c:147:27: note: expanded from macro 'FAIL' 147 | #define FAIL(m) { regerror(m); return(NULL); } | ^ regexp.c:352:4: warning: passing arguments to 'regerror' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 352 | FAIL("junk on end"); /* "Can't happen". */ | ^ regexp.c:147:27: note: expanded from macro 'FAIL' 147 | #define FAIL(m) { regerror(m); return(NULL); } | ^ regexp.c:293:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 293 | reg(paren, flagp) | ^ regexp.c:173: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] 173 | STATIC char *reg(); | ^ regexp.c:375:15: warning: passing arguments to 'regnode' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 375 | ret = regnode(BRANCH); | ^ regexp.c:379:20: warning: passing arguments to 'regpiece' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 379 | latest = regpiece(&flags); | ^ regexp.c:386:11: warning: passing arguments to 'regtail' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 386 | regtail(chain, latest); | ^ regexp.c:390:17: warning: passing arguments to 'regnode' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 390 | (void) regnode(NOTHING); | ^ regexp.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 | regbranch(flagp) | ^ regexp.c: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 | STATIC char *regbranch(); | ^ regexp.c:413:15: warning: passing arguments to 'regatom' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 413 | ret = regatom(&flags); | ^ regexp.c:424:3: warning: passing arguments to 'regerror' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 424 | FAIL("*+ operand could be empty"); | ^ regexp.c:147:27: note: expanded from macro 'FAIL' 147 | #define FAIL(m) { regerror(m); return(NULL); } | ^ regexp.c:428:12: warning: passing arguments to 'reginsert' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 428 | reginsert(STAR, ret); | ^ regexp.c:431:12: warning: passing arguments to 'reginsert' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 431 | reginsert(BRANCH, ret); /* Either x */ | ^ regexp.c:432:25: warning: passing arguments to 'regnode' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 432 | regoptail(ret, regnode(BACK)); /* and loop */ | ^ regexp.c:432:12: warning: passing arguments to 'regoptail' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 432 | regoptail(ret, regnode(BACK)); /* and loop */ | ^ regexp.c:433:12: warning: passing arguments to 'regoptail' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 433 | regoptail(ret, ret); /* back */ | ^ regexp.c:434:23: warning: passing arguments to 'regnode' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 434 | regtail(ret, regnode(BRANCH)); /* or */ | ^ regexp.c:434:10: warning: passing arguments to 'regtail' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 434 | regtail(ret, regnode(BRANCH)); /* or */ | ^ regexp.c:435:23: warning: passing arguments to 'regnode' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 435 | regtail(ret, regnode(NOTHING)); /* null. */ | ^ regexp.c:435:10: warning: passing arguments to 'regtail' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 435 | regtail(ret, regnode(NOTHING)); /* null. */ | ^ regexp.c:437:12: warning: passing arguments to 'reginsert' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 437 | reginsert(PLUS, ret); | ^ regexp.c:440:17: warning: passing arguments to 'regnode' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 440 | next = regnode(BRANCH); /* Either */ | ^ regexp.c:441:10: warning: passing arguments to 'regtail' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 441 | regtail(ret, next); | ^ regexp.c:442:18: warning: passing arguments to 'regnode' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 442 | regtail(regnode(BACK), ret); /* loop back */ | ^ regexp.c:442:10: warning: passing arguments to 'regtail' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 442 | regtail(regnode(BACK), ret); /* loop back */ | ^ regexp.c:443:24: warning: passing arguments to 'regnode' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 443 | regtail(next, regnode(BRANCH)); /* or */ | ^ regexp.c:443:10: warning: passing arguments to 'regtail' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 443 | regtail(next, regnode(BRANCH)); /* or */ | ^ regexp.c:444:23: warning: passing arguments to 'regnode' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 444 | regtail(ret, regnode(NOTHING)); /* null. */ | ^ regexp.c:444:10: warning: passing arguments to 'regtail' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 444 | regtail(ret, regnode(NOTHING)); /* null. */ | ^ regexp.c:447:12: warning: passing arguments to 'reginsert' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 447 | reginsert(BRANCH, ret); /* Either x */ | ^ regexp.c:448:23: warning: passing arguments to 'regnode' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 448 | regtail(ret, regnode(BRANCH)); /* or */ | ^ regexp.c:448:10: warning: passing arguments to 'regtail' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 448 | regtail(ret, regnode(BRANCH)); /* or */ | ^ regexp.c:449:17: warning: passing arguments to 'regnode' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 449 | next = regnode(NOTHING); /* null. */ | ^ regexp.c:450:10: warning: passing arguments to 'regtail' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 450 | regtail(ret, next); | ^ regexp.c:451:12: warning: passing arguments to 'regoptail' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 451 | regoptail(ret, next); | ^ regexp.c:455:3: warning: passing arguments to 'regerror' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 455 | FAIL("nested *?+"); | ^ regexp.c:147:27: note: expanded from macro 'FAIL' 147 | #define FAIL(m) { regerror(m); return(NULL); } | ^ regexp.c:405:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 405 | regpiece(flagp) | ^ regexp.c: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 | STATIC char *regpiece(); | ^ regexp.c:480:16: warning: passing arguments to 'regnode' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 480 | ret = regnode(BOL); | ^ regexp.c:483:16: warning: passing arguments to 'regnode' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 483 | ret = regnode(EOL); | ^ regexp.c:486:16: warning: passing arguments to 'regnode' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 486 | ret = regnode(ANY); | ^ regexp.c:494:18: warning: passing arguments to 'regnode' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 494 | ret = regnode(ANYBUT); | ^ regexp.c:497:18: warning: passing arguments to 'regnode' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 497 | ret = regnode(ANYOF); | ^ regexp.c:499:9: warning: passing arguments to 'regc' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 499 | regc(*regparse++); | ^ regexp.c:504:11: warning: passing arguments to 'regc' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 504 | regc('-'); | ^ regexp.c:509:8: warning: passing arguments to 'regerror' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 509 | FAIL("invalid [] range"); | ^ regexp.c:147:27: note: expanded from macro 'FAIL' 147 | #define FAIL(m) { regerror(m); return(NULL); } | ^ regexp.c:511:12: warning: passing arguments to 'regc' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 511 | regc(class); | ^ regexp.c:515:10: warning: passing arguments to 'regc' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 515 | regc(*regparse++); | ^ regexp.c:517:8: warning: passing arguments to 'regc' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 517 | regc('\0'); | ^ regexp.c:519:5: warning: passing arguments to 'regerror' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 519 | FAIL("unmatched []"); | ^ regexp.c:147:27: note: expanded from macro 'FAIL' 147 | #define FAIL(m) { regerror(m); return(NULL); } | ^ regexp.c:534:3: warning: passing arguments to 'regerror' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 534 | FAIL("internal urp"); /* Supposed to be caught earlier. */ | ^ regexp.c:147:27: note: expanded from macro 'FAIL' 147 | #define FAIL(m) { regerror(m); return(NULL); } | ^ regexp.c:539:3: warning: passing arguments to 'regerror' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 539 | FAIL("?+* follows nothing"); | ^ regexp.c:147:27: note: expanded from macro 'FAIL' 147 | #define FAIL(m) { regerror(m); return(NULL); } | ^ regexp.c:544:4: warning: passing arguments to 'regerror' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 544 | FAIL("trailing \\"); | ^ regexp.c:147:27: note: expanded from macro 'FAIL' 147 | #define FAIL(m) { regerror(m); return(NULL); } | ^ regexp.c:547:17: warning: passing arguments to 'regnode' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 547 | ret = regnode(WORDA); | ^ regexp.c:550:17: warning: passing arguments to 'regnode' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 550 | ret = regnode(WORDZ); | ^ regexp.c:589:17: warning: passing arguments to 'regnode' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 589 | ret = regnode(EXACTLY); | ^ regexp.c:595:10: warning: passing arguments to 'regc' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 595 | regc(ch); /* Add cur to string */ | ^ regexp.c:604:10: warning: passing arguments to 'regc' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 604 | regc(ch); /* dump cur char */ | ^ regexp.c:615:10: warning: passing arguments to 'regc' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 615 | regc(ch); /* Cur char OK */ | ^ regexp.c:632:8: warning: passing arguments to 'regc' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 632 | regc('\0'); | ^ regexp.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 | regatom(flagp) | ^ regexp.c:176: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] 176 | STATIC char *regatom(); | ^ regexp.c:647:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 647 | regnode(op) | ^ regexp.c:177: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] 177 | STATIC char *regnode(); | ^ regexp.c:672:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 672 | regc(b) | ^ regexp.c:179: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] 179 | STATIC void regc(); | ^ regexp.c:687:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 687 | reginsert(op, opnd) | ^ regexp.c: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 | STATIC void reginsert(); | ^ regexp.c:730:17: warning: passing arguments to 'regnext' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 730 | temp = regnext(scan); | ^ regexp.c:716:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 716 | regtail(p, val) | ^ regexp.c:181: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] 181 | STATIC void regtail(); | ^ regexp.c:748:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 748 | regoptail(p, val) | ^ regexp.c:182: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] 182 | STATIC void regoptail(); | ^ regexp.c:792: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] 792 | extern char *strchr(); | ^ regexp.c:796:11: warning: passing arguments to 'regerror' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 796 | regerror("NULL parameter"); | ^ regexp.c:802:11: warning: passing arguments to 'regerror' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 802 | regerror("corrupted program"); | ^ regexp.c:823:16: warning: passing arguments to 'regtry' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 823 | return(regtry(prog, string)); | ^ regexp.c:830:14: warning: passing arguments to 'regtry' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 830 | if (regtry(prog, s)) | ^ regexp.c:837:14: warning: passing arguments to 'regtry' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 837 | if (regtry(prog, s)) | ^ regexp.c:787:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 787 | regexec(prog, string) | ^ In file included from regexp.c:35: ./regexp.h:23: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] 23 | extern int regexec(); | ^ regexp.c:867:14: warning: passing arguments to 'regmatch' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 867 | if (regmatch(prog->program + 1)) { | ^ regexp.c:849:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 849 | regtry(prog, string) | ^ regexp.c:773: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] 773 | STATIC int regtry(); | ^ regexp.c:891: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] 891 | extern char *strchr(); | ^ regexp.c:903:17: warning: passing arguments to 'regnext' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 903 | next = regnext(scan); | ^ regexp.c:1029:21: warning: passing arguments to 'regnext' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1029 | scan = regnext(scan); | ^ regexp.c:1052:19: warning: passing arguments to 'regrepeat' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1052 | no = regrepeat(OPERAND(scan)); | ^ regexp.c:1069:12: warning: passing arguments to 'regerror' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1069 | regerror("memory corruption"); | ^ regexp.c:1081:10: warning: passing arguments to 'regerror' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1081 | regerror("corrupted pointers"); | ^ regexp.c:886:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 886 | regmatch(prog) | ^ regexp.c:774: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] 774 | STATIC int regmatch(); | ^ regexp.c:1122:11: warning: passing arguments to 'regerror' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1122 | regerror("internal foulup"); | ^ regexp.c:1089:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1089 | regrepeat(p) | ^ regexp.c:775: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] 775 | STATIC int regrepeat(); | ^ regexp.c:1135:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1135 | regnext(p) | ^ regexp.c:178: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] 178 | STATIC char *regnext(); | ^ 120 warnings generated. rm -f regsub.o clang -c -pipe -Os -I/opt/pkg/include -Wall -Wpointer-arith -no-cpp-precomp -I. -I/opt/pkg/include -D__aarch64__ -D__DARWIN__ -DNO_ALLOCA -DCSRG_BASED regsub.c regsub.c:48:11: warning: passing arguments to 'regerror' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 48 | regerror("NULL parm to regsub"); | ^ regsub.c:52:11: warning: passing arguments to 'regerror' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 52 | regerror("damaged regexp fed to regsub"); | ^ regsub.c:74:13: warning: passing arguments to 'regerror' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 74 | regerror("damaged match string"); | ^ regsub.c:36:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 36 | regsub(prog, source, dest) | ^ In file included from regsub.c:21: ./regexp.h:24: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] 24 | extern void regsub(); | ^ 5 warnings generated. rm -f regerror.o clang -c -pipe -Os -I/opt/pkg/include -Wall -Wpointer-arith -no-cpp-precomp -I. -I/opt/pkg/include -D__aarch64__ -D__DARWIN__ -DNO_ALLOCA -DCSRG_BASED regerror.c regerror.c:5:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 5 | regerror(s) | ^ In file included from regerror.c:1: ./regexp.h:25: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] 25 | extern void regerror(); | ^ 2 warnings generated. rm -f libregexp.a ar clq libregexp.a regexp.o regsub.o regerror.o ranlib libregexp.a clang -pipe -Os -I/opt/pkg/include -Wall -Wpointer-arith -no-cpp-precomp -Iregexp -I/opt/pkg/include -D__aarch64__ -D__DARWIN__ -DNO_ALLOCA -DCSRG_BASED -DHELPFILE=\"/opt/pkg/lib/X11/xless.help\" -DTILDE_EXPANSION -DDEFEDITOR=\"/usr/bin/vi\" -DPRINTCMD=\"/usr/bin/lpr\" -I/opt/pkg/include -c help.c In file included from help.c:35: ./xless.h:43:9: warning: '__P' macro redefined [-Wmacro-redefined] 43 | #define __P(a) a | ^ /Applications/Xcode-16.4.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.5.sdk/usr/include/sys/cdefs.h:115:9: note: previous definition is here 115 | #define __P(protos) protos /* full-blown ANSI C */ | ^ In file included from help.c:35: ./xless.h:237:1: warning: return type of 'main' is not 'int' [-Wmain-return-type] 237 | void main __P((int, char *[])); | ^ ./xless.h:237:1: note: change return type to 'int' 237 | void main __P((int, char *[])); | ^~~~ | int help.c:49:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 49 | createHelp(top) | ^ help.c:131:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 131 | PopdownHelp(w, helpWidget, junk) | ^ help.c:150:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 150 | PopupHelp(w, closure, callData) | ^ 5 warnings generated. clang -pipe -Os -I/opt/pkg/include -Wall -Wpointer-arith -no-cpp-precomp -Iregexp -I/opt/pkg/include -D__aarch64__ -D__DARWIN__ -DNO_ALLOCA -DCSRG_BASED -DHELPFILE=\"/opt/pkg/lib/X11/xless.help\" -DTILDE_EXPANSION -DDEFEDITOR=\"/usr/bin/vi\" -DPRINTCMD=\"/usr/bin/lpr\" -I/opt/pkg/include -c init.c In file included from init.c:41: ./xless.h:43:9: warning: '__P' macro redefined [-Wmacro-redefined] 43 | #define __P(a) a | ^ /Applications/Xcode-16.4.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.5.sdk/usr/include/sys/cdefs.h:115:9: note: previous definition is here 115 | #define __P(protos) protos /* full-blown ANSI C */ | ^ In file included from init.c:41: ./xless.h:237:1: warning: return type of 'main' is not 'int' [-Wmain-return-type] 237 | void main __P((int, char *[])); | ^ ./xless.h:237:1: note: change return type to 'int' 237 | void main __P((int, char *[])); | ^~~~ | int init.c:63:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 63 | fixNewText(text, lp, wp, hp) | ^ init.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 | restartNewInputHandler(closure, ignored) | ^ init.c:111:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 111 | handleNewInput(closure, source, id) | ^ init.c:185:5: warning: call to undeclared library function 'exit' with type 'void (int) __attribute__((noreturn))'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 185 | exit(1); | ^ init.c:185:5: note: include the header or explicitly provide a declaration for 'exit' init.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 | readFile(fd, wi, szp) | ^ init.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 | readStdIn(fd, wi, szp) | ^ init.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 | InitData(fd, wi) | ^ init.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 | makeButton(parent, sensitive, vertdist, prevwidg, procptr, wininfo, | ^ init.c:374:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 374 | MakeToolbox(parent, wi, filename) | ^ init.c:491:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 491 | MakeText(parent, wi, data, ignoreGeom) | ^ init.c:580:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 580 | SetXNames(top, filename) | ^ init.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 | SetWMHints(wi) | ^ init.c:644:24: warning: variable 'baseHeight' set but not used [-Wunused-but-set-variable] 644 | Dimension baseWidth, baseHeight; | ^ 15 warnings generated. clang -pipe -Os -I/opt/pkg/include -Wall -Wpointer-arith -no-cpp-precomp -Iregexp -I/opt/pkg/include -D__aarch64__ -D__DARWIN__ -DNO_ALLOCA -DCSRG_BASED -DHELPFILE=\"/opt/pkg/lib/X11/xless.help\" -DTILDE_EXPANSION -DDEFEDITOR=\"/usr/bin/vi\" -DPRINTCMD=\"/usr/bin/lpr\" -I/opt/pkg/include -c popup.c In file included from popup.c:38: ./xless.h:43:9: warning: '__P' macro redefined [-Wmacro-redefined] 43 | #define __P(a) a | ^ /Applications/Xcode-16.4.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.5.sdk/usr/include/sys/cdefs.h:115:9: note: previous definition is here 115 | #define __P(protos) protos /* full-blown ANSI C */ | ^ In file included from popup.c:38: ./xless.h:237:1: warning: return type of 'main' is not 'int' [-Wmain-return-type] 237 | void main __P((int, char *[])); | ^ ./xless.h:237:1: note: change return type to 'int' 237 | void main __P((int, char *[])); | ^~~~ | int popup.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 | DialogBox(top, confFunc, confData, label, btnLabel, selection) | ^ popup.c:71:44: warning: variable 'cancel' set but not used [-Wunused-but-set-variable] 71 | Widget popup, form, lbl, input, confirm, cancel; | ^ popup.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 | toggleSearchType(widget, closure, callData) | ^ popup.c:187:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 187 | SearchBox(top, srchFunc, wi, label, btnLabel, selection) | ^ popup.c:203:55: warning: variable 'cancel' set but not used [-Wunused-but-set-variable] 203 | Widget popup, form, lbl, input, searchType, search, cancel; | ^ popup.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 | popdownBox(widget, closure, callData) | ^ 8 warnings generated. clang -pipe -Os -I/opt/pkg/include -Wall -Wpointer-arith -no-cpp-precomp -Iregexp -I/opt/pkg/include -D__aarch64__ -D__DARWIN__ -DNO_ALLOCA -DCSRG_BASED -DHELPFILE=\"/opt/pkg/lib/X11/xless.help\" -DTILDE_EXPANSION -DDEFEDITOR=\"/usr/bin/vi\" -DPRINTCMD=\"/usr/bin/lpr\" -I/opt/pkg/include -c util.c In file included from util.c:35: ./xless.h:43:9: warning: '__P' macro redefined [-Wmacro-redefined] 43 | #define __P(a) a | ^ /Applications/Xcode-16.4.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.5.sdk/usr/include/sys/cdefs.h:115:9: note: previous definition is here 115 | #define __P(protos) protos /* full-blown ANSI C */ | ^ In file included from util.c:35: ./xless.h:237:1: warning: return type of 'main' is not 'int' [-Wmain-return-type] 237 | void main __P((int, char *[])); | ^ ./xless.h:237:1: note: change return type to 'int' 237 | void main __P((int, char *[])); | ^~~~ | int util.c:59:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 59 | SetPopup(top, wdg) | ^ util.c:118:5: warning: call to undeclared library function 'exit' with type 'void (int) __attribute__((noreturn))'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 118 | exit(1); | ^ util.c:118:5: note: include the header or explicitly provide a declaration for 'exit' util.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 | popdownCouldntOpen(widget, closure, callData) | ^ util.c:141:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 141 | CouldntOpen(top, filename) | ^ util.c:164:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 164 | TildeExpand(filename) | ^ 7 warnings generated. clang -pipe -Os -I/opt/pkg/include -Wall -Wpointer-arith -no-cpp-precomp -Iregexp -I/opt/pkg/include -D__aarch64__ -D__DARWIN__ -DNO_ALLOCA -DCSRG_BASED -DHELPFILE=\"/opt/pkg/lib/X11/xless.help\" -DTILDE_EXPANSION -DDEFEDITOR=\"/usr/bin/vi\" -DPRINTCMD=\"/usr/bin/lpr\" -I/opt/pkg/include -c callbacks.c In file included from callbacks.c:37: ./xless.h:43:9: warning: '__P' macro redefined [-Wmacro-redefined] 43 | #define __P(a) a | ^ /Applications/Xcode-16.4.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.5.sdk/usr/include/sys/cdefs.h:115:9: note: previous definition is here 115 | #define __P(protos) protos /* full-blown ANSI C */ | ^ In file included from callbacks.c:37: ./xless.h:237:1: warning: return type of 'main' is not 'int' [-Wmain-return-type] 237 | void main __P((int, char *[])); | ^ ./xless.h:237:1: note: change return type to 'int' 237 | void main __P((int, char *[])); | ^~~~ | int callbacks.c:50:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 50 | getReadOnlySource(w, string) | ^ callbacks.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 | Quit(widget, closure, callData) | ^ callbacks.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 | Cancel(widget, closure, callData) | ^ callbacks.c:93:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 93 | CallEditor(widget, closure, callData) | ^ callbacks.c:129:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 129 | Reload(widget, closure, callData) | ^ callbacks.c:148:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 148 | find(text, wi, offset) | ^ callbacks.c:195:2: warning: call to undeclared library function 'exit' with type 'void (int) __attribute__((noreturn))'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 195 | exit(1); | ^ callbacks.c:195:2: note: include the header or explicitly provide a declaration for 'exit' callbacks.c:224:16: warning: passing arguments to 'regcomp' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 224 | pat = regcomp(str); | ^ callbacks.c:230:21: warning: passing arguments to 'regexec' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 230 | } else if (regexec(pat, text)) { | ^ callbacks.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 | doSearch(wi) | ^ callbacks.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 | SearchNext(widget, closure, callData) | ^ callbacks.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 | popdownAndSearch(widget, closure, callData) | ^ callbacks.c:299:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 299 | Search(widget, closure, callData) | ^ callbacks.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 | popdownAndChange(widget, closure, callData) | ^ callbacks.c:378:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 378 | ChangeFile(widget, closure, callData) | ^ callbacks.c:399:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 399 | popdownAndCreate(widget, closure, callData) | ^ callbacks.c:411:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 411 | NewWindow(widget, closure, callData) | ^ callbacks.c:430:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 430 | CloseWindow(widget, closure, callData) | ^ callbacks.c:441:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 441 | Print(widget, closure, callData) | ^ callbacks.c:457:17: warning: 'tmpnam' is deprecated: This function is provided for compatibility reasons only. Due to security concerns inherent in the design of tmpnam(3), it is highly recommended that you use mkstemp(3) instead. [-Wdeprecated-declarations] 457 | printfile = tmpnam(0); | ^ /Applications/Xcode-16.4.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.5.sdk/usr/include/_stdio.h:287:1: note: 'tmpnam' has been explicitly marked deprecated here 287 | __deprecated_msg("This function is provided for compatibility reasons only. Due to security concerns inherent in the design of tmpnam(3), it is highly recommended that you use mkstemp(3) instead.") | ^ /Applications/Xcode-16.4.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.5.sdk/usr/include/sys/cdefs.h:218:48: note: expanded from macro '__deprecated_msg' 218 | #define __deprecated_msg(_msg) __attribute__((__deprecated__(_msg))) | ^ callbacks.c:494:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 494 | Background(widget, closure, callData) | ^ 23 warnings generated. clang -pipe -Os -I/opt/pkg/include -Wall -Wpointer-arith -no-cpp-precomp -Iregexp -I/opt/pkg/include -D__aarch64__ -D__DARWIN__ -DNO_ALLOCA -DCSRG_BASED -DHELPFILE=\"/opt/pkg/lib/X11/xless.help\" -DTILDE_EXPANSION -DDEFEDITOR=\"/usr/bin/vi\" -DPRINTCMD=\"/usr/bin/lpr\" -I/opt/pkg/include -c window.c In file included from window.c:37: ./xless.h:43:9: warning: '__P' macro redefined [-Wmacro-redefined] 43 | #define __P(a) a | ^ /Applications/Xcode-16.4.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.5.sdk/usr/include/sys/cdefs.h:115:9: note: previous definition is here 115 | #define __P(protos) protos /* full-blown ANSI C */ | ^ In file included from window.c:37: ./xless.h:237:1: warning: return type of 'main' is not 'int' [-Wmain-return-type] 237 | void main __P((int, char *[])); | ^ ./xless.h:237:1: note: change return type to 'int' 237 | void main __P((int, char *[])); | ^~~~ | int window.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 | findWindowInfo(w) | ^ window.c:95:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 95 | popdownTooMany(widget, closure, callData) | ^ window.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 | CreateWindow(top, filename) | ^ window.c:241:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 241 | DestroyWindowInfo(wi) | ^ window.c:293:5: warning: call to undeclared library function 'exit' with type 'void (int) __attribute__((noreturn))'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 293 | exit(0); | ^ window.c:293:5: note: include the header or explicitly provide a declaration for 'exit' 7 warnings generated. clang -pipe -Os -I/opt/pkg/include -Wall -Wpointer-arith -no-cpp-precomp -Iregexp -I/opt/pkg/include -D__aarch64__ -D__DARWIN__ -DNO_ALLOCA -DCSRG_BASED -DHELPFILE=\"/opt/pkg/lib/X11/xless.help\" -DTILDE_EXPANSION -DDEFEDITOR=\"/usr/bin/vi\" -DPRINTCMD=\"/usr/bin/lpr\" -I/opt/pkg/include -c main.c In file included from main.c:35: ./xless.h:43:9: warning: '__P' macro redefined [-Wmacro-redefined] 43 | #define __P(a) a | ^ /Applications/Xcode-16.4.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.5.sdk/usr/include/sys/cdefs.h:115:9: note: previous definition is here 115 | #define __P(protos) protos /* full-blown ANSI C */ | ^ In file included from main.c:35: ./xless.h:237:1: warning: return type of 'main' is not 'int' [-Wmain-return-type] 237 | void main __P((int, char *[])); | ^ ./xless.h:237:1: note: change return type to 'int' 237 | void main __P((int, char *[])); | ^~~~ | int main.c:129:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 129 | cvtStringToSearchType(display, args, numArgs, fromVal, toVal, destructorData) | ^ main.c:179:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 179 | argPrint(str) | ^ main.c:202:1: warning: return type of 'main' is not 'int' [-Wmain-return-type] 202 | void | ^ main.c:202:1: note: change return type to 'int' 202 | void | ^~~~ | int main.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 | main(argc, argv) | ^ main.c:289:7: warning: call to undeclared library function 'exit' with type 'void (int) __attribute__((noreturn))'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 289 | exit(0); | ^ main.c:289:7: note: include the header or explicitly provide a declaration for 'exit' 7 warnings generated. clang -pipe -Os -I/opt/pkg/include -Wall -Wpointer-arith -no-cpp-precomp -Iregexp -I/opt/pkg/include -D__aarch64__ -D__DARWIN__ -DNO_ALLOCA -DCSRG_BASED -DHELPFILE=\"/opt/pkg/lib/X11/xless.help\" -DTILDE_EXPANSION -DDEFEDITOR=\"/usr/bin/vi\" -DPRINTCMD=\"/usr/bin/lpr\" -I/opt/pkg/include -c actions.c In file included from actions.c:30: ./xless.h:43:9: warning: '__P' macro redefined [-Wmacro-redefined] 43 | #define __P(a) a | ^ /Applications/Xcode-16.4.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.5.sdk/usr/include/sys/cdefs.h:115:9: note: previous definition is here 115 | #define __P(protos) protos /* full-blown ANSI C */ | ^ In file included from actions.c:30: ./xless.h:237:1: warning: return type of 'main' is not 'int' [-Wmain-return-type] 237 | void main __P((int, char *[])); | ^ ./xless.h:237:1: note: change return type to 'int' 237 | void main __P((int, char *[])); | ^~~~ | int actions.c:48:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 48 | QuitAction(w, e, p, n) | ^ actions.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 | HelpAction(w, e, p, n) | ^ 4 warnings generated. clang -pipe -Os -I/opt/pkg/include -Wall -Wpointer-arith -no-cpp-precomp -Iregexp -I/opt/pkg/include -D__aarch64__ -D__DARWIN__ -DNO_ALLOCA -DCSRG_BASED -DHELPFILE=\"/opt/pkg/lib/X11/xless.help\" -DTILDE_EXPANSION -DDEFEDITOR=\"/usr/bin/vi\" -DPRINTCMD=\"/usr/bin/lpr\" -I/opt/pkg/include -c functions.c In file included from functions.c:30: ./xless.h:43:9: warning: '__P' macro redefined [-Wmacro-redefined] 43 | #define __P(a) a | ^ /Applications/Xcode-16.4.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.5.sdk/usr/include/sys/cdefs.h:115:9: note: previous definition is here 115 | #define __P(protos) protos /* full-blown ANSI C */ | ^ In file included from functions.c:30: ./xless.h:237:1: warning: return type of 'main' is not 'int' [-Wmain-return-type] 237 | void main __P((int, char *[])); | ^ ./xless.h:237:1: note: change return type to 'int' 237 | void main __P((int, char *[])); | ^~~~ | int functions.c:37:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 37 | okQuitAll(widget, closure, callData) | ^ functions.c:45:3: warning: call to undeclared library function 'exit' with type 'void (int) __attribute__((noreturn))'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 45 | exit(0); | ^ functions.c:45:3: note: include the header or explicitly provide a declaration for 'exit' functions.c:49:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 49 | cancelQuitAll(widget, closure, callData) | ^ 5 warnings generated. rm -f xless clang -o xless -pipe -Os -I/opt/pkg/include -Wall -Wpointer-arith -no-cpp-precomp -L/opt/pkg/lib -L/opt/pkg/lib help.o init.o popup.o util.o callbacks.o window.o main.o actions.o functions.o -Lregexp -lregexp -lXaw -lXmu -lXt -lSM -lICE -lXpm -lXext -lX11 rm -f xless._man if test -z "" ; then cd `dirname xless` && ln -s `basename xless.man` `basename xless._man`; else /usr/bin/cpp -undef -traditional -D__GNUC__ -D__apploaddir__=/opt/pkg/lib/X11/app-defaults -D__appmansuffix__=1 -D__filemansuffix__=5 -D__libmansuffix__=3 -D__miscmansuffix__=7 -D__drivermansuffix__=4 -D__adminmansuffix__=8 -D__projectroot__=/opt/pkg -D__xconfigfile__=xorg.conf -D__xconfigdir__=/opt/pkg/lib/X11 -D__xlogfile__=Xorg -D__xservername__=Xorg -D__xorgversion__="\"`echo 7 7 0 | sed -e 's/ /./g' -e 's/^/Version\\\ /'`\" \"X Version 11\"" -D__vendorversion__="`echo 7 7 0 | sed -e 's/ /./g' -e 's/^/Version\\\ /'` X.Org" < xless.man | sed -e '/^# *[0-9][0-9]* *.*$/d' -e '/^#line *[0-9][0-9]* *.*$/d' -e '/^[ ]*XCOMM$/s/XCOMM/#/' -e '/^[ ]*XCOMM[^a-zA-Z0-9_]/s/XCOMM/#/' -e '/^[ ]*XHASH/s/XHASH/#/' -e '/\@\@$/s/\@\@$/\\/' >xless._man; fi