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 C2x [-Wdeprecated-non-prototype] FAIL("NULL argument"); ^ regexp.c:147:27: note: expanded from macro 'FAIL' #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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] FAIL("regexp too big"); ^ regexp.c:147:27: note: expanded from macro 'FAIL' #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 C2x [-Wdeprecated-non-prototype] FAIL("out of space"); ^ regexp.c:147:27: note: expanded from macro 'FAIL' #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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] FAIL("too many ()"); ^ regexp.c:147:27: note: expanded from macro 'FAIL' #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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] FAIL("unmatched ()"); ^ regexp.c:147:27: note: expanded from macro 'FAIL' #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 C2x [-Wdeprecated-non-prototype] FAIL("unmatched ()"); ^ regexp.c:147:27: note: expanded from macro 'FAIL' #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 C2x [-Wdeprecated-non-prototype] FAIL("junk on end"); /* "Can't happen". */ ^ regexp.c:147:27: note: expanded from macro 'FAIL' #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 C2x [-Wdeprecated-non-prototype] 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 C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] (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 C2x [-Wdeprecated-non-prototype] 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 C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] FAIL("*+ operand could be empty"); ^ regexp.c:147:27: note: expanded from macro 'FAIL' #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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] FAIL("nested *?+"); ^ regexp.c:147:27: note: expanded from macro 'FAIL' #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 C2x [-Wdeprecated-non-prototype] 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 C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] FAIL("invalid [] range"); ^ regexp.c:147:27: note: expanded from macro 'FAIL' #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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] FAIL("unmatched []"); ^ regexp.c:147:27: note: expanded from macro 'FAIL' #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 C2x [-Wdeprecated-non-prototype] FAIL("internal urp"); /* Supposed to be caught earlier. */ ^ regexp.c:147:27: note: expanded from macro 'FAIL' #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 C2x [-Wdeprecated-non-prototype] FAIL("?+* follows nothing"); ^ regexp.c:147:27: note: expanded from macro 'FAIL' #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 C2x [-Wdeprecated-non-prototype] FAIL("trailing \\"); ^ regexp.c:147:27: note: expanded from macro 'FAIL' #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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 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 C2x, conflicting with a previous declaration [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 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 C2x, conflicting with a previous declaration [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 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] #define __P(a) a ^ /Applications/Xcode-15.4.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.5.sdk/usr/include/sys/cdefs.h:115:9: note: previous definition is here #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] void main __P((int, char *[])); ^ ./xless.h:237:1: note: change return type to 'int' 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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] #define __P(a) a ^ /Applications/Xcode-15.4.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.5.sdk/usr/include/sys/cdefs.h:115:9: note: previous definition is here #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] void main __P((int, char *[])); ^ ./xless.h:237:1: note: change return type to 'int' 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] SetWMHints(wi) ^ init.c:644:24: warning: variable 'baseHeight' set but not used [-Wunused-but-set-variable] 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] #define __P(a) a ^ /Applications/Xcode-15.4.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.5.sdk/usr/include/sys/cdefs.h:115:9: note: previous definition is here #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] void main __P((int, char *[])); ^ ./xless.h:237:1: note: change return type to 'int' 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 C2x [-Wdeprecated-non-prototype] DialogBox(top, confFunc, confData, label, btnLabel, selection) ^ popup.c:71:44: warning: variable 'cancel' set but not used [-Wunused-but-set-variable] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] SearchBox(top, srchFunc, wi, label, btnLabel, selection) ^ popup.c:203:55: warning: variable 'cancel' set but not used [-Wunused-but-set-variable] 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 C2x [-Wdeprecated-non-prototype] 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] #define __P(a) a ^ /Applications/Xcode-15.4.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.5.sdk/usr/include/sys/cdefs.h:115:9: note: previous definition is here #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] void main __P((int, char *[])); ^ ./xless.h:237:1: note: change return type to 'int' 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 C2x [-Wdeprecated-non-prototype] 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] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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] #define __P(a) a ^ /Applications/Xcode-15.4.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.5.sdk/usr/include/sys/cdefs.h:115:9: note: previous definition is here #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] void main __P((int, char *[])); ^ ./xless.h:237:1: note: change return type to 'int' 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] } 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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] printfile = tmpnam(0); ^ /Applications/Xcode-15.4.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.5.sdk/usr/include/stdio.h:189:1: note: 'tmpnam' has been explicitly marked deprecated here __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-15.4.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.5.sdk/usr/include/sys/cdefs.h:218:48: note: expanded from macro '__deprecated_msg' #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 C2x [-Wdeprecated-non-prototype] 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] #define __P(a) a ^ /Applications/Xcode-15.4.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.5.sdk/usr/include/sys/cdefs.h:115:9: note: previous definition is here #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] void main __P((int, char *[])); ^ ./xless.h:237:1: note: change return type to 'int' 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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] 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] #define __P(a) a ^ /Applications/Xcode-15.4.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.5.sdk/usr/include/sys/cdefs.h:115:9: note: previous definition is here #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] void main __P((int, char *[])); ^ ./xless.h:237:1: note: change return type to 'int' 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] argPrint(str) ^ main.c:202:1: warning: return type of 'main' is not 'int' [-Wmain-return-type] void ^ main.c:202:1: note: change return type to 'int' 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 C2x [-Wdeprecated-non-prototype] 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] 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] #define __P(a) a ^ /Applications/Xcode-15.4.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.5.sdk/usr/include/sys/cdefs.h:115:9: note: previous definition is here #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] void main __P((int, char *[])); ^ ./xless.h:237:1: note: change return type to 'int' 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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] #define __P(a) a ^ /Applications/Xcode-15.4.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.5.sdk/usr/include/sys/cdefs.h:115:9: note: previous definition is here #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] void main __P((int, char *[])); ^ ./xless.h:237:1: note: change return type to 'int' 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 C2x [-Wdeprecated-non-prototype] 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] 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 C2x [-Wdeprecated-non-prototype] 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