=> "/opt/pkg/bin/bmake" ["-C", "/Volumes/data/jenkins/workspace/pkgsrc-macos-trunk-arm64/net/dgd", "all", "BATCH=1", "DEPENDS_TARGET=/nonexistent"] ===> Building for dgd-1.2.0.4nb1 clang -pipe -Os -I. -Icomp -Ilex -Ied -Iparser -Ikfun -DNETBSD -O2 -c alloc.c alloc.c:55:7: warning: passing arguments to 'fatal' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 55 | fatal("out of memory"); | ^ alloc.c:44:14: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 44 | static char *newmem(size, list) | ^ alloc.c:117:7: warning: passing arguments to 'fatal' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 117 | fatal("too many different large static chunks"); | ^ alloc.c:93:16: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 93 | static chunk **lchunk(size, new) | ^ alloc.c:131:15: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 131 | static chunk *salloc(size) | ^ alloc.c:228:13: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 228 | static void sfree(c) | ^ alloc.c:282:13: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 282 | static void insert(c) | ^ alloc.c:363:15: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 363 | static chunk *seek(size) | ^ alloc.c:465:13: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 465 | static void delete(c) | ^ alloc.c:526:15: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 526 | static chunk *dalloc(size) | ^ alloc.c:619:13: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 619 | static void dfree(c) | ^ alloc.c:670:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 670 | void m_init(ssz, dsz) | ^ alloc.c:700:7: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 700 | char *m_alloc(size) | ^ alloc.c:745:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 745 | void m_free(mem) | ^ alloc.c:770:7: warning: passing arguments to 'fatal' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 770 | fatal("bad pointer in m_free"); | ^ alloc.c:784:7: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 784 | char *m_realloc(mem, size1, size2) | ^ alloc.c:861:7: warning: passing arguments to 'fatal' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 861 | fatal("bad pointer in m_realloc"); | ^ 17 warnings generated. clang -pipe -Os -I. -Icomp -Ilex -Ied -Iparser -Ikfun -DNETBSD -O2 -c error.c error.c:39:10: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 39 | jmp_buf *_ec_push_(handler) | ^ error.c:85:13: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 85 | static void ec_handler(f, depth) | ^ error.c:104:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 104 | void serror(str) | ^ error.c:165:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 165 | void error(format, arg1, arg2, arg3, arg4, arg5, arg6) | ^ In file included from error.c:2: In file included from ./dgd.h:14: ./error.h:13: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] 13 | extern void error (); | ^ error.c:183:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 183 | void fatal(format, arg1, arg2, arg3, arg4, arg5, arg6) | ^ In file included from error.c:2: In file included from ./dgd.h:14: ./error.h:14: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] 14 | extern void fatal (); | ^ error.c:204:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 204 | void message(format, arg1, arg2, arg3, arg4, arg5, arg6) | ^ In file included from error.c:2: In file included from ./dgd.h:14: ./error.h:12: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] 12 | extern void message (); | ^ 9 warnings generated. clang -pipe -Os -I. -Icomp -Ilex -Ied -Iparser -Ikfun -DNETBSD -O2 -c hash.c hash.c:48:10: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 48 | hashtab *ht_new(size, maxlen) | ^ hash.c:66:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 66 | void ht_del(ht) | ^ hash.c:78:16: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 78 | unsigned short hashstr(s, len) | ^ hash.c:98:7: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 98 | hte **ht_lookup(ht, name, move) | ^ 4 warnings generated. clang -pipe -Os -I. -Icomp -Ilex -Ied -Iparser -Ikfun -DNETBSD -O2 -c swap.c swap.c:38:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 38 | void sw_init(file, total, cache, secsize) | ^ swap.c:114:7: warning: passing arguments to 'fatal' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 114 | fatal("cannot create swap file \"%s\"", swapfile); | ^ swap.c:137:11: warning: passing arguments to 'fatal' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 137 | fatal("cannot read dump file"); | ^ swap.c:141:11: warning: passing arguments to 'fatal' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 141 | fatal("cannot write swap file"); | ^ swap.c:122:13: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 122 | static void copy(sec, n) | ^ swap.c:154:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 154 | void sw_newv(vec, size) | ^ swap.c:172:11: warning: passing arguments to 'fatal' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 172 | fatal("out of sectors"); | ^ swap.c:184:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 184 | void sw_wipev(vec, size) | ^ swap.c:245:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 245 | void sw_delv(vec, size) | ^ swap.c:355:12: warning: passing arguments to 'fatal' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 355 | fatal("cannot write swap file"); | ^ swap.c:376:9: warning: passing arguments to 'fatal' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 376 | fatal("cannot read dump file"); | ^ swap.c:391:12: warning: passing arguments to 'fatal' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 391 | fatal("cannot read swap file"); | ^ swap.c:303:16: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 303 | static header *sw_load(sec, fill) | ^ swap.c:435:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 435 | void sw_readv(m, vec, size, idx) | ^ swap.c:456:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 456 | void sw_writev(m, vec, size, idx) | ^ swap.c:480:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 480 | void sw_dreadv(m, vec, size, idx) | ^ swap.c:494:8: warning: passing arguments to 'fatal' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 494 | fatal("cannot read dump file"); | ^ swap.c:509:8: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 509 | sector sw_mapsize(size) | ^ swap.c:576:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 576 | int sw_dump(dumpfile) | ^ swap.c:624:8: warning: passing arguments to 'fatal' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 624 | fatal("cannot write swap file"); | ^ swap.c:642:11: warning: passing arguments to 'fatal' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 642 | fatal("cannot move swap file"); | ^ swap.c:646:11: warning: passing arguments to 'fatal' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 646 | fatal("cannot read swap file"); | ^ swap.c:649:11: warning: passing arguments to 'fatal' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 649 | fatal("cannot write dump file"); | ^ swap.c:654:8: warning: passing arguments to 'fatal' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 654 | fatal("cannot read swap file"); | ^ swap.c:657:8: warning: passing arguments to 'fatal' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 657 | fatal("cannot write dump file"); | ^ swap.c:666:11: warning: passing arguments to 'fatal' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 666 | fatal("cannot reopen dump file"); | ^ swap.c:679:7: warning: passing arguments to 'fatal' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 679 | fatal("cannot write swap header to dump file"); | ^ swap.c:685:7: warning: passing arguments to 'fatal' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 685 | fatal("cannot write sector map to dump file"); | ^ swap.c:733:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 733 | void sw_restore(fd, secsize) | ^ swap.c:743:7: warning: passing arguments to 'error' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 743 | error("Wrong sector size or too many sectors in restore file"); | ^ 30 warnings generated. clang -pipe -Os -I. -Icomp -Ilex -Ied -Iparser -Ikfun -DNETBSD -O2 -c str.c str.c:42:9: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 42 | string *str_alloc(text, len) | ^ str.c:65:9: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 65 | string *str_new(text, len) | ^ str.c:70:7: warning: passing arguments to 'error' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 70 | error("String too long"); | ^ str.c:80:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 80 | void str_del(s) | ^ str.c:92:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 92 | Uint str_put(str, n) | ^ str.c:172:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 172 | int str_cmp(s1, s2) | ^ str.c:205:9: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 205 | string *str_add(s1, s2) | ^ str.c:221:8: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 221 | ssizet str_index(s, l) | ^ str.c:226:7: warning: passing arguments to 'error' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 226 | error("String index out of range"); | ^ str.c:236:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 236 | void str_ckrange(s, l1, l2) | ^ str.c:241:7: warning: passing arguments to 'error' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 241 | error("Invalid string range"); | ^ str.c:249:9: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 249 | string *str_range(s, l1, l2) | ^ str.c:254:7: warning: passing arguments to 'error' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 254 | error("Invalid string range"); | ^ 13 warnings generated. clang -pipe -Os -I. -Icomp -Ilex -Ied -Iparser -Ikfun -DNETBSD -O2 -c array.c array.c:83:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 83 | void arr_init(size) | ^ array.c:105:8: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 105 | array *arr_alloc(size) | ^ array.c:139:8: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 139 | array *arr_new(data, size) | ^ array.c:146:7: warning: passing arguments to 'error' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 146 | error("Array too large"); | ^ array.c:163:8: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 163 | array *arr_ext_new(data, size) | ^ array.c:183:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 183 | void arr_del(a) | ^ array.c:264:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 264 | Uint arr_put(a) | ^ array.c:334:13: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 334 | static void backup(ac, a, elts, size, plane) | ^ array.c:364:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 364 | void arr_backup(ac, a) | ^ array.c:398:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 398 | void arr_commit(ac, plane, merge) | ^ array.c:446:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 446 | void arr_discard(ac) | ^ array.c:501:13: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 501 | static void copytmp(data, v1, a) | ^ array.c:534:8: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 534 | array *arr_add(data, a1, a2) | ^ array.c:554:12: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 554 | static int cmp(cv1, cv2) | ^ array.c:596:1: warning: non-void function does not return a value in all control paths [-Wreturn-type] 596 | } | ^ array.c:602:12: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 602 | static int search(v1, v2, h, step, place) | ^ array.c:681:8: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 681 | array *arr_sub(data, a1, a2) | ^ array.c:758:8: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 758 | array *arr_intersect(data, a1, a2) | ^ array.c:825:8: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 825 | array *arr_setadd(data, a1, a2) | ^ array.c:889:7: warning: passing arguments to 'error' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 889 | error("Array too large"); | ^ array.c:906:8: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 906 | array *arr_setxadd(data, a1, a2) | ^ array.c:980:7: warning: passing arguments to 'error' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 980 | error("Array too large"); | ^ array.c:998:16: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 998 | unsigned short arr_index(a, l) | ^ array.c:1003:7: warning: passing arguments to 'error' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1003 | error("Array index out of range"); | ^ array.c:1012:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1012 | void arr_ckrange(a, l1, l2) | ^ array.c:1017:7: warning: passing arguments to 'error' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1017 | error("Invalid array range"); | ^ array.c:1025:8: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1025 | array *arr_range(data, a, l1, l2) | ^ array.c:1033:7: warning: passing arguments to 'error' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1033 | error("Invalid array range"); | ^ array.c:1047:8: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1047 | array *map_new(data, size) | ^ array.c:1054:7: warning: passing arguments to 'error' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1054 | error("Mapping too large"); | ^ array.c:1070:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1070 | void map_sort(m) | ^ array.c:1093:8: warning: passing arguments to 'error' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1093 | error("Identical indices in mapping"); | ^ array.c:1108:13: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1108 | static void map_dehash(m) | ^ array.c:1177:13: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1177 | static void map_clean(data, m) | ^ array.c:1269:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1269 | void map_compact(data, m) | ^ array.c:1432:16: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1432 | unsigned short map_size(data, m) | ^ array.c:1450:8: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1450 | array *map_add(data, m1, m2) | ^ array.c:1535:8: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1535 | array *map_sub(data, m1, a2) | ^ array.c:1623:8: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1623 | array *map_intersect(data, m1, a2) | ^ array.c:1720:11: warning: passing arguments to 'error' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1720 | error("Mapping too large to grow"); | ^ array.c:1707:16: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1707 | static mapelt *map_grow(data, m, hashval) | ^ array.c:1795:8: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1795 | value *map_index(data, m, val, elt) | ^ array.c:1947:8: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1947 | array *map_range(data, m, v1, v2) | ^ array.c:1987:8: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1987 | array *map_indices(data, m) | ^ array.c:2011:8: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 2011 | array *map_values(data, m) | ^ 45 warnings generated. clang -pipe -Os -I. -Icomp -Ilex -Ied -Iparser -Ikfun -DNETBSD -O2 -c object.c object.c:60:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 60 | void o_init(n) | ^ object.c:85:13: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 85 | static void op_init(plane) | ^ object.c:95:13: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 95 | static void op_clean(plane) | ^ object.c:115:18: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 115 | static objpatch *op_new(plane, o, prev, obj, access) | ^ object.c:160:13: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 160 | static void op_del(plane, o) | ^ object.c:182:16: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 182 | static object *o_oaccess(index, access) | ^ object.c:240:9: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 240 | object *o_oread(index) | ^ object.c:250:9: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 250 | object *o_owrite(index) | ^ object.c:283:11: warning: passing arguments to 'error' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 283 | error("Too many objects"); | ^ object.c:570:9: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 570 | object *o_new(name, ctrl) | ^ object.c:618:9: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 618 | object *o_clone(master) | ^ object.c:645:13: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 645 | static void o_delete(o, f) | ^ object.c:682:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 682 | void o_upgrade(obj, ctrl, f) | ^ object.c:728:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 728 | void o_upgraded(tmpl, new) | ^ object.c:750:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 750 | void o_del(obj, f) | ^ object.c:756:7: warning: passing arguments to 'error' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 756 | error("Destructing destructed object"); | ^ object.c:789:7: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 789 | char *o_name(name, o) | ^ object.c:822:9: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 822 | object *o_find(name, access) | ^ object.c:910:1: warning: non-void function does not return a value in all control paths [-Wreturn-type] 910 | } | ^ object.c:916:10: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 916 | control *o_control(obj) | ^ object.c:938:12: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 938 | dataspace *o_dataspace(o) | ^ object.c:1150:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1150 | bool o_dump(fd) | ^ object.c:1198:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1198 | void o_restore(fd) | ^ object.c:1219:7: warning: passing arguments to 'error' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1219 | error("Too many objects in restore file"); | ^ object.c:1242:12: warning: passing arguments to 'fatal' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1242 | fatal("cannot restore object names"); | ^ object.c:1284:12: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1284 | static int cmp(cv1, cv2) | ^ 26 warnings generated. clang -pipe -Os -I. -Icomp -Ilex -Ied -Iparser -Ikfun -DNETBSD -O2 -c data.c data.c:192:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 192 | void d_init(flag) | ^ data.c:259:19: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 259 | static dataspace *d_alloc_dataspace(obj) | ^ data.c:338:12: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 338 | dataspace *d_new_dataspace(obj) | ^ data.c:356:10: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 356 | control *d_load_control(obj) | ^ data.c:468:12: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 468 | dataspace *d_load_dataspace(obj) | ^ data.c:529:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 529 | void d_ref_control(ctrl) | ^ data.c:551:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 551 | void d_ref_dataspace(data) | ^ data.c:574:13: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 574 | static Uint compress(data, text, size) | ^ data.c:646:14: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 646 | static char *decompress(sectors, readv, size, offset, dsize) | ^ data.c:722:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 722 | void d_varmap(ctrl, nvar, vmap) | ^ data.c:738:7: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 738 | char *d_get_prog(ctrl) | ^ data.c:758:13: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 758 | static void d_get_stext(ctrl) | ^ data.c:779:9: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 779 | string *d_get_strconst(ctrl, inherit, idx) | ^ data.c:821:11: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 821 | dfuncdef *d_get_funcdefs(ctrl) | ^ data.c:836:10: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 836 | dvardef *d_get_vardefs(ctrl) | ^ data.c:851:7: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 851 | char *d_get_funcalls(ctrl) | ^ data.c:866:10: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 866 | dsymbol *d_get_symbols(ctrl) | ^ data.c:881:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 881 | Uint d_get_progsize(ctrl) | ^ data.c:908:16: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 908 | static string *d_get_string(data, idx) | ^ data.c:971:15: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 971 | static array *d_get_array(data, idx) | ^ data.c:1021:13: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1021 | static void d_get_values(data, sv, v, n) | ^ data.c:1063:13: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1063 | static void d_new_variables(data) | ^ data.c:1112:8: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1112 | value *d_get_variable(data, idx) | ^ data.c:1145:8: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1145 | value *d_get_elts(arr) | ^ data.c:1178:13: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1178 | static void ref_rhs(data, rhs) | ^ data.c:1233:13: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1233 | static void del_lhs(data, lhs) | ^ data.c:1303:13: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1303 | static void d_get_callouts(data) | ^ data.c:1336:15: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1336 | static uindex d_alloc_call_out(data, handle, time, nargs, v) | ^ data.c:1425:13: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1425 | static void d_free_call_out(data, handle) | ^ data.c:1467:13: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1467 | static void cop_init(plane) | ^ data.c:1477:13: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1477 | static void cop_clean(plane) | ^ data.c:1497:17: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1497 | static copatch *cop_new(plane, c, type, handle, co, time, mtime, q) | ^ data.c:1557:13: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1557 | static void cop_del(plane, c, del) | ^ data.c:1591:13: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1591 | static void cop_replace(cop, co, time, mtime, q) | ^ data.c:1615:13: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1615 | static void cop_commit(cop) | ^ data.c:1632:13: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1632 | static void cop_release(cop) | ^ data.c:1649:13: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1649 | static void cop_discard(cop) | ^ data.c:1661:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1661 | void d_new_plane(data, level) | ^ data.c:1729:13: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1729 | static void commit_values(v, n, level) | ^ data.c:1758:13: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1758 | static void commit_callouts(plane, merge) | ^ data.c:1888:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1888 | void d_commit_plane(level, retval) | ^ data.c:2019:13: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 2019 | static void discard_callouts(plane) | ^ data.c:2061:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 2061 | void d_discard_plane(level) | ^ data.c:2145:11: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 2145 | abchunk **d_commit_arr(arr, prev, old) | ^ data.c:2169:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 2169 | void d_discard_arr(arr, plane) | ^ data.c:2182:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 2182 | void d_ref_imports(arr) | ^ data.c:2211:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 2211 | void d_assign_var(data, var, val) | ^ data.c:2241:8: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 2241 | value *d_get_extravar(data) | ^ data.c:2251:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 2251 | void d_set_extravar(data, val) | ^ data.c:2262:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 2262 | void d_wipe_extravar(data) | ^ data.c:2280:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 2280 | void d_assign_elt(data, arr, elt, val) | ^ data.c:2346:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 2346 | void d_change_map(map) | ^ data.c:2363:8: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 2363 | uindex d_new_call_out(data, func, delay, mdelay, f, nargs) | ^ data.c:2383:7: warning: passing arguments to 'error' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 2383 | error("Too many callouts in object"); | ^ data.c:2455:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 2455 | Int d_del_call_out(data, handle) | ^ data.c:2526:9: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 2526 | string *d_get_call_out(data, handle, f, nargs) | ^ data.c:2600:8: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 2600 | array *d_list_callouts(host, data) | ^ data.c:2688:15: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 2688 | static sector d_swapalloc(size, nsectors, sectors) | ^ data.c:2719:13: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 2719 | static void d_save_control(ctrl) | ^ data.c:2922:13: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 2922 | static void d_count(save, v, n) | ^ data.c:2958:13: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 2958 | static void d_save(save, sv, v, n) | ^ data.c:3032:13: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 3032 | static void d_put_values(data, sv, v, n) | ^ data.c:3080:13: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 3080 | static void d_free_values(data) | ^ data.c:3160:13: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 3160 | static bool d_save_dataspace(data) | ^ data.c:3499:13: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 3499 | static void d_import(imp, data, val, n) | ^ data.c:3664:13: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 3664 | static void d_upgrade(data, nvar, vmap, tmpl) | ^ data.c:3730:13: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 3730 | static void d_upgrade_clone(data) | ^ data.c:3780:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 3780 | void d_upgrade_all(tmpl, new) | ^ data.c:3811:13: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 3811 | static void d_free_control(ctrl) | ^ data.c:3904:13: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 3904 | static void d_free_dataspace(data) | ^ data.c:3967:8: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 3967 | sector d_swapout(frag) | ^ data.c:4049:13: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 4049 | static Uint d_conv(m, vec, layout, n, idx) | ^ data.c:4070:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 4070 | void d_conv_control(oindex) | ^ data.c:4090:7: warning: passing arguments to 'fatal' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 4090 | fatal("too many variables in restored object"); | ^ data.c:4203:13: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 4203 | static void d_fixobjs(v, n, ctab) | ^ data.c:4226:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 4226 | void d_conv_dataspace(obj, counttab) | ^ data.c:4346:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 4346 | void d_del_control(ctrl) | ^ data.c:4360:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 4360 | void d_del_dataspace(data) | ^ 78 warnings generated. clang -pipe -Os -I. -Icomp -Ilex -Ied -Iparser -Ikfun -DNETBSD -O2 -c path.c path.c:16:7: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 16 | char *path_resolve(buf, file) | ^ path.c:66:7: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 66 | char *path_string(buf, file, len) | ^ path.c:80:7: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 80 | char *path_from(buf, from, file) | ^ path.c:96:7: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 96 | char *path_ed_read(buf, file) | ^ path.c:121:7: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 121 | char *path_ed_write(buf, file) | ^ path.c:146:7: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 146 | char *path_include(buf, from, file) | ^ 6 warnings generated. clang -pipe -Os -I. -Icomp -Ilex -Ied -Iparser -Ikfun -DNETBSD -O2 -c editor.c editor.c:28:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 28 | void ed_init(tmp, num) | ^ editor.c:47:13: warning: implicit conversion from 'int' to 'eindex' (aka 'char') changes value from 255 to -1 [-Wconstant-conversion] 47 | newed = EINDEX_MAX; | ~ ^~~~~~~~~~ ./config.h:13:21: note: expanded from macro 'EINDEX_MAX' 13 | # define EINDEX_MAX UCHAR_MAX | ^~~~~~~~~ /System/Volumes/Data/Applications/Xcode-16.4.0.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/clang/17/include/limits.h:58:37: note: expanded from macro 'UCHAR_MAX' 58 | #define UCHAR_MAX (__SCHAR_MAX__*2 +1) | ~~~~~~~~~~~~~~~~~^~ editor.c:72:13: warning: implicit conversion from 'int' to 'eindex' (aka 'char') changes value from 255 to -1 [-Wconstant-conversion] 72 | newed = EINDEX_MAX; | ~ ^~~~~~~~~~ ./config.h:13:21: note: expanded from macro 'EINDEX_MAX' 13 | # define EINDEX_MAX UCHAR_MAX | ^~~~~~~~~ /System/Volumes/Data/Applications/Xcode-16.4.0.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/clang/17/include/limits.h:58:37: note: expanded from macro 'UCHAR_MAX' 58 | #define UCHAR_MAX (__SCHAR_MAX__*2 +1) | ~~~~~~~~~~~~~~~~~^~ editor.c:82:7: warning: passing arguments to 'error' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 82 | error("Recursion in editor command"); | ^ editor.c:90:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 90 | void ed_new(obj) | ^ editor.c:98:7: warning: passing arguments to 'error' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 98 | error("Too many simultaneous editors started"); | ^ editor.c:102:7: warning: passing arguments to 'error' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 102 | error("Too many editor instances"); | ^ editor.c:116:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 116 | void ed_del(obj) | ^ editor.c:125:10: warning: implicit conversion from 'int' to 'eindex' (aka 'char') changes value from 255 to -1 [-Wconstant-conversion] 125 | newed = EINDEX_MAX; | ~ ^~~~~~~~~~ ./config.h:13:21: note: expanded from macro 'EINDEX_MAX' 13 | # define EINDEX_MAX UCHAR_MAX | ^~~~~~~~~ /System/Volumes/Data/Applications/Xcode-16.4.0.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/clang/17/include/limits.h:58:37: note: expanded from macro 'UCHAR_MAX' 58 | #define UCHAR_MAX (__SCHAR_MAX__*2 +1) | ~~~~~~~~~~~~~~~~~^~ editor.c:137:13: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 137 | static void ed_handler(f, depth) | ^ editor.c:151:9: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 151 | string *ed_command(obj, cmd) | ^ editor.c:160:7: warning: passing arguments to 'error' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 160 | error("Newline in editor command"); | ^ editor.c:171:11: warning: passing arguments to 'error' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 171 | error((char *) NULL); /* pass on error */ | ^ editor.c:173:8: warning: passing arguments to 'output' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 173 | output("%s\012", errorstr()->text); /* LF */ | ^ editor.c:196:7: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 196 | char *ed_status(obj) | ^ editor.c:216:7: warning: passing arguments to 'error' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 216 | error("Editor output string too long"); | ^ editor.c:207:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 207 | void output(f, a1, a2, a3) | ^ editor.c:232:10: warning: passing arguments to 'error' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 232 | error(f, a1,a2, a3); | ^ editor.c:226:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 226 | void ed_error(f, a1, a2, a3) | ^ 19 warnings generated. clang -pipe -Os -I. -Icomp -Ilex -Ied -Iparser -Ikfun -DNETBSD -O2 -c comm.c comm.c:71:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 71 | bool comm_init(n, telnet_port, binary_port) | ^ comm.c:116:13: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 116 | static void addtoflush(usr, arr) | ^ comm.c:148:7: warning: passing arguments to 'error' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 148 | error("User object is already special purpose"); | ^ comm.c:135:14: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 135 | static user *comm_new(obj, conn, telnet) | ^ comm.c:223:7: warning: passing arguments to 'error' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 223 | error((char *) NULL); | ^ comm.c:205:13: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 205 | static void comm_del(f, usr, obj, force) | ^ comm.c:239:12: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 239 | static int comm_write(usr, obj, str, text, len) | ^ comm.c:294:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 294 | int comm_send(obj, str) | ^ comm.c:379:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 379 | int comm_udpsend(obj, str) | ^ comm.c:391:7: warning: passing arguments to 'error' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 391 | error("Object has no UDP channel"); | ^ comm.c:394:7: warning: passing arguments to 'error' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 394 | error("No datagrams received yet"); | ^ comm.c:417:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 417 | bool comm_echo(obj, echo) | ^ comm.c:449:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 449 | void comm_block(obj, block) | ^ comm.c:477:13: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 477 | static void comm_uflush(usr, obj, data, arr) | ^ comm.c:546:38: warning: implicit conversion from 'int' to 'char' changes value from 252 to -4 [-Wconstant-conversion] 546 | buf[1] = (v->u.number & CF_ECHO) ? WONT : WILL; | ~ ^~~~ ./host/telnet.h:8:16: note: expanded from macro 'WONT' 8 | # define WONT 252 /* won't */ | ^~~ comm.c:546:45: warning: implicit conversion from 'int' to 'char' changes value from 251 to -5 [-Wconstant-conversion] 546 | buf[1] = (v->u.number & CF_ECHO) ? WONT : WILL; | ~ ^~~~ ./host/telnet.h:9:16: note: expanded from macro 'WILL' 9 | # define WILL 251 /* will */ | ^~~ comm.c:620:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 620 | void comm_receive(f, timeout, mtime) | ^ comm.c:666:8: warning: passing arguments to 'error' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 666 | error((char *) NULL); /* pass on error */ | ^ comm.c:670:8: warning: passing arguments to 'fatal' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 670 | fatal("driver->telnet_connect() did not return an object"); | ^ comm.c:700:11: warning: passing arguments to 'error' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 700 | error((char *) NULL); /* pass on error */ | ^ comm.c:704:11: warning: passing arguments to 'fatal' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 704 | fatal("driver->binary_connect() did not return an object"); | ^ comm.c:1019:9: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1019 | string *comm_ip_number(obj) | ^ comm.c:1032:9: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1032 | string *comm_ip_name(obj) | ^ comm.c:1045:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1045 | void comm_close(f, obj) | ^ comm.c:1068:8: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1068 | array *comm_users(data) | ^ 25 warnings generated. clang -pipe -Os -I. -Icomp -Ilex -Ied -Iparser -Ikfun -DNETBSD -O2 -c call_out.c call_out.c:58:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 58 | bool co_init(max) | ^ call_out.c:69:13: warning: passing arguments to 'message' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 69 | message("Config error: bad time (early seventies)\012"); /* LF */ | ^ call_out.c:94:13: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 94 | static void restart(t) | ^ call_out.c:130:18: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 130 | static call_out *enqueue(t, m) | ^ call_out.c:165:13: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 165 | static void dequeue(i) | ^ call_out.c:204:18: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 204 | static call_out *newcallout(list, t) | ^ call_out.c:253:13: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 253 | static void freecallout(cyc, j, i, t) | ^ call_out.c:319:13: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 319 | static Uint encode(time, mtime) | ^ call_out.c:330:13: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 330 | static Uint decode(time, mtime) | ^ call_out.c:347:13: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 347 | static Uint co_time(mtime) | ^ call_out.c:379:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 379 | Uint co_check(n, delay, mdelay, tp, mp, qp) | ^ call_out.c:398:7: warning: passing arguments to 'error' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 398 | error("Too many callouts"); | ^ call_out.c:417:11: warning: passing arguments to 'error' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 417 | error("Too long delay"); | ^ call_out.c:454:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 454 | void co_new(oindex, handle, t, m, q) | ^ call_out.c:470:13: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 470 | static bool rmshort(cyc, i, handle, t) | ^ call_out.c:512:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 512 | Int co_remaining(t) | ^ call_out.c:538:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 538 | void co_del(oindex, handle, t) | ^ call_out.c:591:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 591 | void co_list(a) | ^ call_out.c:713:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 713 | void co_call(f) | ^ call_out.c:756:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 756 | void co_info(n1, n2) | ^ call_out.c:767:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 767 | Uint co_delay(mtime) | ^ call_out.c:802:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 802 | void co_swapcount(count) | ^ call_out.c:855:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 855 | bool co_dump(fd) | ^ call_out.c:940:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 940 | void co_restore(fd, t) | ^ call_out.c:958:7: warning: passing arguments to 'error' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 958 | error("Restored too many callouts"); | ^ 25 warnings generated. clang -pipe -Os -I. -Icomp -Ilex -Ied -Iparser -Ikfun -DNETBSD -O2 -c interpret.c interpret.c:35:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 35 | void i_init(create, flag) | ^ interpret.c:60:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 60 | void i_ref_value(v) | ^ interpret.c:79:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 79 | void i_del_value(v) | ^ interpret.c:98:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 98 | void i_copy(v, w, len) | ^ interpret.c:130:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 130 | void i_grow_stack(f, size) | ^ interpret.c:185:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 185 | void i_push_value(f, v) | ^ interpret.c:216:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 216 | void i_pop(f, n) | ^ interpret.c:263:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 263 | void i_reverse(f, n) | ^ interpret.c:315:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 315 | void i_odest(prev, obj) | ^ interpret.c:362:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 362 | void i_string(f, inherit, index) | ^ interpret.c:374:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 374 | void i_aggregate(f, size) | ^ interpret.c:402:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 402 | void i_map_aggregate(f, size) | ^ interpret.c:425:11: warning: passing arguments to 'error' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 425 | error((char *) NULL); | ^ interpret.c:439:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 439 | int i_spread(f, n, vtype) | ^ interpret.c:448:7: warning: passing arguments to 'error' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 448 | error("Spread of non-array"); | ^ interpret.c:483:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 483 | void i_global(f, inherit, index) | ^ interpret.c:498:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 498 | void i_global_lvalue(f, inherit, index, vtype) | ^ interpret.c:516:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 516 | void i_index(f) | ^ interpret.c:530:11: warning: passing arguments to 'error' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 530 | error("Non-numeric string index"); | ^ interpret.c:541:11: warning: passing arguments to 'error' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 541 | error("Non-numeric array index"); | ^ interpret.c:554:7: warning: passing arguments to 'error' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 554 | error("Index on bad type"); | ^ interpret.c:582:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 582 | void i_index_lvalue(f, vtype) | ^ interpret.c:596:7: warning: passing arguments to 'error' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 596 | error("Bad lvalue"); | ^ interpret.c:601:11: warning: passing arguments to 'error' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 601 | error("Non-numeric array index"); | ^ interpret.c:624:8: warning: passing arguments to 'error' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 624 | error("Non-numeric string index"); | ^ interpret.c:638:8: warning: passing arguments to 'error' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 638 | error("Non-numeric array index"); | ^ interpret.c:663:8: warning: passing arguments to 'error' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 663 | error("Non-numeric string index"); | ^ interpret.c:675:8: warning: passing arguments to 'error' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 675 | error("Non-numeric array index"); | ^ interpret.c:702:8: warning: passing arguments to 'error' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 702 | error("Non-numeric string index"); | ^ interpret.c:714:8: warning: passing arguments to 'error' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 714 | error("Non-numeric array index"); | ^ interpret.c:739:10: warning: passing arguments to 'error' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 739 | error("Index on bad type"); | ^ interpret.c:746:7: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 746 | char *i_typename(buf, type) | ^ interpret.c:772:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 772 | void i_cast(val, type) | ^ interpret.c:781:11: warning: passing arguments to 'error' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 781 | error("Value is not an %s", tnbuf); | ^ interpret.c:783:11: warning: passing arguments to 'error' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 783 | error("Value is not a %s", tnbuf); | ^ interpret.c:792:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 792 | void i_fetch(f) | ^ interpret.c:830:7: warning: passing arguments to 'error' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 830 | error("Non-numeric value in indexed string assignment"); | ^ interpret.c:824:15: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 824 | static value *istr(val, str, i, v) | ^ interpret.c:843:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 843 | void i_store(f) | ^ interpret.c:870:11: warning: passing arguments to 'error' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 870 | error("Lvalue disappeared!"); | ^ interpret.c:896:11: warning: passing arguments to 'error' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 896 | error("Lvalue disappeared!"); | ^ interpret.c:911:11: warning: passing arguments to 'error' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 911 | error("Lvalue disappeared!"); | ^ interpret.c:925:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 925 | Int i_get_depth(f) | ^ interpret.c:941:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 941 | Int i_get_ticks(f) | ^ interpret.c:965:7: warning: passing arguments to 'error' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 965 | error("Illegal use of rlimits"); | ^ interpret.c:975:7: warning: passing arguments to 'error' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 975 | error("Illegal use of rlimits"); | ^ interpret.c:958:13: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 958 | static void i_check_rlimits(f) | ^ interpret.c:984:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 984 | void i_new_rlimits(f, depth, t) | ^ interpret.c:1025:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1025 | void i_set_rlimits(f, rlim) | ^ interpret.c:1050:8: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1050 | frame *i_set_sp(ftop, sp) | ^ interpret.c:1121:9: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1121 | object *i_prev_object(f, n) | ^ interpret.c:1146:7: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1146 | char *i_prev_program(f, n) | ^ interpret.c:1165:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1165 | void i_typecheck(f, name, ftype, proto, nargs, strict) | ^ interpret.c:1202:12: warning: passing arguments to 'error' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1202 | error("Bad argument %d (%s) for %s %s", nargs - i, | ^ interpret.c:1206:12: warning: passing arguments to 'error' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1206 | error("Bad argument %d for %s %s", nargs - i, ftype, name); | ^ interpret.c:1217:23: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1217 | static unsigned short i_switch_int(f, pc) | ^ interpret.c:1303:23: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1303 | static unsigned short i_switch_range(f, pc) | ^ interpret.c:1396:23: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1396 | static unsigned short i_switch_str(f, pc) | ^ interpret.c:1441:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1441 | void i_catcherr(f, depth) | ^ interpret.c:1476:8: warning: passing arguments to 'error' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1476 | error("Out of ticks"); | ^ interpret.c:1646:21: warning: passing arguments to a function without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1646 | u = (*kf->func)(f, u, kf); | ^ interpret.c:1649:12: warning: passing arguments to 'error' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1649 | error("Too few arguments for kfun %s", kf->name); | ^ interpret.c:1651:12: warning: passing arguments to 'error' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1651 | error("Bad argument %d for kfun %s", u, kf->name); | ^ interpret.c:1653:12: warning: passing arguments to 'error' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1653 | error("Too many arguments for kfun %s", kf->name); | ^ interpret.c:1700:8: warning: passing arguments to 'error' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1700 | error("Bad rlimits depth type"); | ^ interpret.c:1703:8: warning: passing arguments to 'error' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1703 | error("Bad rlimits ticks type"); | ^ interpret.c:1452:13: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1452 | static void i_interpret(f, pc) | ^ interpret.c:1737:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1737 | void i_funcall(prev_f, obj, p_ctrli, funci, nargs) | ^ interpret.c:1777:7: warning: passing arguments to 'error' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1777 | error("Stack overflow"); | ^ interpret.c:1783:11: warning: passing arguments to 'error' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1783 | error("Out of ticks"); | ^ interpret.c:1796:7: warning: passing arguments to 'error' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1796 | error("Undefined function %s", | ^ interpret.c:1834:9: warning: passing arguments to 'error' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1834 | error("Insufficient arguments for function %s", | ^ interpret.c:1868:11: warning: passing arguments to 'error' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1868 | error("Too many arguments for function %s", | ^ interpret.c:1885:12: warning: passing arguments to 'error' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1885 | error("Insufficient arguments for function %s", | ^ interpret.c:2013:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 2013 | bool i_call(f, obj, func, len, call_static, nargs) | ^ interpret.c:2065:23: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 2065 | static unsigned short i_line(f) | ^ interpret.c:2198:15: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 2198 | static array *i_func_trace(f, data) | ^ interpret.c:2263:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 2263 | bool i_call_tracei(ftop, idx, v) | ^ interpret.c:2285:8: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 2285 | array *i_call_trace(ftop) | ^ interpret.c:2308:13: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 2308 | static void emptyhandler(f, depth) | ^ interpret.c:2320:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 2320 | bool i_call_critical(f, func, narg, flag) | ^ interpret.c:2346:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 2346 | void i_runtime_error(f, depth) | ^ interpret.c:2354:9: warning: passing arguments to 'message' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 2354 | message("Error within runtime_error:\012"); /* LF */ | ^ interpret.c:2355:9: warning: passing arguments to 'message' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 2355 | message((char *) NULL); | ^ interpret.c:2365:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 2365 | void i_atomic_error(ftop, level) | ^ interpret.c:2377:9: warning: passing arguments to 'message' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 2377 | message("Error within atomic_error:\012"); /* LF */ | ^ interpret.c:2378:9: warning: passing arguments to 'message' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 2378 | message((char *) NULL); | ^ interpret.c:2388:8: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 2388 | frame *i_restore(ftop, level) | ^ 88 warnings generated. clang -pipe -Os -I. -Icomp -Ilex -Ied -Iparser -Ikfun -DNETBSD -O2 -c config.c config.c:234:7: warning: passing arguments to 'fatal' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 234 | fatal("failed to dump kfun table"); | ^ config.c:237:7: warning: passing arguments to 'fatal' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 237 | fatal("failed to dump object table"); | ^ config.c:240:7: warning: passing arguments to 'fatal' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 240 | fatal("failed to dump precompiled objects"); | ^ config.c:243:7: warning: passing arguments to 'fatal' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 243 | fatal("failed to dump callout table"); | ^ config.c:262:7: warning: passing arguments to 'error' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 262 | error("Bad or incompatible restore file header"); | ^ config.c:293:7: warning: passing arguments to 'error' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 293 | error("Cannot restore uindex, ssizet or sector of greater width"); | ^ config.c:298:7: warning: passing arguments to 'error' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 298 | error("Cannot restore bigger sector size"); | ^ config.c:254:13: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 254 | static void conf_restore(fd) | ^ config.c:322:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 322 | Uint conf_dsize(layout) | ^ config.c:438:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 438 | Uint conf_dconv(buf, rbuf, layout, n) | ^ config.c:620:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 620 | void conf_dread(fd, buf, layout, n) | ^ config.c:638:11: warning: passing arguments to 'fatal' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 638 | fatal("cannot read from dump file"); | ^ config.c:658:12: warning: passing arguments to 'message' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 658 | message("Config error, line %u: %s\012", tk_line(), err); /* LF */ | ^ config.c:655:13: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 655 | static void conferr(err) | ^ config.c:806:9: warning: passing arguments to 'message' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 806 | message("Config error: cannot create \"/%s\"\012", fname); /* LF */ | ^ config.c:799:13: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 799 | static bool copen(file) | ^ config.c:818:13: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 818 | static void cputs(str) | ^ config.c:845:9: warning: passing arguments to 'message' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 845 | message("Config error: cannot write \"/%s\"\012", fname); /* LF */ | ^ config.c:1013:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1013 | bool conf_init(configfile, dumpfile, fragment) | ^ config.c:1025:9: warning: passing arguments to 'message' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1025 | message("Config error: cannot open config file\012"); /* LF */ | ^ config.c:1045:9: warning: passing arguments to 'message' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1045 | message("Config error: bad base directory \"%s\"\012", /* LF */ | ^ config.c:1162:9: warning: passing arguments to 'message' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1162 | message((char *) NULL); | ^ config.c:1164:9: warning: passing arguments to 'message' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1164 | message("Config error: initialization failed\012"); /* LF */ | ^ config.c:1179:11: warning: passing arguments to 'error' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1179 | error((char *) NULL); | ^ config.c:1190:11: warning: passing arguments to 'error' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1190 | error((char *) NULL); | ^ config.c:1210:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1210 | void conf_ext_callback(restore, swapout, destruct, funcall, cleanup, finish) | ^ config.c:1266:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1266 | bool conf_statusi(f, idx, v) | ^ config.c:1389:8: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1389 | array *conf_status(f) | ^ config.c:1407:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1407 | bool conf_objecti(data, obj, idx, v) | ^ config.c:1463:8: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1463 | array *conf_object(data, obj) | ^ 30 warnings generated. clang -pipe -Os -I. -Icomp -Ilex -Ied -Iparser -Ikfun -DNETBSD -O2 -c dgd.c dgd.c:26:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 26 | bool call_driver_object(f, func, narg) | ^ dgd.c:45:7: warning: passing arguments to 'fatal' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 45 | fatal("missing function in driver object: %s", func); | ^ dgd.c:147:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 147 | void errhandler(f, depth) | ^ dgd.c:158:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 158 | int dgd_main(argc, argv) | ^ 4 warnings generated. cd comp; make 'CC=clang' 'CCFLAGS=-DNETBSD -O2' 'YACC=yacc' dgd clang -I. -I.. -I../lex -I../parser -I../kfun -DNETBSD -O2 -c node.c node.c:27:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 27 | void node_init(flag) | ^ node.c:37:7: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 37 | node *node_new(line) | ^ node.c:66:7: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 66 | node *node_int(num) | ^ node.c:84:7: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 84 | node *node_float(flt) | ^ node.c:119:7: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 119 | node *node_str(str) | ^ node.c:138:7: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 138 | node *node_fcall(mod, func, call) | ^ node.c:158:7: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 158 | node *node_mon(type, mod, left) | ^ node.c:177:7: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 177 | node *node_bin(type, mod, left, right) | ^ node.c:196:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 196 | void node_toint(n, i) | ^ node.c:212:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 212 | void node_tostr(n, str) | ^ 10 warnings generated. clang -I. -I.. -I../lex -I../parser -I../kfun -DNETBSD -O2 -c parser.c parser.y:783:14: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 783 | static node *varargs(n1, n2) | ^ parser.y:806:13: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 806 | static void t_void(n) | ^ parser.y:810:9: warning: passing arguments to 'c_error' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 810 | c_error("void value not ignored"); | ^ parser.y:819:13: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 819 | static bool t_unary(n, name) | ^ parser.y:827:9: warning: passing arguments to 'c_error' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 827 | c_error("bad argument type for %s (%s)", name, | ^ parser.y:839:14: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 839 | static node *uassign(op, n, name) | ^ parser.y:852:14: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 852 | static node *cast(n, type) | ^ parser.y:875:14: warning: passing arguments to 'c_error' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 875 | c_error("cast of invalid string constant"); | ^ parser.y:910:14: warning: passing arguments to 'c_error' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 910 | yyerror("cast of invalid string constant"); | ^ parser.y:952:13: warning: passing arguments to 'c_error' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 952 | c_error("cast of invalid type (%s)", i_typename(buffer, n->mod)); | ^ parser.y:954:13: warning: passing arguments to 'c_error' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 954 | c_error("cannot cast to %s", i_typename(buffer, type)); | ^ parser.y:957:13: warning: passing arguments to 'c_error' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 957 | c_error("illegal cast of array type (%s)", | ^ parser.y:970:14: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 970 | static node *idx(n1, n2) | ^ parser.y:979:13: warning: passing arguments to 'c_error' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 979 | c_error("string index out of range"); | ^ parser.y:995:10: warning: passing arguments to 'c_error' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 995 | c_error("bad index type (%s)", i_typename(tnbuf, n2->mod)); | ^ parser.y:1008:13: warning: passing arguments to 'c_error' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1008 | c_error("bad index type (%s)", i_typename(tnbuf, n2->mod)); | ^ parser.y:1013:13: warning: passing arguments to 'c_error' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1013 | c_error("bad indexed type (%s)", i_typename(tnbuf, n1->mod)); | ^ parser.y:1024:14: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1024 | static node *range(n1, n2, n3) | ^ parser.y:1035:13: warning: passing arguments to 'c_error' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1035 | c_error("invalid string range"); | ^ parser.y:1046:13: warning: passing arguments to 'c_error' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1046 | c_error("bad index type (%s)", i_typename(tnbuf, n2->mod)); | ^ parser.y:1049:13: warning: passing arguments to 'c_error' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1049 | c_error("bad index type (%s)", i_typename(tnbuf, n3->mod)); | ^ parser.y:1053:13: warning: passing arguments to 'c_error' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1053 | c_error("bad indexed type (%s)", i_typename(tnbuf, n1->mod)); | ^ parser.y:1064:14: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1064 | static node *bini(op, n1, n2, name) | ^ parser.y:1077:9: warning: passing arguments to 'c_error' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1077 | c_error("bad argument types for %s (%s, %s)", name, | ^ parser.y:1090:14: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1090 | static node *bina(op, n1, n2, name) | ^ parser.y:1106:9: warning: passing arguments to 'c_error' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1106 | c_error("bad argument types for %s (%s, %s)", name, | ^ parser.y:1124:14: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1124 | static node *mult(op, n1, n2, name) | ^ parser.y:1150:14: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1150 | static node *mdiv(op, n1, n2, name) | ^ parser.y:1165:13: warning: passing arguments to 'c_error' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1165 | c_error("division by zero"); | ^ parser.y:1181:13: warning: passing arguments to 'c_error' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1181 | c_error("division by zero"); | ^ parser.y:1198:14: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1198 | static node *mod(op, n1, n2, name) | ^ parser.y:1211:13: warning: passing arguments to 'c_error' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1211 | c_error("modulus by zero"); | ^ parser.y:1233:14: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1233 | static node *add(op, n1, n2, name) | ^ parser.y:1279:13: warning: passing arguments to 'c_error' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1279 | c_error("bad argument types for %s (%s, %s)", name, | ^ parser.y:1301:14: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1301 | static node *sub(op, n1, n2, name) | ^ parser.y:1334:10: warning: passing arguments to 'c_error' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1334 | c_error("bad argument types for %s (%s, %s)", name, | ^ parser.y:1353:14: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1353 | static node *umin(n) | ^ parser.y:1373:14: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1373 | static node *lshift(op, n1, n2, name) | ^ parser.y:1380:13: warning: passing arguments to 'c_error' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1380 | c_error("negative left shift"); | ^ parser.y:1398:14: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1398 | static node *rshift(op, n1, n2, name) | ^ parser.y:1405:13: warning: passing arguments to 'c_error' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1405 | c_error("negative right shift"); | ^ parser.y:1423:14: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1423 | static node *rel(op, n1, n2, name) | ^ parser.y:1497:9: warning: passing arguments to 'c_error' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1497 | c_error("bad argument types for %s (%s, %s)", name, | ^ parser.y:1509:14: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1509 | static node *eq(n1, n2) | ^ parser.y:1569:13: warning: passing arguments to 'c_error' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1569 | c_error("incompatible types for equality (%s, %s)", | ^ parser.y:1582:14: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1582 | static node *and(op, n1, n2, name) | ^ parser.y:1609:14: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1609 | static node *xor(op, n1, n2, name) | ^ parser.y:1635:14: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1635 | static node *or(op, n1, n2, name) | ^ parser.y:1661:14: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1661 | static node *land(n1, n2) | ^ parser.y:1681:14: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1681 | static node *lor(n1, n2) | ^ parser.y:1701:14: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1701 | static node *quest(n1, n2, n3) | ^ parser.y:1758:14: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1758 | static node *assign(n1, n2) | ^ parser.y:1768:13: warning: passing arguments to 'c_error' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1768 | c_error("incompatible types for = (%s, %s)", | ^ parser.y:1783:14: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1783 | static node *comma(n1, n2) | ^ y.tab.c:2131:12: warning: passing arguments to 'c_error' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 2131 | yyerror("syntax error"); | ^ parser.y:138:16: warning: passing arguments to 'c_error' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 138 | c_error("inherit must precede all declarations"); | ^ parser.y:327:16: warning: passing arguments to 'c_error' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 327 | c_error("too deep indirection"); | ^ parser.y:367:16: warning: passing arguments to 'c_error' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 367 | c_error("declaration after statement"); | ^ parser.y:408:13: warning: passing arguments to 'c_error' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 408 | c_error("bad type for stack rlimit (%s)", | ^ parser.y:412:13: warning: passing arguments to 'c_error' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 412 | c_error("bad type for ticks rlimit (%s)", | ^ parser.y:577:16: warning: passing arguments to 'c_error' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 577 | c_error("bad argument type for ~ (%s)", | ^ y.tab.c:3030:12: warning: passing arguments to 'c_error' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 3030 | yyerror("yacc stack overflow"); | ^ 62 warnings generated. clang -I. -I.. -I../lex -I../parser -I../kfun -DNETBSD -O2 -c control.c control.c:38:12: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 38 | static oh *oh_new(name) | ^ control.c:104:13: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 104 | static void vfh_new(str, ohash, ct, idx, addr) | ^ control.c:165:13: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 165 | static void lab_new(str, ohash) | ^ control.c:182:12: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 182 | static oh *lab_find(name) | ^ control.c:218:13: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 218 | static bool cmp_proto(prot1, prot2) | ^ control.c:290:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 290 | void ctrl_init(flag) | ^ control.c:327:16: warning: passing arguments to 'c_error' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 327 | c_error("multiple inheritance of variable %s (/%s, /%s)", | ^ control.c:304:13: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 304 | static void ctrl_vardefs(ohash, ctrl) | ^ control.c:355:9: warning: passing arguments to 'c_error' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 355 | c_error("private inherit of nomask function %s (/%s)", str->text, | ^ control.c:484:11: warning: passing arguments to 'c_error' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 484 | c_error("multiple inheritance of nomask function %s (/%s, /%s)", | ^ control.c:494:11: warning: passing arguments to 'c_error' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 494 | c_error("unequal prototypes for function %s (/%s, /%s)", | ^ control.c:340:13: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 340 | static void ctrl_funcdef(ctrl, idx, ohash) | ^ control.c:581:13: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 581 | static void ctrl_funcdefs(ohash, ctrl) | ^ control.c:600:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 600 | bool ctrl_inherit(f, from, obj, label, priv) | ^ control.c:614:9: warning: passing arguments to 'c_error' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 614 | c_error("cannot inherit cloned object"); | ^ control.c:618:9: warning: passing arguments to 'c_error' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 618 | c_error("cannot inherit object being upgraded"); | ^ control.c:628:13: warning: passing arguments to 'c_error' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 628 | c_error("redeclaration of label %s", label->text); | ^ control.c:641:13: warning: passing arguments to 'c_error' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 641 | c_error("inherited different auto objects"); | ^ control.c:657:14: warning: passing arguments to 'c_error' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 657 | c_error("cycle in inheritance"); | ^ control.c:705:10: warning: passing arguments to 'c_error' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 705 | c_error("inherited different instances of /%s", o->chain.name); | ^ control.c:752:9: warning: passing arguments to 'c_error' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 752 | c_error("inherited different instances of /%s", obj->chain.name); | ^ control.c:787:9: warning: passing arguments to 'c_error' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 787 | c_error("too many objects inherited"); | ^ control.c:891:14: warning: passing arguments to 'c_error' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 891 | c_error("inherited too many function calls"); | ^ control.c:896:14: warning: passing arguments to 'c_error' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 896 | c_error("inherited too many variables"); | ^ control.c:939:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 939 | long ctrl_dstring(str) | ^ control.c:959:13: warning: passing arguments to 'c_error' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 959 | c_error("too many string constants"); | ^ control.c:973:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 973 | void ctrl_dproto(str, proto) | ^ control.c:999:10: warning: passing arguments to 'c_error' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 999 | c_error("multiple declaration of function %s", str->text); | ^ control.c:1005:14: warning: passing arguments to 'c_error' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1005 | c_error("declaration does not match prototype of %s", | ^ control.c:1011:14: warning: passing arguments to 'c_error' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1011 | c_error("unequal prototypes for function %s", str->text); | ^ control.c:1043:10: warning: passing arguments to 'c_error' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1043 | c_error("inherited different prototype for %s (/%s)", | ^ control.c:1058:10: warning: passing arguments to 'c_error' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1058 | c_error("redeclaration of nomask function %s (/%s)", | ^ control.c:1091:9: warning: passing arguments to 'c_error' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1091 | c_error("too many functions declared"); | ^ control.c:1114:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1114 | void ctrl_dfunc(str, proto) | ^ control.c:1126:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1126 | void ctrl_dprogram(prog, size) | ^ control.c:1139:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1139 | void ctrl_dvar(str, class, type) | ^ control.c:1150:13: warning: passing arguments to 'c_error' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1150 | c_error("redeclaration of variable %s", str->text); | ^ control.c:1156:13: warning: passing arguments to 'c_error' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1156 | c_error("redeclaration of variable %s (/%s)", str->text, | ^ control.c:1162:9: warning: passing arguments to 'c_error' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1162 | c_error("too many variables declared"); | ^ control.c:1183:7: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1183 | char *ctrl_ifcall(str, label, call) | ^ control.c:1199:13: warning: passing arguments to 'c_error' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1199 | c_error("undefined label %s", label); | ^ control.c:1215:13: warning: passing arguments to 'c_error' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1215 | c_error("undefined function %s::%s", label, str->text); | ^ control.c:1236:13: warning: passing arguments to 'c_error' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1236 | c_error("undefined function ::%s", str->text); | ^ control.c:1244:13: warning: passing arguments to 'c_error' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1244 | c_error("ambiguous call to function ::%s", str->text); | ^ control.c:1253:9: warning: passing arguments to 'c_error' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1253 | c_error("undefined function %s::%s", label, str->text); | ^ control.c:1265:7: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1265 | char *ctrl_fcall(str, call, typechecking) | ^ control.c:1290:13: warning: passing arguments to 'c_error' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1290 | c_error("too many undefined functions"); | ^ control.c:1304:9: warning: passing arguments to 'c_error' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1304 | c_error("ambiguous call to function %s", str->text); | ^ control.c:1318:9: warning: passing arguments to 'c_error' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1318 | c_error("undefined function %s", str->text); | ^ control.c:1345:16: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1345 | unsigned short ctrl_gencall(call) | ^ control.c:1379:13: warning: passing arguments to 'c_error' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1379 | c_error("too many function calls"); | ^ control.c:1390:16: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1390 | unsigned short ctrl_var(str, ref) | ^ control.c:1399:9: warning: passing arguments to 'c_error' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1399 | c_error("undeclared variable %s", str->text); | ^ control.c:1447:15: warning: passing arguments to 'c_error' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1447 | c_error("inherited multiple instances of:"); | ^ control.c:1457:11: warning: passing arguments to 'c_error' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1457 | c_error(" %s (/%s, /%s)", (*f)->chain.name, | ^ control.c:1775:10: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1775 | dsymbol *ctrl_symb(ctrl, func, len) | ^ control.c:1919:17: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1919 | unsigned short *ctrl_varmap(old, new) | ^ 57 warnings generated. clang -I. -I.. -I../lex -I../parser -I../kfun -DNETBSD -O2 -c optimize.c optimize.c:18:13: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 18 | static Uint max2(a, b) | ^ optimize.c:28:13: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 28 | static Uint max3(a, b, c) | ^ optimize.c:41:15: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 41 | static node **side_start(n, depth) | ^ optimize.c:59:13: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 59 | static void side_add(n, depth) | ^ optimize.c:82:13: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 82 | static Uint side_end(n, side, oldside, olddepth) | ^ optimize.c:123:13: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 123 | static Uint opt_lvalue(n) | ^ optimize.c:165:13: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 165 | static Uint opt_binconst(m) | ^ optimize.c:384:14: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 384 | static node *opt_tst(n) | ^ optimize.c:441:14: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 441 | static node *opt_not(n) | ^ optimize.c:549:13: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 549 | static Uint opt_binop(m) | ^ optimize.c:1051:13: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1051 | static Uint opt_asgnexp(m, pop) | ^ optimize.c:1240:13: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1240 | static bool opt_ctest(n) | ^ optimize.c:1254:13: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1254 | static Uint opt_cond(m, pop) | ^ optimize.c:1271:13: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1271 | static Uint opt_expr(m, pop) | ^ optimize.c:1761:1: warning: non-void function does not return a value in all control paths [-Wreturn-type] 1761 | } | ^ optimize.c:1767:12: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1767 | static int opt_const(n) | ^ optimize.c:1795:14: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1795 | static node *opt_skip(n) | ^ optimize.c:1882:7: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1882 | node *opt_stmt(first, depth) | ^ 18 warnings generated. clang -I. -I.. -I../lex -I../parser -I../kfun -DNETBSD -O2 -c codegeni.c codegeni.c:31:13: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 31 | static void line_byte(byte) | ^ codegeni.c:64:12: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 64 | static int line_fix(newline) | ^ codegeni.c:97:13: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 97 | static void line_make(buf) | ^ codegeni.c:154:13: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 154 | static void code_byte(byte) | ^ codegeni.c:185:13: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 185 | static void code_word(word) | ^ codegeni.c:196:13: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 196 | static void code_instr(i, line) | ^ codegeni.c:208:13: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 208 | static void code_kfun(kf, line) | ^ codegeni.c:230:9: warning: passing arguments to 'c_error' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 230 | c_error("function too large"); | ^ codegeni.c:220:14: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 220 | static char *code_make(depth, nlocals, size) | ^ codegeni.c:305:17: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 305 | static jmplist *jump_addr(list) | ^ codegeni.c:337:17: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 337 | static jmplist *jump(i, list) | ^ codegeni.c:349:13: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 349 | static void jump_resolve(list, to) | ^ codegeni.c:363:13: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 363 | static void jump_make(code) | ^ codegeni.c:455:13: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 455 | static void cg_cast(type) | ^ codegeni.c:469:13: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 469 | static void cg_lvalue(n, type) | ^ codegeni.c:542:13: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 542 | static void cg_fetch(n) | ^ codegeni.c:556:13: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 556 | static void cg_asgnop(n, op) | ^ codegeni.c:570:12: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 570 | static int cg_aggr(n) | ^ codegeni.c:590:12: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 590 | static int cg_map_aggr(n) | ^ codegeni.c:612:12: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 612 | static int cg_sumargs(n) | ^ codegeni.c:660:12: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 660 | static int cg_funargs(n, lv) | ^ codegeni.c:697:13: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 697 | static void cg_expr(n, pop) | ^ codegeni.c:1391:13: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1391 | static void cg_cond(n, jmptrue) | ^ codegeni.c:1476:13: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1476 | static void cg_switch_int(n) | ^ codegeni.c:1557:13: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1557 | static void cg_switch_range(n) | ^ codegeni.c:1655:13: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1655 | static void cg_switch_str(n) | ^ codegeni.c:1731:13: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1731 | static void cg_stmt(n) | ^ codegeni.c:1947:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1947 | void cg_init(inherited) | ^ codegeni.c:1967:7: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1967 | char *cg_function(fname, n, nvar, npar, depth, size) | ^ 29 warnings generated. clang -I. -I.. -I../lex -I../parser -I../kfun -DNETBSD -O2 -c compile.c compile.c:96:12: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 96 | static int block_var(name) | ^ compile.c:118:9: warning: passing arguments to 'c_error' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 118 | c_error("redeclaration of parameter %s", name); | ^ compile.c:113:13: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 113 | static void block_pdef(name, type) | ^ compile.c:136:9: warning: passing arguments to 'c_error' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 136 | c_error("redeclaration of local variable %s", name); | ^ compile.c:138:9: warning: passing arguments to 'c_error' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 138 | c_error("too many local variables"); | ^ compile.c:131:13: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 131 | static void block_vdef(name, type) | ^ compile.c:197:14: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 197 | static loop *loop_new(prev) | ^ compile.c:227:14: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 227 | static loop *loop_del(l) | ^ compile.c:284:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 284 | void c_init(a, d, i, p, tc) | ^ compile.c:331:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 331 | bool c_inherit(file, label, priv) | ^ compile.c:342:9: warning: passing arguments to 'c_error' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 342 | c_error("cannot inherit from auto object"); | ^ compile.c:352:6: warning: logical not is only applied to the left hand side of this comparison [-Wlogical-not-parentheses] 352 | if (!strcmp(file, auto_object) == 0) { | ^ ~~ compile.c:352:6: note: add parentheses after the '!' to evaluate the comparison first 352 | if (!strcmp(file, auto_object) == 0) { | ^ | ( ) compile.c:352:6: note: add parentheses around left hand side expression to silence this warning 352 | if (!strcmp(file, auto_object) == 0) { | ^ | ( ) compile.c:353:13: warning: passing arguments to 'c_error' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 353 | c_error("illegal inherit from driver object"); | ^ compile.c:383:8: warning: passing arguments to 'error' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 383 | error("Cannot inherit \"%s\"", buf); | ^ compile.c:406:9: warning: passing arguments to 'c_error' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 406 | c_error("illegal to inherit driver object"); | ^ compile.c:420:9: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 420 | object *c_compile(f, file, obj) | ^ compile.c:437:8: warning: passing arguments to 'error' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 437 | error("Cycle in inheritance from \"/%s.c\"", current->file); | ^ compile.c:441:11: warning: passing arguments to 'error' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 441 | error("Compilation nesting too deep"); | ^ compile.c:448:7: warning: passing arguments to 'error' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 448 | error("Compilation within compilation"); | ^ compile.c:453:7: warning: passing arguments to 'error' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 453 | error("Illegal object name \"/%s\"", file); | ^ compile.c:468:7: warning: passing arguments to 'error' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 468 | error((char *) NULL); | ^ compile.c:499:8: warning: passing arguments to 'error' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 499 | error("Upgraded auto object while compiling \"/%s\"", file_c); | ^ compile.c:506:11: warning: passing arguments to 'error' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 506 | error("Could not compile \"/%s\"", file_c); | ^ compile.c:509:11: warning: passing arguments to 'error' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 509 | error("Could not include \"/%s\"", include); | ^ compile.c:518:12: warning: passing arguments to 'error' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 518 | error("Object destructed during recompilation"); | ^ compile.c:521:12: warning: passing arguments to 'error' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 521 | error("Object recompiled during recompilation"); | ^ compile.c:525:12: warning: passing arguments to 'error' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 525 | error("Object inherited during recompilation"); | ^ compile.c:529:8: warning: passing arguments to 'error' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 529 | error("Too many objects"); | ^ compile.c:576:11: warning: passing arguments to 'error' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 576 | error("Failed to compile \"/%s\"", file_c); | ^ compile.c:602:14: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 602 | static node *revert_list(n) | ^ compile.c:637:9: warning: passing arguments to 'c_error' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 637 | c_error("private contradicts nomask"); | ^ compile.c:640:9: warning: passing arguments to 'c_error' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 640 | c_error("varargs must be in parameter list"); | ^ compile.c:649:13: warning: passing arguments to 'c_error' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 649 | c_error("invalid type for function %s (%s)", str->text, | ^ compile.c:667:13: warning: passing arguments to 'c_error' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 667 | c_error("too many parameters in function %s", str->text); | ^ compile.c:680:10: warning: passing arguments to 'c_error' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 680 | c_error("missing type for parameter %s", arg->l.string->text); | ^ compile.c:684:13: warning: passing arguments to 'c_error' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 684 | c_error("invalid type for parameter %s (%s)", arg->l.string->text, | ^ compile.c:699:14: warning: passing arguments to 'c_error' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 699 | c_error("too deep indirection for parameter %s", | ^ compile.c:624:13: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 624 | static void c_decl_func(class, type, str, formals, function) | ^ compile.c:740:9: warning: passing arguments to 'c_error' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 740 | c_error("invalid type for variable %s (%s)", str->text, | ^ compile.c:746:13: warning: passing arguments to 'c_error' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 746 | c_error("invalid class for variable %s", str->text); | ^ compile.c:751:13: warning: passing arguments to 'c_error' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 751 | c_error("invalid class for variable %s", str->text); | ^ compile.c:732:13: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 732 | static void c_decl_var(class, type, str, global) | ^ compile.c:761:13: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 761 | static void c_decl_list(class, type, list, global) | ^ compile.c:790:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 790 | void c_global(class, type, n) | ^ compile.c:808:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 808 | void c_function(class, type, n) | ^ compile.c:824:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 824 | void c_funcbody(n) | ^ compile.c:895:9: warning: passing arguments to 'c_error' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 895 | c_error("function requires too much runtime stack space"); | ^ compile.c:910:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 910 | void c_local(class, type, n) | ^ compile.c:922:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 922 | bool c_nil(n) | ^ compile.c:936:7: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 936 | node *c_concat(n1, n2) | ^ compile.c:958:7: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 958 | node *c_exp_stmt(n) | ^ compile.c:971:7: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 971 | node *c_if(n1, n2, n3) | ^ compile.c:1000:14: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1000 | static node *c_block(n, type, flags) | ^ compile.c:1022:14: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1022 | static node *c_reloop(n) | ^ compile.c:1032:14: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1032 | static node *c_endloop(n) | ^ compile.c:1046:7: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1046 | node *c_do(n1, n2) | ^ compile.c:1060:7: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1060 | node *c_while(n1, n2) | ^ compile.c:1074:7: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1074 | node *c_for(n1, n2, n3, n4) | ^ compile.c:1101:7: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1101 | node *c_endrlimits(n1, n2, n3) | ^ compile.c:1150:7: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1150 | node *c_donecatch(n1, n2) | ^ compile.c:1179:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1179 | void c_startswitch(n, typechecked) | ^ compile.c:1189:9: warning: passing arguments to 'c_error' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1189 | c_error("bad switch expression type (%s)", i_typename(tnbuf, n->mod)); | ^ compile.c:1205:12: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1205 | static int cmp(cv1, cv2) | ^ compile.c:1229:7: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1229 | node *c_endswitch(expr, stmt) | ^ compile.c:1245:13: warning: passing arguments to 'c_error' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1245 | c_error("unreachable code in switch"); | ^ compile.c:1247:13: warning: passing arguments to 'c_error' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1247 | c_error("too many cases in switch"); | ^ compile.c:1270:13: warning: passing arguments to 'c_error' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1270 | c_error("wrong switch expression type (%s)", | ^ compile.c:1292:11: warning: passing arguments to 'c_error' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1292 | c_error("duplicate case labels in switch"); | ^ compile.c:1298:12: warning: passing arguments to 'c_error' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1298 | c_error("duplicate case labels in switch"); | ^ compile.c:1320:15: warning: passing arguments to 'c_error' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1320 | c_error("duplicate case labels in switch"); | ^ compile.c:1322:15: warning: passing arguments to 'c_error' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1322 | c_error("overlapping case label ranges in switch"); | ^ compile.c:1413:7: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1413 | node *c_case(n1, n2) | ^ compile.c:1417:9: warning: passing arguments to 'c_error' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1417 | c_error("case label not inside switch"); | ^ compile.c:1421:9: warning: passing arguments to 'c_error' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1421 | c_error("illegal jump into rlimits or catch"); | ^ compile.c:1431:13: warning: passing arguments to 'c_error' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1431 | c_error("bad case range"); | ^ compile.c:1439:13: warning: passing arguments to 'c_error' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1439 | c_error("multiple case types in switch"); | ^ compile.c:1446:13: warning: passing arguments to 'c_error' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1446 | c_error("bad case expression"); | ^ compile.c:1455:10: warning: passing arguments to 'c_error' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1455 | c_error("bad case range"); | ^ compile.c:1476:10: warning: passing arguments to 'c_error' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1476 | c_error("multiple case types in switch"); | ^ compile.c:1500:9: warning: passing arguments to 'c_error' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1500 | c_error("default label not inside switch"); | ^ compile.c:1502:9: warning: passing arguments to 'c_error' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1502 | c_error("duplicate default label in switch"); | ^ compile.c:1505:9: warning: passing arguments to 'c_error' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1505 | c_error("illegal jump into rlimits or catch"); | ^ compile.c:1533:9: warning: passing arguments to 'c_error' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1533 | c_error("break statement not inside loop or switch"); | ^ compile.c:1552:9: warning: passing arguments to 'c_error' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1552 | c_error("continue statement not inside loop"); | ^ compile.c:1566:7: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1566 | node *c_return(n, typechecked) | ^ compile.c:1574:13: warning: passing arguments to 'c_error' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1574 | c_error("function must return value"); | ^ compile.c:1582:13: warning: passing arguments to 'c_error' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1582 | c_error("value returned from void function"); | ^ compile.c:1588:13: warning: passing arguments to 'c_error' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1588 | c_error("returned value doesn't match %s (%s)", | ^ compile.c:1619:7: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1619 | node *c_endcompound(n) | ^ compile.c:1638:7: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1638 | node *c_flookup(n, typechecked) | ^ compile.c:1655:7: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1655 | node *c_iflookup(n, label) | ^ compile.c:1673:7: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1673 | node *c_aggregate(n, type) | ^ compile.c:1684:7: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1684 | node *c_variable(n) | ^ compile.c:1710:7: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1710 | short c_vtype(i) | ^ compile.c:1720:13: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1720 | static bool lvalue(n) | ^ compile.c:1776:10: warning: passing arguments to 'c_error' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1776 | c_error("too few arguments for function %s", fname); | ^ compile.c:1798:14: warning: passing arguments to 'c_error' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1798 | c_error("ellipsis requires array"); | ^ compile.c:1809:14: warning: passing arguments to 'c_error' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1809 | c_error("bad argument %d for function %s (needs %s)", n, | ^ compile.c:1820:10: warning: passing arguments to 'c_error' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1820 | c_error("bad argument %d for function %s (needs lvalue)", | ^ compile.c:1829:13: warning: passing arguments to 'c_error' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1829 | c_error("bad argument %d for function %s (needs %s)", n, fname, | ^ compile.c:1847:9: warning: passing arguments to 'c_error' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1847 | c_error("too many arguments for function %s", fname); | ^ compile.c:1743:14: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1743 | static node *funcall(call, args) | ^ compile.c:1857:7: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1857 | node *c_funcall(func, args) | ^ compile.c:1867:7: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1867 | node *c_arrow(other, func, args) | ^ compile.c:1883:7: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1883 | node *c_checkcall(n, typechecked) | ^ compile.c:1911:7: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1911 | node *c_tst(n) | ^ compile.c:1958:7: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1958 | node *c_not(n) | ^ compile.c:2056:7: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 2056 | node *c_lvalue(n, oper) | ^ compile.c:2061:9: warning: passing arguments to 'c_error' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 2061 | c_error("bad lvalue for %s", oper); | ^ compile.c:2072:16: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 2072 | unsigned short c_tmatch(type1, type2) | ^ compile.c:2132:9: warning: passing arguments to 'message' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 2132 | message("%s\012", buf); /* LF */ | ^ compile.c:2108:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 2108 | void c_error(format, a1, a2, a3) | ^ In file included from compile.c:16: ./compile.h:5:15: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 5 | extern void c_error (); | ^ 113 warnings generated. clang -I. -I.. -I../lex -I../parser -I../kfun -DNETBSD -O2 -c csupport.c csupport.c:42:13: warning: passing arguments to 'message' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 42 | message("Precompiled: cannot inherit /%s from /%s", pcinh->name, | ^ csupport.c:55:9: warning: passing arguments to 'message' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 55 | message("Precompiled: object out of date: /%s", pcinh->name); | ^ csupport.c:59:9: warning: passing arguments to 'message' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 59 | message("Precompiled: object precompiled twice: /%s", pcinh->name); | ^ csupport.c:29:13: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 29 | static bool pc_inherits(inh, pcinh, ninherits, compiled) | ^ csupport.c:72:13: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 72 | static void pc_funcdefs(program, funcdefs, nfuncdefs, nfuncs) | ^ csupport.c:100:15: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 100 | static uindex pc_obj(name, inherits, ninherits) | ^ csupport.c:126:13: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 126 | static void hash_add(oindex, elt) | ^ csupport.c:148:15: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 148 | static uindex hash_find(oindex) | ^ csupport.c:165:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 165 | bool pc_preload(auto_obj, driver_obj) | ^ csupport.c:223:8: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 223 | array *pc_list(data) | ^ csupport.c:260:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 260 | void pc_control(ctrl, obj) | ^ csupport.c:337:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 337 | bool pc_dump(fd) | ^ csupport.c:516:13: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 516 | static void fixinherits(inh, pcinh, ninherits) | ^ csupport.c:537:13: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 537 | static bool inh1cmp(dinh, inh, ninherits) | ^ csupport.c:558:13: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 558 | static bool inh2cmp(dinh, inh, ninherits) | ^ csupport.c:578:13: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 578 | static bool dstrcmp(dstrings, strings, nstrings) | ^ csupport.c:598:13: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 598 | static bool func1cmp(dfuncdefs, funcdefs, prog, nfuncdefs) | ^ csupport.c:621:13: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 621 | static bool func2cmp(dfuncdefs, funcdefs, dprog, prog, nfuncdefs) | ^ csupport.c:645:13: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 645 | static bool varcmp(dvardefs, vardefs, nvardefs) | ^ csupport.c:667:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 667 | void pc_restore(fd) | ^ csupport.c:711:12: warning: passing arguments to 'fatal' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 711 | fatal("cannot read from dump file"); | ^ csupport.c:726:8: warning: passing arguments to 'fatal' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 726 | fatal("cannot read from dump file"); | ^ csupport.c:737:12: warning: passing arguments to 'error' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 737 | error("Restored object not precompiled: /%s", name); | ^ csupport.c:758:9: warning: passing arguments to 'error' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 758 | error("Restored different precompiled object /%s", | ^ csupport.c:832:12: warning: passing arguments to 'error' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 832 | error("Precompiled object != restored object /%s", name); | ^ csupport.c:856:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 856 | void call_kfun(f, n) | ^ csupport.c:867:20: warning: passing arguments to a function without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 867 | n = (*kf->func)(f); | ^ csupport.c:869:7: warning: passing arguments to 'error' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 869 | error("Bad argument %d for kfun %s", n, kf->name); | ^ csupport.c:877:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 877 | void call_kfun_arg(f, n, nargs) | ^ csupport.c:887:20: warning: passing arguments to a function without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 887 | n = (*kf->func)(f, nargs); | ^ csupport.c:889:7: warning: passing arguments to 'error' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 889 | error("Bad argument %d for kfun %s", n, kf->name); | ^ csupport.c:897:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 897 | Int xdiv(i, d) | ^ csupport.c:901:7: warning: passing arguments to 'error' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 901 | error("Division by zero"); | ^ csupport.c:916:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 916 | Int xmod(i, d) | ^ csupport.c:920:7: warning: passing arguments to 'error' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 920 | error("Modulus by zero"); | ^ csupport.c:935:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 935 | Int xlshift(i, shift) | ^ csupport.c:940:11: warning: passing arguments to 'error' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 940 | error("Negative left shift"); | ^ csupport.c:951:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 951 | Int xrshift(i, shift) | ^ csupport.c:956:11: warning: passing arguments to 'error' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 956 | error("Negative right shift"); | ^ csupport.c:967:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 967 | bool poptruthval(f) | ^ csupport.c:999:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 999 | void new_rlimits(f) | ^ csupport.c:1003:7: warning: passing arguments to 'error' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1003 | error("Bad rlimits depth type"); | ^ csupport.c:1006:7: warning: passing arguments to 'error' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1006 | error("Bad rlimits ticks type"); | ^ csupport.c:1017:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1017 | int switch_range(i, tab, h) | ^ csupport.c:1044:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1044 | int switch_str(v, ctrl, tab, h) | ^ 45 warnings generated. cd lex; make 'CC=clang' 'CCFLAGS=-DNETBSD -O2' dgd clang -I. -I.. -I../comp -DNETBSD -O2 -c macro.c macro.c:68:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 68 | void mc_define(name, replace, narg) | ^ macro.c:79:13: warning: passing arguments to 'c_error' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 79 | warning("macro %s redefined", name); | ^ macro.c:117:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 117 | void mc_undef(name) | ^ macro.c:144:8: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 144 | macro *mc_lookup(name) | ^ 4 warnings generated. clang -I. -I.. -I../comp -DNETBSD -O2 -c ppstr.c ppstr.c:50:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 50 | str *pps_new(buf, sz) | ^ ppstr.c:84:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 84 | void pps_del(sb) | ^ ppstr.c:95:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 95 | int pps_scat(sb, s) | ^ ppstr.c:112:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 112 | int pps_ccat(sb, c) | ^ 4 warnings generated. clang -I. -I.. -I../comp -DNETBSD -O2 -c token.c token.c:76:13: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 76 | static void push(mc, buffer, eof) | ^ token.c:167:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 167 | bool tk_include(file) | ^ token.c:239:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 239 | void tk_setline(line) | ^ token.c:249:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 249 | void tk_setfilename(file) | ^ token.c:268:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 268 | void tk_header(incl) | ^ token.c:279:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 279 | void tk_setpp(pp) | ^ token.c:361:12: warning: passing arguments to 'c_error' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 361 | error("EOF in comment"); | ^ token.c:393:14: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 393 | static char *tk_esc(p) | ^ token.c:497:8: warning: passing arguments to 'c_error' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 497 | error("unterminated string"); | ^ token.c:510:7: warning: passing arguments to 'c_error' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 510 | error("string too long"); | ^ token.c:461:12: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 461 | static int tk_string(quote) | ^ token.c:691:9: warning: passing arguments to 'c_error' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 691 | error("too long floating point constant"); | ^ token.c:698:13: warning: passing arguments to 'c_error' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 698 | error("overflow in floating point constant"); | ^ token.c:707:9: warning: passing arguments to 'c_error' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 707 | error("too long integer constant"); | ^ token.c:709:9: warning: passing arguments to 'c_error' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 709 | error("overflow in integer constant"); | ^ token.c:853:8: warning: passing arguments to 'c_error' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 853 | error("too long integer constant"); | ^ token.c:855:8: warning: passing arguments to 'c_error' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 855 | error("bad octal constant"); | ^ token.c:857:8: warning: passing arguments to 'c_error' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 857 | error("overflow in integer constant"); | ^ token.c:897:8: warning: passing arguments to 'c_error' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 897 | error("too long integer constant"); | ^ token.c:899:8: warning: passing arguments to 'c_error' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 899 | error("overflow in integer constant"); | ^ token.c:925:11: warning: passing arguments to 'c_error' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 925 | error("too long identifier"); | ^ token.c:934:8: warning: passing arguments to 'c_error' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 934 | error("too short character constant"); | ^ token.c:938:8: warning: passing arguments to 'c_error' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 938 | error("unterminated character constant"); | ^ token.c:950:12: warning: passing arguments to 'c_error' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 950 | error("illegal character constant"); | ^ token.c:974:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 974 | void tk_skiptonl(ws) | ^ token.c:981:11: warning: passing arguments to 'c_error' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 981 | error("unterminated line"); | ^ token.c:995:8: warning: passing arguments to 'c_error' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 995 | error("bad token in control"); | ^ token.c:1010:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1010 | int tk_expand(mc) | ^ token.c:1084:12: warning: passing arguments to 'c_error' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1084 | error("EOF in macro call"); | ^ token.c:1094:9: warning: passing arguments to 'c_error' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1094 | error("macro argument too long"); | ^ token.c:1145:11: warning: passing arguments to 'c_error' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1145 | error("macro argument count mismatch"); | ^ token.c:1261:8: warning: passing arguments to 'c_error' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1261 | error("macro expansion too large"); | ^ 32 warnings generated. clang -I. -I.. -I../comp -DNETBSD -O2 -c special.c special.c:35:7: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 35 | char *special_replace(name) | ^ 1 warning generated. clang -I. -I.. -I../comp -DNETBSD -O2 -c ppcontrol.c ppcontrol.c:48:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 48 | bool pp_init(file, id, level) | ^ ppcontrol.c:253:12: warning: passing arguments to 'c_error' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 253 | error("missing identifier in defined"); | ^ ppcontrol.c:258:9: warning: passing arguments to 'c_error' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 258 | error("missing ) in defined"); | ^ ppcontrol.c:289:11: warning: passing arguments to 'c_error' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 289 | error("missing ) in conditional control"); | ^ ppcontrol.c:306:11: warning: passing arguments to 'c_error' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 306 | error("missing expression in conditional control"); | ^ ppcontrol.c:324:12: warning: passing arguments to 'c_error' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 324 | error("division by zero in conditional control"); | ^ ppcontrol.c:327:12: warning: passing arguments to 'c_error' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 327 | error("modulus by zero in conditional control"); | ^ ppcontrol.c:353:12: warning: passing arguments to 'c_error' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 353 | error("? without : in conditional control"); | ^ ppcontrol.c:277:13: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 277 | static long eval_expr(priority) | ^ ppcontrol.c:387:12: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 387 | static int pptokenz(key, len) | ^ ppcontrol.c:415:12: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 415 | static int tokenz(key, len) | ^ ppcontrol.c:444:7: warning: passing arguments to 'c_error' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 444 | error("missing %s in #%s", wanted, directive); | ^ ppcontrol.c:446:7: warning: passing arguments to 'c_error' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 446 | error("unexpected token in #%s", directive); | ^ ppcontrol.c:439:13: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 439 | static void unexpected(token, wanted, directive) | ^ ppcontrol.c:462:7: warning: passing arguments to 'c_error' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 462 | error("#include nesting too deep"); | ^ ppcontrol.c:472:7: warning: passing arguments to 'c_error' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 472 | error("illegal #include from config file"); | ^ ppcontrol.c:502:10: warning: passing arguments to 'c_error' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 502 | error("cannot include \"%s\"", file); | ^ ppcontrol.c:510:12: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 510 | static int argnum(args, narg, token) | ^ ppcontrol.c:552:12: warning: passing arguments to 'c_error' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 552 | error("unterminated macro definition"); | ^ ppcontrol.c:557:12: warning: passing arguments to 'c_error' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 557 | error("unexpected token in macro parameter list"); | ^ ppcontrol.c:566:12: warning: passing arguments to 'c_error' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 566 | error("too many parameters in macro definition"); | ^ ppcontrol.c:576:12: warning: passing arguments to 'c_error' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 576 | error("unterminated macro definition"); | ^ ppcontrol.c:581:12: warning: passing arguments to 'c_error' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 581 | error("unexpected token in macro parameter list"); | ^ ppcontrol.c:624:12: warning: passing arguments to 'c_error' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 624 | error("# must be followed by parameter"); | ^ ppcontrol.c:632:12: warning: passing arguments to 'c_error' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 632 | error("## at start of macro replacement list"); | ^ ppcontrol.c:639:12: warning: passing arguments to 'c_error' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 639 | error("## at end of macro replacement list"); | ^ ppcontrol.c:686:11: warning: passing arguments to 'c_error' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 686 | error("macro replacement list too large"); | ^ ppcontrol.c:688:11: warning: passing arguments to 'c_error' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 688 | error("#define of predefined macro"); | ^ ppcontrol.c:720:8: warning: passing arguments to 'c_error' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 720 | error("missing #endif"); | ^ ppcontrol.c:772:11: warning: passing arguments to 'c_error' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 772 | error((token >= 32 && token < 127) ? | ^ ppcontrol.c:803:9: warning: passing arguments to 'c_error' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 803 | error("#elif without #if"); | ^ ppcontrol.c:806:9: warning: passing arguments to 'c_error' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 806 | error("#elif after #else"); | ^ ppcontrol.c:857:9: warning: passing arguments to 'c_error' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 857 | error("#else without #if"); | ^ ppcontrol.c:860:9: warning: passing arguments to 'c_error' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 860 | error("#else after #else"); | ^ ppcontrol.c:871:9: warning: passing arguments to 'c_error' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 871 | error("#endif without #if"); | ^ ppcontrol.c:897:13: warning: passing arguments to 'c_error' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 897 | error("#error directive"); | ^ ppcontrol.c:899:13: warning: passing arguments to 'c_error' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 899 | error("#error:%s", buf); | ^ ppcontrol.c:955:13: warning: passing arguments to 'c_error' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 955 | error("#undef of predefined macro"); | ^ ppcontrol.c:971:12: warning: passing arguments to 'c_error' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 971 | error("undefined control"); | ^ ppcontrol.c:976:8: warning: passing arguments to 'c_error' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 976 | error("undefined control"); | ^ 40 warnings generated. cd ed; make 'CC=clang' 'CCFLAGS=-DNETBSD -O2' dgd clang -I. -I.. -DNETBSD -O2 -c line.c line.c:78:10: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 78 | linebuf *lb_new(lb, filename) | ^ line.c:120:7: warning: passing arguments to 'fatal' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 120 | fatal("cannot create editor tmpfile \"%s\"", lb->file); | ^ line.c:130:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 130 | void lb_del(lb) | ^ line.c:159:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 159 | void lb_inact(lb) | ^ line.c:182:11: warning: passing arguments to 'fatal' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 182 | fatal("cannot reopen editor tmpfile \"%s\"", lb->file); | ^ line.c:174:13: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 174 | static void lb_act(lb) | ^ line.c:209:11: warning: passing arguments to 'ed_error' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 209 | error("Failed to write editor tmpfile"); | ^ line.c:191:13: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 191 | static void lb_write(lb) | ^ line.c:246:12: warning: passing arguments to 'fatal' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 246 | fatal("cannot read editor tmpfile \"%s\"", lb->file); | ^ line.c:224:13: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 224 | static blk *bk_load(lb, b) | ^ line.c:278:13: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 278 | static blk *bk_putblk(lb, bp, text) | ^ line.c:331:13: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 331 | static blk *bk_putln(lb, bp, text) | ^ line.c:377:7: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 377 | block bk_new(lb, getline, context) | ^ line.c:416:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 416 | Int bk_size(lb, b) | ^ line.c:428:13: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 428 | static void bk_split1(lb, bp, size, b1, b2) | ^ line.c:531:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 531 | void bk_split(lb, b, size, b1, b2) | ^ line.c:543:7: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 543 | block bk_cat(lb, b1, b2) | ^ line.c:586:7: warning: passing arguments to 'ed_error' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 586 | error("Editor line tree too large"); | ^ line.c:604:13: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 604 | static void bk_put1(lb, bp, idx, size) | ^ line.c:717:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 717 | void bk_put(lb, b, idx, size, putline, context, reverse) | ^ 20 warnings generated. clang -I. -I.. -DNETBSD -O2 -c buffer.c buffer.c:12:10: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 12 | editbuf *eb_new(tmpfile) | ^ buffer.c:29:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 29 | void eb_del(eb) | ^ buffer.c:40:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 40 | void eb_clear(eb) | ^ buffer.c:54:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 54 | void eb_add(eb, ln, getline, context) | ^ buffer.c:67:11: warning: passing arguments to 'ed_error' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 67 | error("Too many lines"); | ^ buffer.c:93:7: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 93 | block eb_delete(eb, first, last) | ^ buffer.c:128:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 128 | void eb_change(eb, first, last, b) | ^ buffer.c:140:11: warning: passing arguments to 'ed_error' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 140 | error("Too many lines"); | ^ buffer.c:177:7: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 177 | block eb_yank(eb, first, last) | ^ buffer.c:200:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 200 | void eb_put(eb, ln, b) | ^ buffer.c:209:7: warning: passing arguments to 'ed_error' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 209 | error("Too many lines"); | ^ buffer.c:235:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 235 | void eb_range(eb, first, last, putline, context, reverse) | ^ buffer.c:257:14: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 257 | static char *add_line(ptr) | ^ buffer.c:279:13: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 279 | static void flush_line(eb) | ^ buffer.c:297:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 297 | void eb_startblock(eb) | ^ buffer.c:308:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 308 | void eb_addblock(eb, text) | ^ buffer.c:327:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 327 | void eb_endblock(eb) | ^ 17 warnings generated. clang -I. -I.. -DNETBSD -O2 -c fileio.c fileio.c:50:12: warning: passing arguments to 'ed_error' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 50 | error("error while reading file \"/%s\"", x->filename); | ^ fileio.c:27:14: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 27 | static char *my_getline(ptr) | ^ fileio.c:89:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 89 | bool io_load(eb, filename, l, iobuf) | ^ fileio.c:127:7: warning: passing arguments to 'ed_error' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 127 | error((char *) NULL); /* pass on error */ | ^ fileio.c:161:11: warning: passing arguments to 'ed_error' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 161 | error("error while writing file \"/%s\"", x->filename); | ^ fileio.c:140:13: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 140 | static void putline(ptr, text) | ^ fileio.c:176:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 176 | bool io_save(eb, filename, first, last, append, iobuf) | ^ fileio.c:213:7: warning: passing arguments to 'ed_error' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 213 | error((char *) NULL); /* pass on error */ | ^ fileio.c:217:7: warning: passing arguments to 'ed_error' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 217 | error("error while writing file \"/%s\"", x.filename); | ^ 9 warnings generated. clang -I. -I.. -DNETBSD -O2 -c regexp.c regexp.c:46:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 46 | void rx_del(rx) | ^ regexp.c:59:7: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 59 | char *rx_comp(rx, pattern) | ^ regexp.c:304:13: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 304 | static bool match(rx, text, ic, m, t) | ^ regexp.c:439:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 439 | int rx_exec(rx, text, idx, ic) | ^ 4 warnings generated. clang -I. -I.. -DNETBSD -O2 -c vars.c vars.c:31:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 31 | void va_del(v) | ^ vars.c:41:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 41 | void va_set(v, option) | ^ vars.c:68:12: warning: passing arguments to 'ed_error' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 68 | error("Bad numeric value for option \"%s\"", v->name); | ^ vars.c:75:10: warning: passing arguments to 'ed_error' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 75 | error("No such option"); | ^ vars.c:82:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 82 | void va_show(v) | ^ vars.c:85:11: warning: passing arguments to 'output' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 85 | output("%signorecase\011", ((v++)->val) ? "" : "no"); /* HT */ | ^ vars.c:86:11: warning: passing arguments to 'output' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 86 | output("shiftwidth=%ld\011", (long) (v++)->val); /* HT */ | ^ vars.c:87:11: warning: passing arguments to 'output' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 87 | output("window=%ld\012", (long) (v++)->val); /* LF */ | ^ 8 warnings generated. clang -I. -I.. -DNETBSD -O2 -c edcmd.c edcmd.c:46:9: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 46 | cmdbuf *cb_new(tmpfile) | ^ edcmd.c:68:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 68 | void cb_del(cb) | ^ edcmd.c:82:7: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 82 | char *skipst(p) | ^ edcmd.c:128:7: warning: passing arguments to 'ed_error' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 128 | error("Regular expression too large"); | ^ edcmd.c:95:7: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 95 | char *pattern(pat, delim, buffer) | ^ edcmd.c:153:11: warning: passing arguments to 'ed_error' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 153 | error("No previous regular expression"); | ^ edcmd.c:160:11: warning: passing arguments to 'ed_error' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 160 | error(err); | ^ edcmd.c:144:13: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 144 | static void cb_pattern(cb, delim) | ^ edcmd.c:213:11: warning: passing arguments to 'ed_error' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 213 | error("Marks are a-z"); | ^ edcmd.c:216:11: warning: passing arguments to 'ed_error' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 216 | error("Undefined mark referenced"); | ^ edcmd.c:236:11: warning: passing arguments to 'ed_error' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 236 | error("Pattern not found"); | ^ edcmd.c:253:8: warning: passing arguments to 'ed_error' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 253 | error("Pattern not found"); | ^ edcmd.c:284:7: warning: passing arguments to 'ed_error' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 284 | error("Negative address"); | ^ edcmd.c:170:12: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 170 | static Int cb_address(cb, first) | ^ edcmd.c:294:13: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 294 | static void cb_range(cb) | ^ edcmd.c:350:11: warning: passing arguments to 'ed_error' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 350 | error("Not that many lines in buffer"); | ^ edcmd.c:329:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 329 | void cb_count(cb) | ^ edcmd.c:363:7: warning: passing arguments to 'ed_error' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 363 | error("Command not allowed in global"); | ^ edcmd.c:359:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 359 | void not_in_global(cb) | ^ edcmd.c:371:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 371 | void cb_do(cb, this) | ^ edcmd.c:393:7: warning: passing arguments to 'ed_error' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 393 | error("Nothing to undo"); | ^ edcmd.c:385:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 385 | int cb_undo(cb) | ^ edcmd.c:420:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 420 | void cb_buf(cb, b) | ^ edcmd.c:468:11: warning: passing arguments to 'ed_error' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 468 | error("Illegal add in global"); | ^ edcmd.c:456:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 456 | void add(cb, ln, b, size) | ^ edcmd.c:506:11: warning: passing arguments to 'ed_error' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 506 | error("Illegal delete in global"); | ^ edcmd.c:488:7: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 488 | block delete(cb, first, last) | ^ edcmd.c:556:11: warning: passing arguments to 'ed_error' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 556 | error("Illegal change in global"); | ^ edcmd.c:534:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 534 | void change(cb, first, last, b) | ^ edcmd.c:582:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 582 | void startblock(cb) | ^ edcmd.c:592:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 592 | void addblock(cb, text) | ^ edcmd.c:603:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 603 | void endblock(cb) | ^ edcmd.c:636:13: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 636 | static void find(ptr, text) | ^ edcmd.c:672:7: warning: passing arguments to 'ed_error' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 672 | error("Missing regular expression for global"); | ^ edcmd.c:689:11: warning: passing arguments to 'ed_error' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 689 | error(p); | ^ edcmd.c:737:7: warning: passing arguments to 'ed_error' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 737 | error((char *) NULL); | ^ edcmd.c:653:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 653 | int cb_global(cb) | ^ edcmd.c:746:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 746 | int cb_vglobal(cb) | ^ edcmd.c:827:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 827 | bool cb_command(cb, command) | ^ edcmd.c:838:8: warning: passing arguments to 'ed_error' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 838 | error("Line too long"); | ^ edcmd.c:865:12: warning: passing arguments to 'ed_error' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 865 | error("End-of-file"); | ^ edcmd.c:932:12: warning: passing arguments to 'ed_error' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 932 | error("No such command"); | ^ edcmd.c:960:9: warning: passing arguments to 'ed_error' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 960 | error("Command requires a trailing address"); | ^ edcmd.c:973:12: warning: passing arguments to 'ed_error' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 973 | error("No lines in buffer"); | ^ edcmd.c:976:12: warning: passing arguments to 'ed_error' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 976 | error("Nonzero address required on this command"); | ^ edcmd.c:1001:8: warning: passing arguments to 'ed_error' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1001 | error("Not that many lines in buffer"); | ^ edcmd.c:1004:8: warning: passing arguments to 'ed_error' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1004 | error("Inverted address range"); | ^ edcmd.c:1007:22: warning: passing arguments to a function without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1007 | ret = (*cm->ftn)(cb); | ^ edcmd.c:1059:8: warning: passing arguments to 'ed_error' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1059 | error("Illegal characters after command"); | ^ 49 warnings generated. clang -I. -I.. -DNETBSD -O2 -c cmdsub.c cmdsub.c:29:13: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 29 | static void find(ptr, text) | ^ cmdsub.c:46:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 46 | Int cb_search(cb, first, last, reverse) | ^ cmdsub.c:107:11: warning: passing arguments to 'output' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 107 | output("%s\012", buffer); /* LF */ | ^ cmdsub.c:69:13: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 69 | static void println(ptr, text) | ^ cmdsub.c:116:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 116 | int cb_print(cb) | ^ cmdsub.c:153:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 153 | int cb_list(cb) | ^ cmdsub.c:164:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 164 | int cb_number(cb) | ^ cmdsub.c:181:7: warning: passing arguments to 'ed_error' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 181 | error("No lines in buffer"); | ^ cmdsub.c:175:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 175 | int cb_page(cb) | ^ cmdsub.c:231:11: warning: passing arguments to 'output' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 231 | output("%ld\012", | ^ cmdsub.c:228:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 228 | int cb_assign(cb) | ^ cmdsub.c:245:7: warning: passing arguments to 'ed_error' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 245 | error("Mark must specify a letter"); | ^ cmdsub.c:241:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 241 | int cb_mark(cb) | ^ cmdsub.c:256:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 256 | int cb_append(cb) | ^ cmdsub.c:271:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 271 | int cb_insert(cb) | ^ cmdsub.c:285:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 285 | int cb_change(cb) | ^ cmdsub.c:310:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 310 | int cb_delete(cb) | ^ cmdsub.c:326:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 326 | int cb_copy(cb) | ^ cmdsub.c:349:7: warning: passing arguments to 'ed_error' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 349 | error("Move to moved line"); | ^ cmdsub.c:342:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 342 | int cb_move(cb) | ^ cmdsub.c:398:7: warning: passing arguments to 'ed_error' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 398 | error("Nothing in buffer"); | ^ cmdsub.c:386:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 386 | int cb_put(cb) | ^ cmdsub.c:413:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 413 | int cb_yank(cb) | ^ cmdsub.c:475:7: warning: passing arguments to 'ed_error' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 475 | error("Result of shift would be too long"); | ^ cmdsub.c:425:13: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 425 | static void shift(ptr, text) | ^ cmdsub.c:483:12: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 483 | static int cb_shift(cb) | ^ cmdsub.c:500:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 500 | int cb_lshift(cb) | ^ cmdsub.c:511:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 511 | int cb_rshift(cb) | ^ cmdsub.c:540:13: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 540 | static void noshift(cb, text) | ^ cmdsub.c:604:12: warning: incompatible pointer types passing 'cmdbuf *' to parameter of type 'char *' [-Wincompatible-pointer-types] 604 | shift(cb, text); /* use previous shift */ | ^~ cmdsub.c:643:12: warning: passing arguments to 'ed_error' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 643 | error("Unterminated string"); | ^ cmdsub.c:668:10: warning: incompatible pointer types passing 'cmdbuf *' to parameter of type 'char *' [-Wincompatible-pointer-types] 668 | shift(cb, text); | ^~ cmdsub.c:778:12: warning: passing arguments to 'ed_error' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 778 | error("Nesting too deep"); | ^ cmdsub.c:804:13: warning: incompatible pointer types passing 'cmdbuf *' to parameter of type 'char *' [-Wincompatible-pointer-types] 804 | shift(cb, text); | ^~ cmdsub.c:556:13: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 556 | static void indent(ptr, text) | ^ cmdsub.c:843:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 843 | int cb_indent(cb) | ^ cmdsub.c:896:7: warning: passing arguments to 'ed_error' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 896 | error("Result of join would be too long"); | ^ cmdsub.c:873:13: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 873 | static void join(ptr, text) | ^ cmdsub.c:912:7: warning: passing arguments to 'ed_error' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 912 | error("No lines in buffer"); | ^ cmdsub.c:905:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 905 | int cb_join(cb) | ^ cmdsub.c:964:7: warning: passing arguments to 'ed_error' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 964 | error("Line overflow in substitute"); | ^ cmdsub.c:949:13: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 949 | static void sub(cb, text, size) | ^ cmdsub.c:1005:13: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1005 | static void subst(ptr, text) | ^ cmdsub.c:1216:11: warning: passing arguments to 'ed_error' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1216 | error("No previous substitute to repeat"); | ^ cmdsub.c:1232:8: warning: passing arguments to 'ed_error' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1232 | error("Replace string too large"); | ^ cmdsub.c:1246:7: warning: passing arguments to 'ed_error' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1246 | error("Missing regular expression for substitute"); | ^ cmdsub.c:1252:7: warning: passing arguments to 'ed_error' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1252 | error(p); | ^ cmdsub.c:1286:7: warning: passing arguments to 'ed_error' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1286 | error("Substitute pattern match failed"); | ^ cmdsub.c:1203:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1203 | int cb_subst(cb) | ^ cmdsub.c:1330:7: warning: passing arguments to 'ed_error' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1330 | error("Filename too long"); | ^ cmdsub.c:1305:13: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1305 | static bool getfname(cb, buffer) | ^ cmdsub.c:1356:8: warning: passing arguments to 'output' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1356 | output("No file"); | ^ cmdsub.c:1358:8: warning: passing arguments to 'output' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1358 | output("\"%s\"", cb->fname); | ^ cmdsub.c:1361:8: warning: passing arguments to 'output' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1361 | output(" [Not edited]"); | ^ cmdsub.c:1364:8: warning: passing arguments to 'output' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1364 | output(" [Modified]"); | ^ cmdsub.c:1366:11: warning: passing arguments to 'output' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1366 | output(" line %ld of %ld --%d%%--\012", /* LF */ | ^ cmdsub.c:1344:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1344 | int cb_file(cb) | ^ cmdsub.c:1381:11: warning: passing arguments to 'output' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1381 | output("%ld lines, %ld characters", (long) iob->lines, | ^ cmdsub.c:1384:8: warning: passing arguments to 'output' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1384 | output(" [%ld zero]", (long) iob->zero); | ^ cmdsub.c:1387:8: warning: passing arguments to 'output' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1387 | output(" [%ld split]", (long) iob->split); | ^ cmdsub.c:1390:8: warning: passing arguments to 'output' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1390 | output(" [incomplete last line]"); | ^ cmdsub.c:1392:11: warning: passing arguments to 'output' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1392 | output("\012"); /* LF */ | ^ cmdsub.c:1378:13: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1378 | static void io_show(iob) | ^ cmdsub.c:1409:11: warning: passing arguments to 'ed_error' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1409 | error("No current filename"); | ^ cmdsub.c:1417:11: warning: passing arguments to 'output' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1417 | output("\"%s\" ", buffer); | ^ cmdsub.c:1419:7: warning: passing arguments to 'ed_error' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1419 | error("is unreadable"); | ^ cmdsub.c:1399:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1399 | int cb_read(cb) | ^ cmdsub.c:1433:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1433 | int cb_edit(cb) | ^ cmdsub.c:1441:7: warning: passing arguments to 'ed_error' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1441 | error("No write since last change (edit! overrides)"); | ^ cmdsub.c:1446:7: warning: passing arguments to 'ed_error' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1446 | error("No current filename"); | ^ cmdsub.c:1460:11: warning: passing arguments to 'output' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1460 | output("\"%s\" ", cb->fname); | ^ cmdsub.c:1462:7: warning: passing arguments to 'ed_error' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1462 | error("is unreadable"); | ^ cmdsub.c:1485:7: warning: passing arguments to 'ed_error' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1485 | error("No write since last change (quit! overrides)"); | ^ cmdsub.c:1479:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1479 | int cb_quit(cb) | ^ cmdsub.c:1514:11: warning: passing arguments to 'ed_error' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1514 | error("No current filename"); | ^ cmdsub.c:1521:8: warning: passing arguments to 'ed_error' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1521 | error("File is changed (use w! to override)"); | ^ cmdsub.c:1524:11: warning: passing arguments to 'ed_error' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1524 | error("Use w! to write partial buffer"); | ^ cmdsub.c:1528:11: warning: passing arguments to 'output' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1528 | output("\"%s\" ", buffer); | ^ cmdsub.c:1530:7: warning: passing arguments to 'ed_error' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1530 | error("write failed"); | ^ cmdsub.c:1495:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1495 | int cb_write(cb) | ^ cmdsub.c:1547:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1547 | int cb_wq(cb) | ^ cmdsub.c:1560:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1560 | int cb_xit(cb) | ^ cmdsub.c:1578:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1578 | int cb_set(cb) | ^ 83 warnings generated. cd parser; make 'CC=clang' 'CCFLAGS=-DNETBSD -O2' dgd clang -I. -I.. -DNETBSD -O2 -c grammar.c grammar.c:40:12: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 40 | static int rgxtok(buffer, len, str, node, thisnode, lastp) | ^ grammar.c:137:12: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 137 | static int gramtok(str, strlen, buffer, buflen) | ^ grammar.c:473:17: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 473 | static rulesym *rs_new(c, rl) | ^ grammar.c:498:13: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 498 | static void rs_clear(c) | ^ grammar.c:514:14: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 514 | static rule *rl_new(c, type) | ^ grammar.c:545:13: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 545 | static void rl_clear(c) | ^ grammar.c:609:16: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 609 | static string *make_grammar(rgxlist, strlist, prodlist, nrgx, nstr, nprod, size) | ^ grammar.c:731:9: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 731 | string *parse_grammar(gram) | ^ grammar.c:1044:10: warning: passing arguments to 'error' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1044 | error(buffer); | ^ grammar.c:1045:1: warning: non-void function does not return a value in all control paths [-Wreturn-type] 1045 | } | ^ 10 warnings generated. clang -I. -I.. -DNETBSD -O2 -c dfa.c dfa.c:10:13: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 10 | static void cs_neg(cs) | ^ dfa.c:27:13: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 27 | static void cs_or(cs1, cs2) | ^ dfa.c:44:13: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 44 | static void cs_sub(cs1, cs2) | ^ dfa.c:61:13: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 61 | static bool cs_intersect(cs1, cs2) | ^ dfa.c:83:13: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 83 | static bool cs_overlap(cs1, cs2, cs3, cs4) | ^ dfa.c:104:12: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 104 | static int cs_firstc(cset, c) | ^ dfa.c:134:12: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 134 | static int cs_eclass(cset, eclass, class) | ^ dfa.c:189:17: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 189 | static rgxposn *rp_alloc(htab, posn, size, c, rgx, nposn, ruleno, final) | ^ dfa.c:230:17: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 230 | static rgxposn *rp_new(htab, posn, size, c, rgx, nposn, ruleno, final) | ^ dfa.c:252:13: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 252 | static void rp_clear(c) | ^ dfa.c:275:13: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 275 | static bool rp_transposn(rgx, trans, buf, buflen) | ^ dfa.c:401:13: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 401 | static void rp_cset(rp, cset) | ^ dfa.c:478:13: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 478 | static bool rp_trans(rp, cset, posn, size) | ^ dfa.c:565:17: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 565 | static rgxposn *rp_load(htab, c, nposn, buf, grammar) | ^ dfa.c:594:14: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 594 | static char *rp_save(rp, buf, grammar) | ^ dfa.c:643:23: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 643 | static unsigned short ds_hash(htab, htabsize, states, idx) | ^ dfa.c:694:14: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 694 | static char *ds_load(state, buf, ntrans, zerotrans) | ^ dfa.c:730:14: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 730 | static char *ds_loadtmp(state, sbuf, pbuf, htab, c, nposn, grammar) | ^ dfa.c:782:14: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 782 | static char *ds_save(state, buf) | ^ dfa.c:806:14: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 806 | static char *ds_savetmp(state, sbuf, pbuf, pbase, ptab, nposn, grammar) | ^ dfa.c:886:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 886 | dfa *dfa_new(grammar) | ^ dfa.c:1008:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1008 | void dfa_del(fa) | ^ dfa.c:1048:13: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1048 | static void dfa_extend(fa, state, limit) | ^ dfa.c:1109:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1109 | dfa *dfa_load(grammar, str, len) | ^ dfa.c:1186:13: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1186 | static void dfa_loadtmp(fa) | ^ dfa.c:1237:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1237 | bool dfa_save(fa, str, len) | ^ dfa.c:1312:13: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1312 | static void dfa_ecsplit(fa, iset, cset, ncset) | ^ dfa.c:1355:23: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1355 | static unsigned short dfa_newstate(fa, state, newstate, ecset, cset) | ^ dfa.c:1426:18: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1426 | static dfastate *dfa_expand(fa, state) | ^ dfa.c:1583:7: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1583 | short dfa_scan(fa, str, strlen, token, len) | ^ 30 warnings generated. clang -I. -I.. -DNETBSD -O2 -c srp.c srp.c:24:14: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 24 | static item *it_new(c, ref, ruleno, offset, next) | ^ srp.c:61:14: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 61 | static item *it_del(c, it) | ^ srp.c:77:13: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 77 | static void it_clear(c) | ^ srp.c:93:13: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 93 | static void it_add(c, ri, ref, ruleno, offset, sort) | ^ srp.c:133:14: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 133 | static item *it_load(c, n, buf, grammar) | ^ srp.c:163:14: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 163 | static char *it_save(it, buf, grammar) | ^ srp.c:208:23: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 208 | static unsigned short ss_hash(htab, htabsize, states, idx) | ^ srp.c:253:14: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 253 | static char *ss_load(buf, rbuf, state) | ^ srp.c:288:14: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 288 | static char *ss_save(state, buf, rbuf) | ^ srp.c:331:16: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 331 | static shlink *sl_hash(htab, htabsize, c, shtab, shifts, n) | ^ srp.c:380:13: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 380 | static void sl_clear(c) | ^ srp.c:437:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 437 | srp *srp_new(grammar) | ^ srp.c:508:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 508 | void srp_del(lr) | ^ srp.c:545:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 545 | srp *srp_load(grammar, str, len) | ^ srp.c:625:13: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 625 | static void srp_loadtmp(lr) | ^ srp.c:672:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 672 | bool srp_save(lr, str, len) | ^ srp.c:758:12: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 758 | static Int srp_pack(lr, check, from, to, n) | ^ srp.c:894:12: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 894 | static int cmp(sh1, sh2) | ^ srp.c:905:18: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 905 | static srpstate *srp_expand(lr, state) | ^ srp.c:1086:7: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1086 | short srp_check(lr, num, nredp, redp) | ^ srp.c:1130:7: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1130 | short srp_shift(lr, num, token) | ^ srp.c:1160:7: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1160 | short srp_goto(lr, num, symb) | ^ 22 warnings generated. clang -I. -I.. -DNETBSD -O2 -c parse.c parse.c:38:15: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 38 | static pnode *pn_new(c, symb, state, text, len, next, list) | ^ parse.c:72:13: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 72 | static void pn_clear(c) | ^ parse.c:109:15: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 109 | static snode *sn_new(list, pn, slist) | ^ parse.c:148:15: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 148 | static snode *sn_add(list, sn, pn, slist) | ^ parse.c:172:13: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 172 | static void sn_del(list, sn) | ^ parse.c:184:13: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 184 | static void sn_clear(list) | ^ parse.c:212:13: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 212 | static void sc_add(c, str) | ^ parse.c:232:13: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 232 | static void sc_clean(c) | ^ parse.c:261:13: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 261 | static void ac_add(c, arr) | ^ parse.c:281:13: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 281 | static void ac_clean(c) | ^ parse.c:328:16: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 328 | static parser *ps_new(f, source, grammar) | ^ parse.c:364:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 364 | void ps_del(ps) | ^ parse.c:385:13: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 385 | static void ps_reduce(ps, pn, p) | ^ parse.c:458:13: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 458 | static void ps_shift(ps, sn, token, text, len) | ^ parse.c:546:9: warning: passing arguments to 'error' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 546 | error("Out of ticks"); | ^ parse.c:563:11: warning: passing arguments to 'error' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 563 | error("Bad token at offset %u", str->len - size); | ^ parse.c:485:15: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 485 | static pnode *ps_parse(ps, str, toobig) | ^ parse.c:602:13: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 602 | static void ps_flatten(pn, next, v) | ^ parse.c:699:12: warning: passing arguments to 'error' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 699 | error((char *) NULL); /* pass on error */ | ^ parse.c:639:12: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 639 | static Int ps_traverse(ps, pn, next) | ^ parse.c:798:16: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 798 | static parser *ps_load(f, elts) | ^ parse.c:869:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 869 | void ps_save(ps) | ^ parse.c:932:8: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 932 | array *ps_parse_string(f, source, str, maxalt) | ^ parse.c:990:7: warning: passing arguments to 'error' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 990 | error((char *) NULL); /* pass on error */ | ^ parse.c:1028:11: warning: passing arguments to 'error' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1028 | error("Grammar too large"); | ^ parse.c:1037:1: warning: non-void function does not return a value in all control paths [-Wreturn-type] 1037 | } | ^ 26 warnings generated. cd kfun; make 'CC=clang' 'CCFLAGS=-DNETBSD -O2' dgd clang -I. -I.. -I../comp -I../parser -DNETBSD -O2 -c builtin.c builtin.c:13:10: warning: passing arguments to 'error' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 13 | error("Bad argument %d for kfun %s", n, kftab[kfun].name); | ^ builtin.c:10:13: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 10 | static void kf_argerror(kfun, n) | ^ builtin.c:20:14: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 20 | static char *kf_itoa(i, buffer) | ^ builtin.c:53:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 53 | int kf_add(f) | ^ builtin.c:176:1: warning: non-void function does not return a value in all control paths [-Wreturn-type] 176 | } | ^ builtin.c:189:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 189 | int kf_add_int(f) | ^ builtin.c:208:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 208 | int kf_add1(f) | ^ builtin.c:238:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 238 | int kf_add1_int(f) | ^ builtin.c:256:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 256 | int kf_and(f) | ^ builtin.c:298:1: warning: non-void function does not return a value in all control paths [-Wreturn-type] 298 | } | ^ builtin.c:311:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 311 | int kf_and_int(f) | ^ builtin.c:344:11: warning: passing arguments to 'error' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 344 | error("Division by zero"); | ^ builtin.c:330:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 330 | int kf_div(f) | ^ builtin.c:369:1: warning: non-void function does not return a value in all control paths [-Wreturn-type] 369 | } | ^ builtin.c:390:7: warning: passing arguments to 'error' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 390 | error("Division by zero"); | ^ builtin.c:382:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 382 | int kf_div_int(f) | ^ builtin.c:415:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 415 | int kf_eq(f) | ^ builtin.c:484:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 484 | int kf_eq_int(f) | ^ builtin.c:503:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 503 | int kf_ge(f) | ^ builtin.c:538:1: warning: non-void function does not return a value in all control paths [-Wreturn-type] 538 | } | ^ builtin.c:551:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 551 | int kf_ge_int(f) | ^ builtin.c:570:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 570 | int kf_gt(f) | ^ builtin.c:605:1: warning: non-void function does not return a value in all control paths [-Wreturn-type] 605 | } | ^ builtin.c:618:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 618 | int kf_gt_int(f) | ^ builtin.c:637:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 637 | int kf_le(f) | ^ builtin.c:672:1: warning: non-void function does not return a value in all control paths [-Wreturn-type] 672 | } | ^ builtin.c:685:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 685 | int kf_le_int(f) | ^ builtin.c:715:11: warning: passing arguments to 'error' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 715 | error("Negative left shift"); | ^ builtin.c:704:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 704 | int kf_lshift(f) | ^ builtin.c:741:11: warning: passing arguments to 'error' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 741 | error("Negative left shift"); | ^ builtin.c:736:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 736 | int kf_lshift_int(f) | ^ builtin.c:762:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 762 | int kf_lt(f) | ^ builtin.c:797:1: warning: non-void function does not return a value in all control paths [-Wreturn-type] 797 | } | ^ builtin.c:810:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 810 | int kf_lt_int(f) | ^ builtin.c:843:7: warning: passing arguments to 'error' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 843 | error("Modulus by zero"); | ^ builtin.c:829:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 829 | int kf_mod(f) | ^ builtin.c:876:7: warning: passing arguments to 'error' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 876 | error("Modulus by zero"); | ^ builtin.c:868:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 868 | int kf_mod_int(f) | ^ builtin.c:901:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 901 | int kf_mult(f) | ^ builtin.c:927:1: warning: non-void function does not return a value in all control paths [-Wreturn-type] 927 | } | ^ builtin.c:940:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 940 | int kf_mult_int(f) | ^ builtin.c:959:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 959 | int kf_ne(f) | ^ builtin.c:1028:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1028 | int kf_ne_int(f) | ^ builtin.c:1047:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1047 | int kf_neg(f) | ^ builtin.c:1068:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1068 | int kf_neg_int(f) | ^ builtin.c:1086:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1086 | int kf_not(f) | ^ builtin.c:1125:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1125 | int kf_not_int(f) | ^ builtin.c:1143:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1143 | int kf_or(f) | ^ builtin.c:1174:1: warning: non-void function does not return a value in all control paths [-Wreturn-type] 1174 | } | ^ builtin.c:1187:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1187 | int kf_or_int(f) | ^ builtin.c:1205:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1205 | int kf_rangeft(f) | ^ builtin.c:1265:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1265 | int kf_rangef(f) | ^ builtin.c:1321:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1321 | int kf_ranget(f) | ^ builtin.c:1375:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1375 | int kf_range(f) | ^ builtin.c:1434:11: warning: passing arguments to 'error' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1434 | error("Negative right shift"); | ^ builtin.c:1423:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1423 | int kf_rshift(f) | ^ builtin.c:1460:11: warning: passing arguments to 'error' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1460 | error("Negative right shift"); | ^ builtin.c:1455:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1455 | int kf_rshift_int(f) | ^ builtin.c:1481:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1481 | int kf_sub(f) | ^ builtin.c:1540:1: warning: non-void function does not return a value in all control paths [-Wreturn-type] 1540 | } | ^ builtin.c:1553:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1553 | int kf_sub_int(f) | ^ builtin.c:1572:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1572 | int kf_sub1(f) | ^ builtin.c:1602:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1602 | int kf_sub1_int(f) | ^ builtin.c:1638:11: warning: passing arguments to 'error' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1638 | error("String cannot be converted to float"); | ^ builtin.c:1646:7: warning: passing arguments to 'error' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1646 | error("Value is not a float"); | ^ builtin.c:1620:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1620 | int kf_tofloat(f) | ^ builtin.c:1680:11: warning: passing arguments to 'error' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1680 | error("String cannot be converted to int"); | ^ builtin.c:1688:7: warning: passing arguments to 'error' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1688 | error("Value is not an int"); | ^ builtin.c:1662:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1662 | int kf_toint(f) | ^ builtin.c:1704:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1704 | int kf_tst(f) | ^ builtin.c:1743:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1743 | int kf_tst_int(f) | ^ builtin.c:1761:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1761 | int kf_umin(f) | ^ builtin.c:1782:1: warning: non-void function does not return a value in all control paths [-Wreturn-type] 1782 | } | ^ builtin.c:1795:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1795 | int kf_umin_int(f) | ^ builtin.c:1813:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1813 | int kf_xor(f) | ^ builtin.c:1844:1: warning: non-void function does not return a value in all control paths [-Wreturn-type] 1844 | } | ^ builtin.c:1857:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1857 | int kf_xor_int(f) | ^ builtin.c:1894:7: warning: passing arguments to 'error' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1894 | error("Value is not a string"); | ^ builtin.c:1876:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1876 | int kf_tostring(f) | ^ builtin.c:1913:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1913 | int kf_ckrangeft(f) | ^ builtin.c:1946:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1946 | int kf_ckrangef(f) | ^ builtin.c:1980:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1980 | int kf_ckranget(f) | ^ builtin.c:2063:8: warning: passing arguments to 'error' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 2063 | error("Bad argument 2 for kfun +"); | ^ builtin.c:2066:11: warning: passing arguments to 'error' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 2066 | error("Bad argument %d for kfun +", (i == nargs - 1) ? 1 : 2); | ^ builtin.c:2011:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 2011 | int kf_sum(f, nargs) | ^ builtin.c:2177:7: warning: passing arguments to 'error' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 2177 | error("Non-numeric array index"); | ^ builtin.c:2181:7: warning: passing arguments to 'error' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 2181 | error("Index out of range"); | ^ builtin.c:2173:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 2173 | int kf_status_idx(f) | ^ builtin.c:2204:7: warning: passing arguments to 'error' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 2204 | error("Non-numeric array index"); | ^ builtin.c:2209:7: warning: passing arguments to 'error' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 2209 | error("Index out of range"); | ^ builtin.c:2197:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 2197 | int kf_statuso_idx(f) | ^ builtin.c:2230:7: warning: passing arguments to 'error' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 2230 | error("Non-numeric array index"); | ^ builtin.c:2234:7: warning: passing arguments to 'error' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 2234 | error("Index out of range"); | ^ builtin.c:2226:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 2226 | int kf_calltr_idx(f) | ^ builtin.c:2250:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 2250 | int kf_nil(f) | ^ 95 warnings generated. clang -I. -I.. -I../comp -I../parser -DNETBSD -O2 -c std.c std.c:35:11: warning: passing arguments to 'error' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 35 | error("Cannot recompile cloned object"); | ^ std.c:38:11: warning: passing arguments to 'error' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 38 | error("Object is already being upgraded"); | ^ std.c:41:11: warning: passing arguments to 'error' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 41 | error("Cannot recompile inherited object"); | ^ std.c:22:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 22 | int kf_compile_object(f) | ^ std.c:63:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 63 | int kf_call_other(f, nargs) | ^ std.c:129:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 129 | int kf_this_object(f) | ^ std.c:157:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 157 | int kf_previous_object(f, nargs) | ^ std.c:191:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 191 | int kf_previous_program(f, nargs) | ^ std.c:226:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 226 | int kf_call_trace(f) | ^ std.c:251:7: warning: passing arguments to 'error' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 251 | error("Cloning from a clone"); | ^ std.c:244:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 244 | int kf_clone_object(f) | ^ std.c:283:11: warning: passing arguments to 'error' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 283 | error("Destructing editor object in atomic function"); | ^ std.c:270:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 270 | int kf_destruct_object(f) | ^ std.c:309:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 309 | int kf_object_name(f) | ^ std.c:332:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 332 | int kf_find_object(f) | ^ std.c:365:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 365 | int kf_function_object(f) | ^ std.c:410:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 410 | int kf_this_user(f) | ^ std.c:435:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 435 | int kf_query_ip_number(f) | ^ std.c:460:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 460 | int kf_query_ip_name(f) | ^ std.c:485:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 485 | int kf_users(f) | ^ std.c:504:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 504 | int kf_strlen(f) | ^ std.c:527:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 527 | int kf_allocate(f) | ^ std.c:556:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 556 | int kf_allocate_int(f) | ^ std.c:585:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 585 | int kf_allocate_float(f) | ^ std.c:614:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 614 | int kf_sizeof(f) | ^ std.c:637:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 637 | int kf_map_indices(f) | ^ std.c:661:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 661 | int kf_map_values(f) | ^ std.c:684:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 684 | int kf_map_sizeof(f) | ^ std.c:707:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 707 | int kf_typeof(f) | ^ std.c:726:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 726 | int kf_error(f) | ^ std.c:744:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 744 | int kf_send_message(f) | ^ std.c:786:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 786 | int kf_send_datagram(f) | ^ std.c:814:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 814 | int kf_block_input(f) | ^ std.c:838:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 838 | int kf_time(f) | ^ std.c:856:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 856 | int kf_millitime(f) | ^ std.c:885:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 885 | int kf_call_out(f, nargs) | ^ std.c:943:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 943 | int kf_remove_call_out(f) | ^ std.c:972:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 972 | int kf_swapout(f) | ^ std.c:992:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 992 | int kf_dump_state(f) | ^ std.c:1012:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1012 | int kf_shutdown(f) | ^ std.c:1034:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1034 | int kf_status(f, nargs) | ^ 41 warnings generated. clang -I. -I.. -I../comp -I../parser -DNETBSD -O2 -c file.c file.c:28:7: warning: passing arguments to 'error' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 28 | error("editor() in destructed object"); | ^ file.c:31:7: warning: passing arguments to 'error' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 31 | error("editor() in special purpose object"); | ^ file.c:34:7: warning: passing arguments to 'error' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 34 | error("editor() within atomic function"); | ^ file.c:19:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 19 | int kf_editor(f, nargs) | ^ file.c:64:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 64 | int kf_query_editor(f) | ^ file.c:96:13: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 96 | static void put(x, buf, len) | ^ file.c:121:13: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 121 | static void save_string(x, str) | ^ file.c:171:13: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 171 | static void save_array(x, a) | ^ file.c:239:13: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 239 | static void save_mapping(x, a) | ^ file.c:374:7: warning: passing arguments to 'error' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 374 | error("save_object() within atomic function"); | ^ file.c:388:7: warning: passing arguments to 'error' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 388 | error("Cannot create temporary save file \"/%s\"", tmp); | ^ file.c:458:7: warning: passing arguments to 'error' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 458 | error("Cannot write to temporary save file \"/%s\"", tmp); | ^ file.c:466:7: warning: passing arguments to 'error' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 466 | error("Cannot rename temporary save file to \"/%s\"", file); | ^ file.c:354:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 354 | int kf_save_object(f) | ^ file.c:499:13: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 499 | static void ac_put(x, type, a) | ^ file.c:521:15: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 521 | static value *ac_get(x, n) | ^ file.c:539:13: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 539 | static void ac_clear(x) | ^ file.c:560:10: warning: passing arguments to 'error' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 560 | error("Format error in \"/%s\", line %d: %s", x->file, x->line, err); | ^ file.c:556:13: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 556 | static void restore_error(x, err) | ^ file.c:567:14: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 567 | static char *restore_int(x, buf, val) | ^ file.c:586:14: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 586 | static char *restore_number(x, buf, val) | ^ file.c:664:14: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 664 | static char *restore_string(x, buf, val) | ^ file.c:732:7: warning: passing arguments to 'error' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 732 | error((char *) NULL); /* pass on the error */ | ^ file.c:704:14: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 704 | static char *restore_array(x, buf, val) | ^ file.c:757:14: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 757 | static char *restore_mapping(x, buf, val) | ^ file.c:785:7: warning: passing arguments to 'error' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 785 | error((char *) NULL); /* pass on the error */ | ^ file.c:816:14: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 816 | static char *restore_value(x, buf, val) | ^ file.c:978:7: warning: passing arguments to 'error' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 978 | error((char *) NULL); /* pass on error */ | ^ file.c:873:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 873 | int kf_restore_object(f) | ^ file.c:1117:7: warning: passing arguments to 'error' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1117 | error("write_file() within atomic function"); | ^ file.c:1102:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1102 | int kf_write_file(f, nargs) | ^ file.c:1232:7: warning: passing arguments to 'error' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1232 | error((char *) NULL); /* pass on error */ | ^ file.c:1241:7: warning: passing arguments to 'error' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1241 | error("Read failed in read_file()"); | ^ file.c:1168:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1168 | int kf_read_file(f, nargs) | ^ file.c:1261:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1261 | int kf_rename_file(f) | ^ file.c:1304:7: warning: passing arguments to 'error' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1304 | error("remove_file() within atomic function"); | ^ file.c:1294:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1294 | int kf_remove_file(f) | ^ file.c:1334:7: warning: passing arguments to 'error' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1334 | error("make_dir() within atomic function"); | ^ file.c:1324:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1324 | int kf_make_dir(f) | ^ file.c:1364:7: warning: passing arguments to 'error' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1364 | error("remove_dir() within atomic function"); | ^ file.c:1354:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1354 | int kf_remove_dir(f) | ^ file.c:1382:12: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1382 | static int match(pat, text) | ^ file.c:1490:13: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1490 | static bool getinfo(path, file, finf) | ^ file.c:1520:12: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1520 | static int cmp(cv1, cv2) | ^ file.c:1592:11: warning: passing arguments to 'fatal' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1592 | fatal("cannot chdir back to base dir"); | ^ file.c:1536:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1536 | int kf_get_dir(f) | ^ 46 warnings generated. clang -I. -I.. -I../comp -I../parser -DNETBSD -O2 -c math.c math.c:15:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 15 | int kf_fabs(f) | ^ math.c:38:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 38 | int kf_floor(f) | ^ math.c:61:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 61 | int kf_ceil(f) | ^ math.c:84:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 84 | int kf_fmod(f) | ^ math.c:110:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 110 | int kf_frexp(f) | ^ math.c:139:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 139 | int kf_ldexp(f) | ^ math.c:164:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 164 | int kf_modf(f) | ^ math.c:192:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 192 | int kf_exp(f) | ^ math.c:215:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 215 | int kf_log(f) | ^ math.c:238:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 238 | int kf_log10(f) | ^ math.c:261:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 261 | int kf_pow(f) | ^ math.c:286:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 286 | int kf_sqrt(f) | ^ math.c:309:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 309 | int kf_cos(f) | ^ math.c:332:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 332 | int kf_sin(f) | ^ math.c:355:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 355 | int kf_tan(f) | ^ math.c:378:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 378 | int kf_acos(f) | ^ math.c:401:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 401 | int kf_asin(f) | ^ math.c:424:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 424 | int kf_atan(f) | ^ math.c:447:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 447 | int kf_atan2(f) | ^ math.c:472:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 472 | int kf_cosh(f) | ^ math.c:495:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 495 | int kf_sinh(f) | ^ math.c:518:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 518 | int kf_tanh(f) | ^ 22 warnings generated. clang -I. -I.. -I../comp -I../parser -DNETBSD -O2 -c extra.c extra.c:18:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 18 | int kf_crypt(f, nargs) | ^ extra.c:58:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 58 | int kf_ctime(f) | ^ extra.c:82:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 82 | int kf_explode(f) | ^ extra.c:187:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 187 | int kf_implode(f) | ^ extra.c:247:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 247 | int kf_random(f) | ^ extra.c:268:13: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 268 | static bool match(f, s, flenp, slenp) | ^ extra.c:422:12: warning: passing arguments to 'error' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 422 | error("Bad sscanf format string"); | ^ extra.c:473:12: warning: passing arguments to 'error' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 473 | error("No lvalue for %%s"); | ^ extra.c:495:12: warning: passing arguments to 'error' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 495 | error("No lvalue for %%d"); | ^ extra.c:514:12: warning: passing arguments to 'error' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 514 | error("No lvalue for %%f"); | ^ extra.c:530:12: warning: passing arguments to 'error' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 530 | error("No lvalue for %%c"); | ^ extra.c:542:11: warning: passing arguments to 'error' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 542 | error("Bad sscanf format string"); | ^ extra.c:321:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 321 | int kf_sscanf(f, nargs) | ^ extra.c:587:7: warning: passing arguments to 'error' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 587 | error("parse_string() from special purpose object"); | ^ extra.c:570:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 570 | int kf_parse_string(f, nargs) | ^ extra.c:678:7: warning: passing arguments to 'error' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 678 | error("Out of ticks"); | ^ extra.c:627:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 627 | int kf_hash_crc16(f, nargs) | ^ extra.c:719:13: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 719 | static void md5_block(ABCD, block) | ^ extra.c:835:7: warning: passing arguments to 'error' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 835 | error("Out of ticks"); | ^ extra.c:816:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 816 | int kf_hash_md5(f, nargs) | ^ 20 warnings generated. clang -I. -I.. -I../comp -I../parser -DNETBSD -O2 -c debug.c clang -I. -I.. -I../comp -I../parser -DNETBSD -O2 -c table.c table.c:50:12: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 50 | static int kf_callgate(f, nargs, kf) | ^ table.c:69:14: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 69 | static char *prototype(proto) | ^ table.c:133:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 133 | void kf_ext_kfun(kfadd, n) | ^ table.c:156:12: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 156 | static int kf_cmp(cv1, cv2) | ^ table.c:191:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 191 | int kf_func(name) | ^ table.c:228:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 228 | bool kf_dump(fd) | ^ table.c:270:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 270 | void kf_restore(fd) | ^ table.c:283:7: warning: passing arguments to 'fatal' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 283 | fatal("cannot restore kfun names"); | ^ table.c:289:11: warning: passing arguments to 'error' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 289 | error("Restored unknown kfun: %s", buffer + buflen); | ^ 9 warnings generated. cd lpc; make 'DMAKE=make' 'CC=clang' 'CCFLAGS=-DNETBSD -O2' 'YACC=yacc' 'LIBS=' dgd clang -I. -I.. -I../comp -DNETBSD -O2 -c lpc.c cd host; make 'CC=clang' 'CCFLAGS=-DNETBSD -O2' dgd cp unix/local.c local.c clang -I. -I.. -DNETBSD -O2 -c local.c local.c:18:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 18 | int main(argc, argv) | ^ local.c:32:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 32 | void P_message(mess) | ^ 2 warnings generated. cp unix/random.c random.c clang -I. -I.. -DNETBSD -O2 -c random.c random.c:9:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 9 | void P_srandom(s) | ^ 1 warning generated. cp unix/dirent.c dirent.c clang -I. -I.. -DNETBSD -O2 -c dirent.c dirent.c:10:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 10 | bool P_opendir(dir) | ^ 1 warning generated. cp unix/time.c time.c clang -I. -I.. -DNETBSD -O2 -c time.c time.c:20:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 20 | Uint P_mtime(milli) | ^ time.c:34:7: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 34 | char *P_ctime(buf, t) | ^ time.c:66:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 66 | void P_timer(t, mtime) | ^ time.c:78:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 78 | bool P_timeout(t, mtime) | ^ 4 warnings generated. cp unix/connect.c connect.c clang -I. -I.. -DNETBSD -O2 -c connect.c connect.c:44:13: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 44 | static void ipa_run(in, out) | ^ connect.c:83:13: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 83 | static bool ipa_init(maxusers) | ^ connect.c:146:16: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 146 | static ipaddr *ipa_new(ipnum) | ^ connect.c:266:13: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 266 | static void ipa_del(ipa) | ^ connect.c:365:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 365 | bool conn_init(maxusers, telnet_port, binary_port) | ^ connect.c:519:10: warning: passing arguments to 'fatal' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 519 | fatal("conn_listen failed"); | ^ connect.c:536:51: warning: passing 'int *' to parameter of type 'socklen_t *' (aka 'unsigned int *') converts between pointers to integer types with different sign [-Wpointer-sign] 536 | fd = accept(telnet, (struct sockaddr *) &sin, &len); | ^~~~ /Applications/Xcode-16.4.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.5.sdk/usr/include/sys/socket.h:708:73: note: passing argument to parameter here 708 | int accept(int, struct sockaddr * __restrict, socklen_t * __restrict) | ^ connect.c:573:51: warning: passing 'int *' to parameter of type 'socklen_t *' (aka 'unsigned int *') converts between pointers to integer types with different sign [-Wpointer-sign] 573 | fd = accept(binary, (struct sockaddr *) &sin, &len); | ^~~~ /Applications/Xcode-16.4.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.5.sdk/usr/include/sys/socket.h:708:73: note: passing argument to parameter here 708 | int accept(int, struct sockaddr * __restrict, socklen_t * __restrict) | ^ connect.c:600:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 600 | void conn_udp(conn) | ^ connect.c:619:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 619 | void conn_del(conn) | ^ connect.c:651:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 651 | void conn_block(conn, flag) | ^ connect.c:669:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 669 | int conn_select(t, mtime) | ^ connect.c:718:4: warning: passing 'int *' to parameter of type 'socklen_t *' (aka 'unsigned int *') converts between pointers to integer types with different sign [-Wpointer-sign] 718 | &fromlen); | ^~~~~~~~ /Applications/Xcode-16.4.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.5.sdk/usr/include/sys/socket.h:720:27: note: passing argument to parameter here 720 | socklen_t * __restrict) __DARWIN_ALIAS_C(recvfrom); | ^ connect.c:748:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 748 | int conn_read(conn, buf, len) | ^ connect.c:777:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 777 | int conn_udpread(conn, buf, len) | ^ connect.c:799:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 799 | int conn_write(conn, buf, len) | ^ connect.c:838:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 838 | int conn_udpwrite(conn, buf, len) | ^ connect.c:859:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 859 | bool conn_wrdone(conn) | ^ connect.c:876:7: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 876 | char *conn_ipnum(conn) | ^ connect.c:886:7: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 886 | char *conn_ipname(conn) | ^ 20 warnings generated. clang -I. -I.. -DNETBSD -O2 -c crypt.c crypt.c:184:7: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 184 | char *P_crypt(passwd, salt) | ^ 1 warning generated. cp simfloat.c xfloat.c clang -I. -I.. -DNETBSD -O2 -c xfloat.c xfloat.c:38:10: warning: passing arguments to 'error' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 38 | error("Math argument"); | ^ xfloat.c:47:10: warning: passing arguments to 'error' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 47 | error("Result too large"); | ^ xfloat.c:57:13: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 57 | static void f_add(a, b) | ^ xfloat.c:132:13: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 132 | static void f_sub(a, b) | ^ xfloat.c:243:13: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 243 | static void f_mult(a, b) | ^ xfloat.c:316:7: warning: passing arguments to 'error' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 316 | error("Division by zero"); | ^ xfloat.c:308:13: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 308 | static void f_div(a, b) | ^ xfloat.c:406:13: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 406 | static void f_trunc(a) | ^ xfloat.c:444:13: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 444 | static void f_37bits(a) | ^ xfloat.c:462:13: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 462 | static void f_round(a) | ^ xfloat.c:476:12: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 476 | static int f_cmp(a, b) | ^ xfloat.c:508:13: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 508 | static void f_itof(i, a) | ^ xfloat.c:545:12: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 545 | static Int f_ftoi(a) | ^ xfloat.c:568:13: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 568 | static void f_ftoxf(a, f) | ^ xfloat.c:614:13: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 614 | static void f_xftof(f, a) | ^ xfloat.c:665:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 665 | bool flt_atof(s, f) | ^ xfloat.c:777:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 777 | void flt_ftoa(f, buffer) | ^ xfloat.c:899:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 899 | void flt_itof(i, f) | ^ xfloat.c:913:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 913 | Int flt_ftoi(f) | ^ xfloat.c:927:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 927 | void flt_add(f1, f2) | ^ xfloat.c:942:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 942 | void flt_sub(f1, f2) | ^ xfloat.c:957:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 957 | void flt_mult(f1, f2) | ^ xfloat.c:972:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 972 | void flt_div(f1, f2) | ^ xfloat.c:987:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 987 | int flt_cmp(f1, f2) | ^ xfloat.c:1007:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1007 | void flt_floor(f) | ^ xfloat.c:1025:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1025 | void flt_ceil(f) | ^ xfloat.c:1043:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1043 | void flt_fmod(f1, f2) | ^ xfloat.c:1075:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1075 | Int flt_frexp(f) | ^ xfloat.c:1092:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1092 | void flt_ldexp(f, exp) | ^ xfloat.c:1115:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1115 | void flt_modf(f1, f2) | ^ xfloat.c:1142:13: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1142 | static void f_poly(x, coef, n) | ^ xfloat.c:1161:13: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1161 | static void f_poly1(x, coef, n) | ^ xfloat.c:1181:13: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1181 | static void f_exp(a) | ^ xfloat.c:1233:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1233 | void flt_exp(f) | ^ xfloat.c:1275:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1275 | void flt_log(f) | ^ xfloat.c:1366:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1366 | void flt_log10(f) | ^ xfloat.c:1426:13: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1426 | static void f_powi(a, n) | ^ xfloat.c:1489:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1489 | void flt_pow(f1, f2) | ^ xfloat.c:1720:13: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1720 | static void f_sqrt(a) | ^ xfloat.c:1760:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1760 | void flt_sqrt(f) | ^ xfloat.c:1797:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1797 | void flt_cos(f) | ^ xfloat.c:1864:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1864 | void flt_sin(f) | ^ xfloat.c:1929:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1929 | void flt_tan(f) | ^ xfloat.c:2017:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 2017 | void flt_acos(f) | ^ xfloat.c:2083:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 2083 | void flt_asin(f) | ^ xfloat.c:2155:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 2155 | void flt_atan(f) | ^ xfloat.c:2200:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 2200 | void flt_atan2(f1, f2) | ^ xfloat.c:2276:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 2276 | void flt_cosh(f) | ^ xfloat.c:2300:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 2300 | void flt_sinh(f) | ^ xfloat.c:2351:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 2351 | void flt_tanh(f) | ^ 50 warnings generated. clang -O2 -L/opt/pkg/lib -o a.out alloc.o error.o hash.o swap.o str.o array.o object.o data.o path.o editor.o comm.o call_out.o interpret.o config.o dgd.o `cat comp/dgd` `cat lex/dgd` `cat ed/dgd` `cat parser/dgd` `cat kfun/dgd` `cat lpc/dgd` `cat host/dgd`