=> "/opt/pkg/bin/bmake" ["-C", "/Volumes/data/jenkins/workspace/pkgsrc-macos-trunk-arm64/lang/caml-light", "all", "BATCH=1", "DEPENDS_TARGET=/nonexistent"] WARNING: [license.mk] Every package should define a LICENSE. ===> Building for caml-light-0.74nb2 cd runtime; make CC="gcc" OPTS="-Dunix" LIBS="" all awk -f ../tools/make-jumptbl instruct.h > jumptbl.h gcc -O2 -Dunix -I.. -c interp.c In file included from interp.c:4: In file included from ./alloc.h:5: In file included from ./misc.h:7: ./config.h:18:9: warning: 'bcopy' macro redefined [-Wmacro-redefined] 18 | #define bcopy(src,dst,len) memmove((dst), (src), (len)) | ^ /Applications/Xcode-16.4.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.5.sdk/usr/include/secure/_strings.h:45:9: note: previous definition is here 45 | #define bcopy(src, dest, ...) \ | ^ interp.c:696:28: 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] 696 | accu = (cprim[u16pc])(accu); | ^ interp.c:702:28: 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] 702 | accu = (cprim[u16pc])(accu, asp[0]); | ^ interp.c:709:28: 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] 709 | accu = (cprim[u16pc])(accu, asp[0], asp[1]); | ^ interp.c:716:28: 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] 716 | accu = (cprim[u16pc])(accu, asp[0], asp[1], asp[2]); | ^ interp.c:723:28: 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] 723 | accu = (cprim[u16pc])(accu, asp[0], asp[1], asp[2], asp[3]); | ^ interp.c:732:30: 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] 732 | accu = (cprim[u16pc])(asp, n); | ^ interp.c:136:7: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 136 | value interprete(prog) | ^ interp.c:950:7: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 950 | value callback(closure, argument) | ^ 9 warnings generated. gcc -O2 -Dunix -I.. -c misc.c In file included from misc.c:2: ./config.h:18:9: warning: 'bcopy' macro redefined [-Wmacro-redefined] 18 | #define bcopy(src,dst,len) memmove((dst), (src), (len)) | ^ /Applications/Xcode-16.4.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.5.sdk/usr/include/secure/_strings.h:45:9: note: previous definition is here 45 | #define bcopy(src, dest, ...) \ | ^ misc.c:19:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 19 | void gc_message (msg, arg) | ^ misc.c:33:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 33 | void fatal_error (msg) | ^ misc.c:39:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 39 | void fatal_error_arg (fmt, arg) | ^ misc.c:132:8: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 132 | char * aligned_malloc (size, modulo) | ^ 5 warnings generated. gcc -O2 -Dunix -I.. -c stacks.c In file included from stacks.c:3: ./config.h:18:9: warning: 'bcopy' macro redefined [-Wmacro-redefined] 18 | #define bcopy(src,dst,len) memmove((dst), (src), (len)) | ^ /Applications/Xcode-16.4.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.5.sdk/usr/include/secure/_strings.h:45:9: note: previous definition is here 45 | #define bcopy(src, dest, ...) \ | ^ 1 warning generated. gcc -O2 -Dunix -I.. -c fix_code.c In file included from fix_code.c:3: ./config.h:18:9: warning: 'bcopy' macro redefined [-Wmacro-redefined] 18 | #define bcopy(src,dst,len) memmove((dst), (src), (len)) | ^ /Applications/Xcode-16.4.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.5.sdk/usr/include/secure/_strings.h:45:9: note: previous definition is here 45 | #define bcopy(src, dest, ...) \ | ^ 1 warning generated. gcc -O2 -Dunix -I.. -c main.c In file included from main.c:10: In file included from ./alloc.h:5: In file included from ./misc.h:7: ./config.h:18:9: warning: 'bcopy' macro redefined [-Wmacro-redefined] 18 | #define bcopy(src,dst,len) memmove((dst), (src), (len)) | ^ /Applications/Xcode-16.4.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.5.sdk/usr/include/secure/_strings.h:45:9: note: previous definition is here 45 | #define bcopy(src, dest, ...) \ | ^ main.c:51:22: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 51 | static unsigned long read_size(p) | ^ main.c:70:32: warning: passing 'char[20]' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] 70 | trail->code_size = read_size(buffer); | ^~~~~~ main.c:71:32: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] 71 | trail->data_size = read_size(buffer+4); | ^~~~~~~~ main.c:72:34: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] 72 | trail->symbol_size = read_size(buffer+8); | ^~~~~~~~ main.c:73:33: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] 73 | trail->debug_size = read_size(buffer+12); | ^~~~~~~~~ main.c:74:28: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] 74 | trail->magic = read_size(buffer+16); | ^~~~~~~~~ main.c:62:12: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 62 | static int read_trailer(fd, trail) | ^ main.c:90:24: warning: passing arguments to 'searchpath' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 90 | truename = searchpath(*name); | ^ main.c:80:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 80 | int attempt_open(name, trail, do_open_script) | ^ main.c:248:15: warning: passing arguments to 'interprete' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 248 | interprete(start_code); | ^ main.c:133:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 133 | main(argc, argv) | ^ 12 warnings generated. gcc -O2 -Dunix -I.. -c fail.c In file included from fail.c:3: In file included from ./alloc.h:5: In file included from ./misc.h:7: ./config.h:18:9: warning: 'bcopy' macro redefined [-Wmacro-redefined] 18 | #define bcopy(src,dst,len) memmove((dst), (src), (len)) | ^ /Applications/Xcode-16.4.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.5.sdk/usr/include/secure/_strings.h:45:9: note: previous definition is here 45 | #define bcopy(src, dest, ...) \ | ^ fail.c:12:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 12 | void mlraise(v) | ^ fail.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 | void raise_with_arg(tag, arg) | ^ fail.c:34:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 34 | void raise_with_string(tag, msg) | ^ fail.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 failwith (msg) | ^ fail.c:47:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 47 | void invalid_argument (msg) | ^ 6 warnings generated. gcc -O2 -Dunix -I.. -c signals.c In file included from signals.c:1: In file included from ./alloc.h:5: In file included from ./misc.h:7: ./config.h:18:9: warning: 'bcopy' macro redefined [-Wmacro-redefined] 18 | #define bcopy(src,dst,len) memmove((dst), (src), (len)) | ^ /Applications/Xcode-16.4.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.5.sdk/usr/include/secure/_strings.h:45:9: note: previous definition is here 45 | #define bcopy(src, dest, ...) \ | ^ signals.c:14:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 14 | void execute_signal (signal_handler, signal_number) | ^ signals.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 handle_signal(signal_handler, signal_number) | ^ 3 warnings generated. gcc -O2 -Dunix -I.. -c debugcom.c In file included from debugcom.c:7: In file included from ./misc.h:7: ./config.h:18:9: warning: 'bcopy' macro redefined [-Wmacro-redefined] 18 | #define bcopy(src,dst,len) memmove((dst), (src), (len)) | ^ /Applications/Xcode-16.4.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.5.sdk/usr/include/secure/_strings.h:45:9: note: previous definition is here 45 | #define bcopy(src, dest, ...) \ | ^ debugcom.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 open_connection(connect_type) | ^ debugcom.c:112:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 112 | void debugger_init(address) | ^ debugcom.c:152:14: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 152 | static value getval(chan) | ^ debugcom.c:161:13: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 161 | static void putval(chan, val) | ^ debugcom.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 debugger(event) | ^ 6 warnings generated. gcc -O2 -Dunix -I.. -c freelist.c In file included from freelist.c:1: ./config.h:18:9: warning: 'bcopy' macro redefined [-Wmacro-redefined] 18 | #define bcopy(src,dst,len) memmove((dst), (src), (len)) | ^ /Applications/Xcode-16.4.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.5.sdk/usr/include/secure/_strings.h:45:9: note: previous definition is here 45 | #define bcopy(src, dest, ...) \ | ^ freelist.c:71:14: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 71 | static char *allocate_block (wh_sz, prev, cur) | ^ freelist.c:99:7: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 99 | char *fl_allocate (wo_sz) | ^ freelist.c:141:7: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 141 | char *fl_merge_block (bp) | ^ freelist.c:205:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 205 | void fl_add_block (bp) | ^ 5 warnings generated. gcc -O2 -Dunix -I.. -c major_gc.c In file included from major_gc.c:1: ./config.h:18:9: warning: 'bcopy' macro redefined [-Wmacro-redefined] 18 | #define bcopy(src,dst,len) memmove((dst), (src), (len)) | ^ /Applications/Xcode-16.4.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.5.sdk/usr/include/secure/_strings.h:45:9: note: previous definition is here 45 | #define bcopy(src, dest, ...) \ | ^ major_gc.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 | void darken (v) | ^ major_gc.c:81:13: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 81 | static void darken_root (p, v) | ^ major_gc.c:98:13: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 98 | static void mark_slice (work) | ^ major_gc.c:151:13: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 151 | static void sweep_slice (work) | ^ major_gc.c:254:9: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 254 | asize_t round_heap_chunk_size (request) | ^ major_gc.c:265:1: warning: non-void function does not return a value in all control paths [-Wreturn-type] 265 | } | ^ major_gc.c:267:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 267 | void init_major_heap (heap_size) | ^ 8 warnings generated. gcc -O2 -Dunix -I.. -c minor_gc.c In file included from minor_gc.c:1: ./config.h:18:9: warning: 'bcopy' macro redefined [-Wmacro-redefined] 18 | #define bcopy(src,dst,len) memmove((dst), (src), (len)) | ^ /Applications/Xcode-16.4.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.5.sdk/usr/include/secure/_strings.h:45:9: note: previous definition is here 45 | #define bcopy(src, dest, ...) \ | ^ minor_gc.c:19:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 19 | void set_minor_heap_size (size) | ^ minor_gc.c:51:13: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 51 | static void oldify (p, v) | ^ 3 warnings generated. gcc -O2 -Dunix -I.. -c memory.c In file included from memory.c:1: In file included from ./debugger.h:4: In file included from ./misc.h:7: ./config.h:18:9: warning: 'bcopy' macro redefined [-Wmacro-redefined] 18 | #define bcopy(src,dst,len) memmove((dst), (src), (len)) | ^ /Applications/Xcode-16.4.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.5.sdk/usr/include/secure/_strings.h:45:9: note: previous definition is here 45 | #define bcopy(src, dest, ...) \ | ^ memory.c:18:14: 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 char *expand_heap (request) | ^ memory.c:118:7: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 118 | value alloc_shr (wosize, tag) | ^ memory.c:152:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 152 | void adjust_gc_speed (mem, max) | ^ memory.c:173:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 173 | void initialize (fp, val) | ^ memory.c:191:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 191 | void modify (fp, val) | ^ memory.c:198:7: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 198 | char *stat_alloc (sz) | ^ memory.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 stat_free (blk) | ^ memory.c:213:7: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 213 | char *stat_resize (blk, sz) | ^ 9 warnings generated. gcc -O2 -Dunix -I.. -c alloc.c In file included from alloc.c:8: In file included from ./alloc.h:5: In file included from ./misc.h:7: ./config.h:18:9: warning: 'bcopy' macro redefined [-Wmacro-redefined] 18 | #define bcopy(src,dst,len) memmove((dst), (src), (len)) | ^ /Applications/Xcode-16.4.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.5.sdk/usr/include/secure/_strings.h:45:9: note: previous definition is here 45 | #define bcopy(src, dest, ...) \ | ^ alloc.c:18:7: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 18 | value alloc (wosize, tag) | ^ alloc.c:29:7: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 29 | value alloc_tuple(n) | ^ alloc.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 | value alloc_string (len) | ^ alloc.c:53:7: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 53 | value alloc_final (len, fun, mem, max) | ^ alloc.c:65:7: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 65 | value copy_double(d) | ^ alloc.c:75:7: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 75 | value copy_string(s) | ^ alloc.c:87:7: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 87 | value alloc_array(funct, arr) | ^ alloc.c:116:7: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 116 | value copy_string_array(arr) | ^ alloc.c:122:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 122 | int convert_flag_list(list, flags) | ^ 10 warnings generated. gcc -O2 -Dunix -I.. -c roots.c In file included from roots.c:3: In file included from ./debugger.h:4: In file included from ./misc.h:7: ./config.h:18:9: warning: 'bcopy' macro redefined [-Wmacro-redefined] 18 | #define bcopy(src,dst,len) memmove((dst), (src), (len)) | ^ /Applications/Xcode-16.4.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.5.sdk/usr/include/secure/_strings.h:45:9: note: previous definition is here 45 | #define bcopy(src, dest, ...) \ | ^ roots.c:17:30: 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] 17 | if (*sp != MARK) copy_fn (sp, *sp); | ^ roots.c:22:13: 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] 22 | copy_fn (&((struct return_frame *) sp)->env, | ^ roots.c:28:15: warning: passing arguments to a function without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 28 | copy_fn (sp, *sp); | ^ roots.c:39:10: 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] 39 | copy_fn (sp, *sp); | ^ roots.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 local_roots (copy_fn) | ^ 6 warnings generated. gcc -O2 -Dunix -I.. -c compare.c In file included from compare.c:1: In file included from ./fail.h:6: In file included from ./misc.h:7: ./config.h:18:9: warning: 'bcopy' macro redefined [-Wmacro-redefined] 18 | #define bcopy(src,dst,len) memmove((dst), (src), (len)) | ^ /Applications/Xcode-16.4.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.5.sdk/usr/include/secure/_strings.h:45:9: note: previous definition is here 45 | #define bcopy(src, dest, ...) \ | ^ compare.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 long compare_val(v1, v2) | ^ compare.c:69:7: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 69 | value compare(v1, v2) /* ML */ | ^ compare.c:75:7: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 75 | value equal(v1, v2) /* ML */ | ^ compare.c:81:7: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 81 | value notequal(v1, v2) /* ML */ | ^ compare.c:87:7: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 87 | value lessthan(v1, v2) /* ML */ | ^ compare.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 | value lessequal(v1, v2) /* ML */ | ^ compare.c:99:7: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 99 | value greaterthan(v1, v2) /* ML */ | ^ compare.c:105:7: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 105 | value greaterequal(v1, v2) /* ML */ | ^ 9 warnings generated. gcc -O2 -Dunix -I.. -c ints.c In file included from ints.c:2: In file included from ./alloc.h:5: In file included from ./misc.h:7: ./config.h:18:9: warning: 'bcopy' macro redefined [-Wmacro-redefined] 18 | #define bcopy(src,dst,len) memmove((dst), (src), (len)) | ^ /Applications/Xcode-16.4.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.5.sdk/usr/include/secure/_strings.h:45:9: note: previous definition is here 45 | #define bcopy(src, dest, ...) \ | ^ ints.c:7:7: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 7 | value int_of_string(s) /* ML */ | ^ ints.c:54:7: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 54 | value format_int(fmt, arg) /* ML */ | ^ 3 warnings generated. gcc -O2 -Dunix -I.. -c floats.c In file included from floats.c:3: In file included from ./alloc.h:5: In file included from ./misc.h:7: ./config.h:18:9: warning: 'bcopy' macro redefined [-Wmacro-redefined] 18 | #define bcopy(src,dst,len) memmove((dst), (src), (len)) | ^ /Applications/Xcode-16.4.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.5.sdk/usr/include/secure/_strings.h:45:9: note: previous definition is here 45 | #define bcopy(src, dest, ...) \ | ^ floats.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 | value format_float(fmt, arg) /* ML */ | ^ floats.c:79:7: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 79 | value float_of_string(s) /* ML */ | ^ floats.c:85:7: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 85 | value exp_float(f) /* ML */ | ^ floats.c:91:7: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 91 | value fabs_float(f) /* ML */ | ^ floats.c:97:7: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 97 | value floor_float(f) /* ML */ | ^ floats.c:103:7: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 103 | value fmod_float(f1, f2) /* ML */ | ^ floats.c:109:7: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 109 | value frexp_float(f) /* ML */ | ^ floats.c:124:7: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 124 | value ldexp_float(f, i) /* ML */ | ^ floats.c:130:7: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 130 | value log_float(f) /* ML */ | ^ floats.c:136:7: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 136 | value log10_float(f) /* ML */ | ^ floats.c:142:7: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 142 | value modf_float(f) /* ML */ | ^ floats.c:159:7: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 159 | value sqrt_float(f) /* ML */ | ^ floats.c:165:7: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 165 | value power_float(f, g) /* ML */ | ^ floats.c:171:7: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 171 | value sin_float(f) /* ML */ | ^ floats.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 | value sinh_float(f) /* ML */ | ^ floats.c:183:7: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 183 | value cos_float(f) /* ML */ | ^ floats.c:189:7: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 189 | value cosh_float(f) /* ML */ | ^ floats.c:195:7: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 195 | value tan_float(f) /* ML */ | ^ floats.c:201:7: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 201 | value tanh_float(f) /* ML */ | ^ floats.c:207:7: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 207 | value asin_float(f) /* ML */ | ^ floats.c:213:7: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 213 | value acos_float(f) /* ML */ | ^ floats.c:219:7: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 219 | value atan_float(f) /* ML */ | ^ floats.c:225:7: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 225 | value atan2_float(f, g) /* ML */ | ^ floats.c:231:7: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 231 | value ceil_float(f) /* ML */ | ^ 25 warnings generated. gcc -O2 -Dunix -I.. -c str.c In file included from str.c:3: In file included from ./alloc.h:5: In file included from ./misc.h:7: ./config.h:18:9: warning: 'bcopy' macro redefined [-Wmacro-redefined] 18 | #define bcopy(src,dst,len) memmove((dst), (src), (len)) | ^ /Applications/Xcode-16.4.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.5.sdk/usr/include/secure/_strings.h:45:9: note: previous definition is here 45 | #define bcopy(src, dest, ...) \ | ^ str.c:7:10: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 7 | mlsize_t string_length(s) | ^ str.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 | value create_string(len) /* ML */ | ^ str.c:22:7: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 22 | value compare_strings(s1, s2) /* ML */ | ^ str.c:37:27: warning: shifting a negative signed value is undefined [-Wshift-negative-value] 37 | return (*p1 < *p2 ? Val_long(-1) : Val_long(1)); | ^~~~~~~~~~~~ ./mlvalues.h:62:37: note: expanded from macro 'Val_long' 62 | #define Val_long(x) (((long)(x) << 1) + 1) | ~~~~~~~~~ ^ str.c:41:12: warning: shifting a negative signed value is undefined [-Wshift-negative-value] 41 | return Val_long(-2); | ^~~~~~~~~~~~ ./mlvalues.h:62:37: note: expanded from macro 'Val_long' 62 | #define Val_long(x) (((long)(x) << 1) + 1) | ~~~~~~~~~ ^ str.c:46:7: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 46 | value blit_string(s1, offset1, s2, offset2, len) /* ML */ | ^ str.c:55:7: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 55 | value fill_string(s, offset, len, init) /* ML */ | ^ str.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 | value is_printable(chr) /* ML */ | ^ 9 warnings generated. gcc -O2 -Dunix -I.. -c io.c In file included from io.c:10: In file included from ./alloc.h:5: In file included from ./misc.h:7: ./config.h:18:9: warning: 'bcopy' macro redefined [-Wmacro-redefined] 18 | #define bcopy(src,dst,len) memmove((dst), (src), (len)) | ^ /Applications/Xcode-16.4.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.5.sdk/usr/include/secure/_strings.h:45:9: note: previous definition is here 45 | #define bcopy(src, dest, ...) \ | ^ io.c:25:18: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 25 | struct channel * open_descr(fd) | ^ io.c:38:7: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 38 | value open_descriptor(fd) /* ML */ | ^ io.c:44:7: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 44 | value channel_descriptor(channel) /* ML */ | ^ io.c:50:7: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 50 | value channel_size(channel) /* ML */ | ^ io.c:64:13: 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 void really_write(fd, p, n) | ^ io.c:86:7: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 86 | value flush(channel) /* ML */ | ^ io.c:100:7: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 100 | value output_char(channel, ch) /* ML */ | ^ io.c:108:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 108 | void putword(channel, w) | ^ io.c:118:7: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 118 | value output_int(channel, w) /* ML */ | ^ io.c:126:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 126 | void putblock(channel, p, n) | ^ io.c:159:7: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 159 | value output(channel, buff, start, length) /* ML */ | ^ io.c:168:7: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 168 | value seek_out(channel, pos) /* ML */ | ^ io.c:186:7: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 186 | value pos_out(channel) /* ML */ | ^ io.c:192:7: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 192 | value close_out(channel) /* ML */ | ^ io.c:203:12: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 203 | static int really_read(fd, p, n) | ^ io.c:225:15: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 225 | unsigned char refill(channel) | ^ io.c:238:7: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 238 | value input_char(channel) /* ML */ | ^ io.c:246:8: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 246 | uint32 getword(channel) | ^ io.c:259:7: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 259 | value input_int(channel) /* ML */ | ^ io.c:270:10: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 270 | unsigned getblock(channel, p, n) | ^ io.c:303:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 303 | int really_getblock(chan, p, n) | ^ io.c:318:7: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 318 | value input(channel, buff, start, length) /* ML */ | ^ io.c:326:7: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 326 | value seek_in(channel, pos) /* ML */ | ^ io.c:344:7: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 344 | value pos_in(channel) /* ML */ | ^ io.c:350:7: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 350 | value close_in(channel) /* ML */ | ^ io.c:358:7: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 358 | value input_scan_line(channel) /* ML */ | ^ 27 warnings generated. gcc -O2 -Dunix -I.. -c extern.c In file included from extern.c:3: In file included from ./debugger.h:4: In file included from ./misc.h:7: ./config.h:18:9: warning: 'bcopy' macro redefined [-Wmacro-redefined] 18 | #define bcopy(src,dst,len) memmove((dst), (src), (len)) | ^ /Applications/Xcode-16.4.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.5.sdk/usr/include/secure/_strings.h:45:9: note: previous definition is here 45 | #define bcopy(src, dest, ...) \ | ^ extern.c:56:21: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 56 | static byteoffset_t emit(v) | ^ extern.c:93:21: 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 byteoffset_t emit_all(root) | ^ extern.c:132:7: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 132 | value extern_val(chan, v) /* ML */ | ^ 4 warnings generated. gcc -O2 -Dunix -I.. -c externcp.c In file included from externcp.c:3: In file included from ./debugger.h:4: In file included from ./misc.h:7: ./config.h:18:9: warning: 'bcopy' macro redefined [-Wmacro-redefined] 18 | #define bcopy(src,dst,len) memmove((dst), (src), (len)) | ^ /Applications/Xcode-16.4.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.5.sdk/usr/include/secure/_strings.h:45:9: note: previous definition is here 45 | #define bcopy(src, dest, ...) \ | ^ externcp.c:12:13: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 12 | static void output_number(chan, code, val, nbits) | ^ externcp.c:85:24: warning: call to undeclared function 'string_length'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 85 | mlsize_t len = string_length(v); | ^ externcp.c:26:13: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 26 | static void emit_compact(chan, v) | ^ externcp.c:137:7: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 137 | value extern_compact_val(chan, v) /* ML */ | ^ externcp.c:143:15: warning: call to undeclared function 'pos_out'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 143 | start_loc = pos_out(chan); | ^ externcp.c:162:3: warning: call to undeclared function 'seek_out'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 162 | seek_out(chan, start_loc); | ^ 7 warnings generated. gcc -O2 -Dunix -I.. -c intern.c In file included from intern.c:3: In file included from ./debugger.h:4: In file included from ./misc.h:7: ./config.h:18:9: warning: 'bcopy' macro redefined [-Wmacro-redefined] 18 | #define bcopy(src,dst,len) memmove((dst), (src), (len)) | ^ /Applications/Xcode-16.4.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.5.sdk/usr/include/secure/_strings.h:45:9: note: previous definition is here 45 | #define bcopy(src, dest, ...) \ | ^ intern.c:15:13: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 15 | static void adjust_pointers(start, size, color) | ^ intern.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 rev_pointers(p, size) | ^ intern.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 rev_pointers_32(p, size) | ^ intern.c:130:17: 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 mlsize_t size_after_expansion(p, len) | ^ intern.c:162:13: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 162 | static void expand_block(source, dest, source_len, dest_len, color) | ^ intern.c:495:25: warning: passing 'header_t *' (aka 'unsigned long *') to parameter of type 'value *' (aka 'long *') converts between pointers to integer types with different sign [-Wpointer-sign] 495 | expand_block(block, Hp_val(res), whsize32, whsize, color); | ^~~~~~~~~~~ ./mlvalues.h:93:21: note: expanded from macro 'Hp_val' 93 | #define Hp_val(val) (& Hd_val (val)) | ^~~~~~~~~~~~~~~~ intern.c:508:20: warning: passing 'header_t *' (aka 'unsigned long *') to parameter of type 'value *' (aka 'long *') converts between pointers to integer types with different sign [-Wpointer-sign] 508 | rev_pointers(Hp_val (res), whsize); | ^~~~~~~~~~~~ ./mlvalues.h:93:21: note: expanded from macro 'Hp_val' 93 | #define Hp_val(val) (& Hd_val (val)) | ^~~~~~~~~~~~~~~~ intern.c:509:21: warning: passing 'header_t *' (aka 'unsigned long *') to parameter of type 'value *' (aka 'long *') converts between pointers to integer types with different sign [-Wpointer-sign] 509 | adjust_pointers(Hp_val (res), whsize, color); | ^~~~~~~~~~~~ ./mlvalues.h:93:21: note: expanded from macro 'Hp_val' 93 | #define Hp_val(val) (& Hd_val (val)) | ^~~~~~~~~~~~~~~~ intern.c:454:14: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 454 | static value intern_fast_val(chan, magic) | ^ intern.c:568:7: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 568 | value intern_val(chan) /* ML */ | ^ 11 warnings generated. gcc -O2 -Dunix -I.. -c interncp.c In file included from interncp.c:3: In file included from ./debugger.h:4: In file included from ./misc.h:7: ./config.h:18:9: warning: 'bcopy' macro redefined [-Wmacro-redefined] 18 | #define bcopy(src,dst,len) memmove((dst), (src), (len)) | ^ /Applications/Xcode-16.4.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.5.sdk/usr/include/secure/_strings.h:45:9: note: previous definition is here 45 | #define bcopy(src, dest, ...) \ | ^ interncp.c:19:13: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 19 | static long input_bytes(chan, nbytes, sign_extend) | ^ interncp.c:33:13: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 33 | static void read_compact(chan, dest) | ^ interncp.c:148:7: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 148 | value intern_compact_val(chan) | ^ 4 warnings generated. gcc -O2 -Dunix -I.. -c hash.c In file included from hash.c:3: In file included from ./mlvalues.h:5: ./config.h:18:9: warning: 'bcopy' macro redefined [-Wmacro-redefined] 18 | #define bcopy(src,dst,len) memmove((dst), (src), (len)) | ^ /Applications/Xcode-16.4.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.5.sdk/usr/include/secure/_strings.h:45:9: note: previous definition is here 45 | #define bcopy(src, dest, ...) \ | ^ hash.c:18:11: warning: passing arguments to 'hash_aux' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 18 | hash_aux(obj); | ^ hash.c:12:7: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 12 | value hash_univ_param(count, limit, obj) /* ML */ | ^ hash.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 hash_aux(obj) | ^ hash.c:10: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] 10 | static void hash_aux(); | ^ 5 warnings generated. gcc -O2 -Dunix -I.. -c sys.c In file included from sys.c:14: In file included from ./alloc.h:5: In file included from ./misc.h:7: ./config.h:18:9: warning: 'bcopy' macro redefined [-Wmacro-redefined] 18 | #define bcopy(src,dst,len) memmove((dst), (src), (len)) | ^ /Applications/Xcode-16.4.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.5.sdk/usr/include/secure/_strings.h:45:9: note: previous definition is here 45 | #define bcopy(src, dest, ...) \ | ^ sys.c:41:15: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a previous declaration [-Wdeprecated-non-prototype] 41 | extern char * strerror(); | ^ sys.c:63:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 63 | void sys_error(arg) | ^ sys.c:73:19: warning: call to undeclared function 'string_length'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 73 | int arg_len = string_length(arg); | ^ sys.c:86:7: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 86 | value sys_exit(retcode) /* ML */ | ^ sys.c:116:7: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 116 | value sys_open(path, flags, perm) /* ML */ | ^ sys.c:133:7: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 133 | value sys_close(fd) /* ML */ | ^ sys.c:140:7: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 140 | value sys_remove(name) /* ML */ | ^ sys.c:153:7: warning: call to undeclared function 'rename'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 153 | if (rename(String_val(oldname), String_val(newname)) != 0) | ^ sys.c:149:7: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 149 | value sys_rename(oldname, newname) /* ML */ | ^ sys.c:161:7: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 161 | value sys_chdir(dirname) /* ML */ | ^ sys.c:168:15: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a previous declaration [-Wdeprecated-non-prototype] 168 | extern char * getenv(); | ^ /Applications/Xcode-16.4.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.5.sdk/usr/include/_stdlib.h:162:18: note: conflicting prototype is here 162 | char *_LIBC_CSTR getenv(const char *); | ^ sys.c:170:7: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 170 | value sys_getenv(var) /* ML */ | ^ sys.c:182:7: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 182 | value sys_system_command(command) /* ML */ | ^ sys.c:195:7: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 195 | value sys_time(unit) /* ML */ | ^ sys.c:233:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 233 | void sys_init(argv) | ^ sys.c:258:24: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 258 | sighandler_return_type intr_handler(sig) | ^ sys.c:267:7: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 267 | value sys_catch_break(onoff) /* ML */ | ^ sys.c:283:8: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 283 | char * searchpath(name) | ^ 19 warnings generated. gcc -O2 -Dunix -I.. -c meta.c In file included from meta.c:3: In file included from ./alloc.h:5: In file included from ./misc.h:7: ./config.h:18:9: warning: 'bcopy' macro redefined [-Wmacro-redefined] 18 | #define bcopy(src,dst,len) memmove((dst), (src), (len)) | ^ /Applications/Xcode-16.4.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.5.sdk/usr/include/secure/_strings.h:45:9: note: previous definition is here 45 | #define bcopy(src, dest, ...) \ | ^ meta.c:19:20: warning: passing arguments to 'interprete' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 19 | return interprete(&Byte(prog, Long_val(offset))); | ^ meta.c:13:7: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 13 | value start_interp(prog, offset, len) /* ML */ | ^ meta.c:22:7: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 22 | value realloc_global(size) /* ML */ | ^ meta.c:45:7: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 45 | value static_alloc(size) /* ML */ | ^ meta.c:51:7: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 51 | value static_free(blk) /* ML */ | ^ meta.c:58:7: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 58 | value static_resize(blk, new_size) /* ML */ | ^ meta.c:64:7: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 64 | value obj_is_block(arg) /* ML */ | ^ meta.c:70:7: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 70 | value obj_block(tag, size) /* ML */ | ^ 9 warnings generated. gcc -O2 -Dunix -I.. -c parsing.c In file included from parsing.c:3: ./config.h:18:9: warning: 'bcopy' macro redefined [-Wmacro-redefined] 18 | #define bcopy(src,dst,len) memmove((dst), (src), (len)) | ^ /Applications/Xcode-16.4.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.5.sdk/usr/include/secure/_strings.h:45:9: note: previous definition is here 45 | #define bcopy(src, dest, ...) \ | ^ parsing.c:73:7: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 73 | value parse_engine(tables, env, cmd, arg) /* ML */ | ^ parsing.c:165:22: warning: shifting a negative signed value is undefined [-Wshift-negative-value] 165 | env->curr_char = Val_int(-1); | ^~~~~~~~~~~ ./mlvalues.h:66:17: note: expanded from macro 'Val_int' 66 | #define Val_int Val_long | ^ ./mlvalues.h:62:37: note: expanded from macro 'Val_long' 62 | #define Val_long(x) (((long)(x) << 1) + 1) | ~~~~~~~~~ ^ parsing.c:214:1: warning: non-void function does not return a value in all control paths [-Wreturn-type] 214 | } | ^ 4 warnings generated. gcc -O2 -Dunix -I.. -c lexing.c In file included from lexing.c:3: In file included from ./mlvalues.h:5: ./config.h:18:9: warning: 'bcopy' macro redefined [-Wmacro-redefined] 18 | #define bcopy(src,dst,len) memmove((dst), (src), (len)) | ^ /Applications/Xcode-16.4.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.5.sdk/usr/include/secure/_strings.h:45:9: note: previous definition is here 45 | #define bcopy(src, dest, ...) \ | ^ lexing.c:19:7: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 19 | value get_next_char(lexbuf) /* ML */ | ^ 2 warnings generated. gcc -O2 -Dunix -I.. -c gc_ctrl.c In file included from gc_ctrl.c:1: In file included from ./alloc.h:5: In file included from ./misc.h:7: ./config.h:18:9: warning: 'bcopy' macro redefined [-Wmacro-redefined] 18 | #define bcopy(src,dst,len) memmove((dst), (src), (len)) | ^ /Applications/Xcode-16.4.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.5.sdk/usr/include/secure/_strings.h:45:9: note: previous definition is here 45 | #define bcopy(src, dest, ...) \ | ^ gc_ctrl.c:26:7: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 26 | value gc_stat (v) /* ML */ | ^ gc_ctrl.c:105:7: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 105 | value gc_get (v) /* ML */ | ^ gc_ctrl.c:119:12: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 119 | static int norm_pfree (p) | ^ gc_ctrl.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 long norm_heapincr (i) | ^ gc_ctrl.c:135:13: 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 long norm_minsize (s) | ^ gc_ctrl.c:143:7: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 143 | value gc_set (v) /* ML */ | ^ gc_ctrl.c:171:7: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 171 | value gc_minor (v) /* ML */ | ^ gc_ctrl.c:178:7: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 178 | value gc_major (v) /* ML */ | ^ gc_ctrl.c:186:7: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 186 | value gc_full_major (v) /* ML */ | ^ gc_ctrl.c:195:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 195 | void init_gc (minor_size, major_incr, percent_fr, verb) | ^ gc_ctrl.c:210:3: warning: call to undeclared function 'init_c_roots'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 210 | init_c_roots (); | ^ 12 warnings generated. sed -n -e '/\/\* ML \*\//s/.* \([a-z0-9_][a-z0-9_]*\) *(.*/\1/p' compare.c extern.c externcp.c floats.c gc_ctrl.c hash.c intern.c interncp.c interp.c ints.c io.c lexing.c meta.c parsing.c str.c sys.c > primitives2 sh -c 'if cmp -s primitives primitives2; then rm primitives2; else mv primitives2 primitives; fi' (echo '#include "mlvalues.h"'; echo '#include "prims.h"'; sed -e 's/.*/extern value &();/' primitives; echo 'c_primitive cprim[] = {'; sed -e 's/.*/ &,/' primitives; echo ' 0 };'; echo 'char * names_of_cprim[] = {'; sed -e 's/.*/ "&",/' primitives; echo ' 0 };') > prims.c gcc -O2 -Dunix -I.. -c prims.c In file included from prims.c:1: In file included from ./mlvalues.h:5: ./config.h:18:9: warning: 'bcopy' macro redefined [-Wmacro-redefined] 18 | #define bcopy(src,dst,len) memmove((dst), (src), (len)) | ^ /Applications/Xcode-16.4.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.5.sdk/usr/include/secure/_strings.h:45:9: note: previous definition is here 45 | #define bcopy(src, dest, ...) \ | ^ 1 warning generated. gcc -O2 -Dunix -I.. -o camlrun prims.o interp.o misc.o stacks.o fix_code.o main.o fail.o signals.o debugcom.o freelist.o major_gc.o minor_gc.o memory.o alloc.o roots.o compare.o ints.o floats.o str.o io.o extern.o externcp.o intern.o interncp.o hash.o sys.o meta.o parsing.o lexing.o gc_ctrl.o -lm rm -f libcaml.a ar rc libcaml.a interp.o misc.o stacks.o fix_code.o main.o fail.o signals.o debugcom.o freelist.o major_gc.o minor_gc.o memory.o alloc.o roots.o compare.o ints.o floats.o str.o io.o extern.o externcp.o intern.o interncp.o hash.o sys.o meta.o parsing.o lexing.o gc_ctrl.o if test -f /usr/bin/ranlib -o -f /bin/ranlib; then ranlib libcaml.a; else true; fi cp runtime/camlrun . cd yacc; make CC="gcc" OPTS="-Dunix" all gcc -O -DNDEBUG -Dunix -c closure.c closure.c:11:1: warning: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] 11 | set_EFF() | ^ | int closure.c:21:11: warning: passing arguments to 'allocate' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 21 | EFF = NEW2(nvars * rowsize, unsigned); | ^ ./defs.h:145:32: note: expanded from macro 'NEW2' 145 | #define NEW2(n,t) ((t*)allocate((unsigned)((n)*sizeof(t)))) | ^ closure.c:39:5: warning: call to undeclared function 'reflexive_transitive_closure'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 39 | reflexive_transitive_closure(EFF, nvars); | ^ closure.c:44:1: warning: non-void function does not return a value [-Wreturn-type] 44 | } | ^ closure.c:47:1: warning: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] 47 | set_first_derives() | ^ | int closure.c:63:19: warning: passing arguments to 'allocate' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 63 | first_derives = NEW2(nvars * rulesetsize, unsigned) - ntokens * rulesetsize; | ^ ./defs.h:145:32: note: expanded from macro 'NEW2' 145 | #define NEW2(n,t) ((t*)allocate((unsigned)((n)*sizeof(t)))) | ^ closure.c:101:1: warning: non-void function does not return a value [-Wreturn-type] 101 | } | ^ closure.c:104:1: warning: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] 104 | closure(nucleus, n) | ^ | int closure.c:104:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] closure.c:175:1: warning: non-void function does not return a value [-Wreturn-type] 175 | } | ^ closure.c:179:1: warning: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] 179 | finalize_closure() | ^ | int closure.c:184:1: warning: non-void function does not return a value [-Wreturn-type] 184 | } | ^ 12 warnings generated. gcc -O -DNDEBUG -Dunix -c error.c error.c:6:1: warning: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] 6 | fatal(msg) | ^ | int error.c:10:5: warning: call to undeclared function 'done'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 10 | done(2); | ^ error.c:6:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 6 | fatal(msg) | ^ error.c:11:1: warning: non-void function does not return a value [-Wreturn-type] 11 | } | ^ error.c:14:1: warning: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] 14 | no_space() | ^ | int error.c:17:5: warning: call to undeclared function 'done'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 17 | done(2); | ^ error.c:18:1: warning: non-void function does not return a value [-Wreturn-type] 18 | } | ^ error.c:21:1: warning: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] 21 | open_error(filename) | ^ | int error.c:25:5: warning: call to undeclared function 'done'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 25 | done(2); | ^ error.c:21:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 21 | open_error(filename) | ^ error.c:26:1: warning: non-void function does not return a value [-Wreturn-type] 26 | } | ^ error.c:29:1: warning: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] 29 | unexpected_EOF() | ^ | int error.c:33:5: warning: call to undeclared function 'done'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 33 | done(1); | ^ error.c:34:1: warning: non-void function does not return a value [-Wreturn-type] 34 | } | ^ error.c:37:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 37 | void print_pos(st_line, st_cptr) | ^ error.c:64:1: warning: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] 64 | syntax_error(st_lineno, st_line, st_cptr) | ^ | int error.c:72:5: warning: call to undeclared function 'done'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 72 | done(1); | ^ error.c:64:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 64 | syntax_error(st_lineno, st_line, st_cptr) | ^ error.c:73:1: warning: non-void function does not return a value [-Wreturn-type] 73 | } | ^ error.c:76:1: warning: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] 76 | unterminated_comment(c_lineno, c_line, c_cptr) | ^ | int error.c:84:5: warning: call to undeclared function 'done'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 84 | done(1); | ^ error.c:76:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 76 | unterminated_comment(c_lineno, c_line, c_cptr) | ^ error.c:85:1: warning: non-void function does not return a value [-Wreturn-type] 85 | } | ^ error.c:88:1: warning: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] 88 | unterminated_string(s_lineno, s_line, s_cptr) | ^ | int error.c:96:5: warning: call to undeclared function 'done'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 96 | done(1); | ^ error.c:88:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 88 | unterminated_string(s_lineno, s_line, s_cptr) | ^ error.c:97:1: warning: non-void function does not return a value [-Wreturn-type] 97 | } | ^ error.c:100:1: warning: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] 100 | unterminated_text(t_lineno, t_line, t_cptr) | ^ | int error.c:108:5: warning: call to undeclared function 'done'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 108 | done(1); | ^ error.c:100:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 100 | unterminated_text(t_lineno, t_line, t_cptr) | ^ error.c:109:1: warning: non-void function does not return a value [-Wreturn-type] 109 | } | ^ error.c:112:1: warning: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] 112 | unterminated_union(u_lineno, u_line, u_cptr) | ^ | int error.c:120:5: warning: call to undeclared function 'done'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 120 | done(1); | ^ error.c:112:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 112 | unterminated_union(u_lineno, u_line, u_cptr) | ^ error.c:121:1: warning: non-void function does not return a value [-Wreturn-type] 121 | } | ^ error.c:124:1: warning: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] 124 | over_unionized(u_cptr) | ^ | int error.c:130:5: warning: call to undeclared function 'done'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 130 | done(1); | ^ error.c:124:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 124 | over_unionized(u_cptr) | ^ error.c:131:1: warning: non-void function does not return a value [-Wreturn-type] 131 | } | ^ error.c:134:1: warning: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] 134 | illegal_tag(t_lineno, t_line, t_cptr) | ^ | int error.c:142:5: warning: call to undeclared function 'done'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 142 | done(1); | ^ error.c:134:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 134 | illegal_tag(t_lineno, t_line, t_cptr) | ^ error.c:143:1: warning: non-void function does not return a value [-Wreturn-type] 143 | } | ^ error.c:146:1: warning: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] 146 | illegal_character(c_cptr) | ^ | int error.c:152:5: warning: call to undeclared function 'done'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 152 | done(1); | ^ error.c:146:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 146 | illegal_character(c_cptr) | ^ error.c:153:1: warning: non-void function does not return a value [-Wreturn-type] 153 | } | ^ error.c:156:1: warning: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] 156 | used_reserved(s) | ^ | int error.c:161:5: warning: call to undeclared function 'done'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 161 | done(1); | ^ error.c:156:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 156 | used_reserved(s) | ^ error.c:162:1: warning: non-void function does not return a value [-Wreturn-type] 162 | } | ^ error.c:165:1: warning: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] 165 | tokenized_start(s) | ^ | int error.c:170:6: warning: call to undeclared function 'done'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 170 | done(1); | ^ error.c:165:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 165 | tokenized_start(s) | ^ error.c:171:1: warning: non-void function does not return a value [-Wreturn-type] 171 | } | ^ error.c:174:1: warning: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] 174 | retyped_warning(s) | ^ | int error.c:174:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] error.c:179:1: warning: non-void function does not return a value [-Wreturn-type] 179 | } | ^ error.c:182:1: warning: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] 182 | reprec_warning(s) | ^ | int error.c:182:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] error.c:187:1: warning: non-void function does not return a value [-Wreturn-type] 187 | } | ^ error.c:190:1: warning: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] 190 | revalued_warning(s) | ^ | int error.c:190:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] error.c:195:1: warning: non-void function does not return a value [-Wreturn-type] 195 | } | ^ error.c:198:1: warning: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] 198 | terminal_start(s) | ^ | int error.c:203:5: warning: call to undeclared function 'done'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 203 | done(1); | ^ error.c:198:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 198 | terminal_start(s) | ^ error.c:204:1: warning: non-void function does not return a value [-Wreturn-type] 204 | } | ^ error.c:206:1: warning: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] 206 | too_many_entries() | ^ | int error.c:210:5: warning: call to undeclared function 'done'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 210 | done(1); | ^ error.c:211:1: warning: non-void function does not return a value [-Wreturn-type] 211 | } | ^ error.c:214:1: warning: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] 214 | no_grammar() | ^ | int error.c:218:5: warning: call to undeclared function 'done'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 218 | done(1); | ^ error.c:219:1: warning: non-void function does not return a value [-Wreturn-type] 219 | } | ^ error.c:222:1: warning: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] 222 | terminal_lhs(s_lineno) | ^ | int error.c:227:5: warning: call to undeclared function 'done'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 227 | done(1); | ^ error.c:222:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 222 | terminal_lhs(s_lineno) | ^ error.c:228:1: warning: non-void function does not return a value [-Wreturn-type] 228 | } | ^ error.c:231:1: warning: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] 231 | prec_redeclared() | ^ | int error.c:235:1: warning: non-void function does not return a value [-Wreturn-type] 235 | } | ^ error.c:238:1: warning: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] 238 | unterminated_action(a_lineno, a_line, a_cptr) | ^ | int error.c:246:5: warning: call to undeclared function 'done'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 246 | done(1); | ^ error.c:238:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 238 | unterminated_action(a_lineno, a_line, a_cptr) | ^ error.c:247:1: warning: non-void function does not return a value [-Wreturn-type] 247 | } | ^ error.c:250:1: warning: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] 250 | dollar_warning(a_lineno, i) | ^ | int error.c:250:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] error.c:256:1: warning: non-void function does not return a value [-Wreturn-type] 256 | } | ^ error.c:259:1: warning: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] 259 | dollar_error(a_lineno, a_line, a_cptr) | ^ | int error.c:267:5: warning: call to undeclared function 'done'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 267 | done(1); | ^ error.c:259:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 259 | dollar_error(a_lineno, a_line, a_cptr) | ^ error.c:268:1: warning: non-void function does not return a value [-Wreturn-type] 268 | } | ^ error.c:271:1: warning: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] 271 | untyped_lhs() | ^ | int error.c:275:5: warning: call to undeclared function 'done'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 275 | done(1); | ^ error.c:276:1: warning: non-void function does not return a value [-Wreturn-type] 276 | } | ^ error.c:279:1: warning: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] 279 | untyped_rhs(i, s) | ^ | int error.c:285:5: warning: call to undeclared function 'done'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 285 | done(1); | ^ error.c:279:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 279 | untyped_rhs(i, s) | ^ error.c:286:1: warning: non-void function does not return a value [-Wreturn-type] 286 | } | ^ error.c:289:1: warning: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] 289 | unknown_rhs(i) | ^ | int error.c:294:5: warning: call to undeclared function 'done'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 294 | done(1); | ^ error.c:289:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 289 | unknown_rhs(i) | ^ error.c:295:1: warning: non-void function does not return a value [-Wreturn-type] 295 | } | ^ error.c:297:1: warning: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] 297 | illegal_token_ref(i, name) | ^ | int error.c:304:5: warning: call to undeclared function 'done'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 304 | done(1); | ^ error.c:297:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 297 | illegal_token_ref(i, name) | ^ error.c:305:1: warning: non-void function does not return a value [-Wreturn-type] 305 | } | ^ error.c:307:1: warning: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] 307 | default_action_error() | ^ | int error.c:312:5: warning: call to undeclared function 'done'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 312 | done(1); | ^ error.c:313:1: warning: non-void function does not return a value [-Wreturn-type] 313 | } | ^ error.c:316:1: warning: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] 316 | undefined_goal(s) | ^ | int error.c:320:5: warning: call to undeclared function 'done'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 320 | done(1); | ^ error.c:316:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 316 | undefined_goal(s) | ^ error.c:321:1: warning: non-void function does not return a value [-Wreturn-type] 321 | } | ^ error.c:324:1: warning: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] 324 | undefined_symbol_warning(s) | ^ | int error.c:324:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] error.c:328:1: warning: non-void function does not return a value [-Wreturn-type] 328 | } | ^ error.c:331:1: warning: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] 331 | entry_without_type(s) | ^ | int error.c:337:5: warning: call to undeclared function 'done'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 337 | done(1); | ^ error.c:331:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 331 | entry_without_type(s) | ^ error.c:338:1: warning: non-void function does not return a value [-Wreturn-type] 338 | } | ^ 120 warnings generated. gcc -O -DNDEBUG -Dunix -c lalr.c lalr.c:37:1: warning: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] 37 | lalr() | ^ | int lalr.c:41:5: warning: call to undeclared function 'set_state_table'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 41 | set_state_table(); | ^ lalr.c:42:5: warning: call to undeclared function 'set_accessing_symbol'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 42 | set_accessing_symbol(); | ^ lalr.c:43:5: warning: call to undeclared function 'set_shift_table'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 43 | set_shift_table(); | ^ lalr.c:44:5: warning: call to undeclared function 'set_reduction_table'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 44 | set_reduction_table(); | ^ lalr.c:45:5: warning: call to undeclared function 'set_maxrhs'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 45 | set_maxrhs(); | ^ lalr.c:46:5: warning: call to undeclared function 'initialize_LA'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 46 | initialize_LA(); | ^ lalr.c:47:5: warning: call to undeclared function 'set_goto_map'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 47 | set_goto_map(); | ^ lalr.c:48:5: warning: call to undeclared function 'initialize_F'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 48 | initialize_F(); | ^ lalr.c:49:5: warning: call to undeclared function 'build_relations'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 49 | build_relations(); | ^ lalr.c:50:5: warning: call to undeclared function 'compute_FOLLOWS'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 50 | compute_FOLLOWS(); | ^ lalr.c:51:5: warning: call to undeclared function 'compute_lookaheads'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 51 | compute_lookaheads(); | ^ lalr.c:52:1: warning: non-void function does not return a value [-Wreturn-type] 52 | } | ^ lalr.c:56:1: warning: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] 56 | set_state_table() | ^ | int lalr.c:60:19: warning: passing arguments to 'allocate' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 60 | state_table = NEW2(nstates, core *); | ^ ./defs.h:145:32: note: expanded from macro 'NEW2' 145 | #define NEW2(n,t) ((t*)allocate((unsigned)((n)*sizeof(t)))) | ^ lalr.c:63:1: warning: non-void function does not return a value [-Wreturn-type] 63 | } | ^ lalr.c:67:1: warning: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] 67 | set_accessing_symbol() | ^ | int lalr.c:71:24: warning: passing arguments to 'allocate' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 71 | accessing_symbol = NEW2(nstates, short); | ^ ./defs.h:145:32: note: expanded from macro 'NEW2' 145 | #define NEW2(n,t) ((t*)allocate((unsigned)((n)*sizeof(t)))) | ^ lalr.c:74:1: warning: non-void function does not return a value [-Wreturn-type] 74 | } | ^ lalr.c:78:1: warning: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] 78 | set_shift_table() | ^ | int lalr.c:82:19: warning: passing arguments to 'allocate' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 82 | shift_table = NEW2(nstates, shifts *); | ^ ./defs.h:145:32: note: expanded from macro 'NEW2' 145 | #define NEW2(n,t) ((t*)allocate((unsigned)((n)*sizeof(t)))) | ^ lalr.c:85:1: warning: non-void function does not return a value [-Wreturn-type] 85 | } | ^ lalr.c:89:1: warning: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] 89 | set_reduction_table() | ^ | int lalr.c:93:23: warning: passing arguments to 'allocate' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 93 | reduction_table = NEW2(nstates, reductions *); | ^ ./defs.h:145:32: note: expanded from macro 'NEW2' 145 | #define NEW2(n,t) ((t*)allocate((unsigned)((n)*sizeof(t)))) | ^ lalr.c:96:1: warning: non-void function does not return a value [-Wreturn-type] 96 | } | ^ lalr.c:100:1: warning: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] 100 | set_maxrhs() | ^ | int lalr.c:124:1: warning: non-void function does not return a value [-Wreturn-type] 124 | } | ^ lalr.c:128:1: warning: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] 128 | initialize_LA() | ^ | int lalr.c:133:16: warning: passing arguments to 'allocate' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 133 | lookaheads = NEW2(nstates + 1, short); | ^ ./defs.h:145:32: note: expanded from macro 'NEW2' 145 | #define NEW2(n,t) ((t*)allocate((unsigned)((n)*sizeof(t)))) | ^ lalr.c:145:8: warning: passing arguments to 'allocate' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 145 | LA = NEW2(k * tokensetsize, unsigned); | ^ ./defs.h:145:32: note: expanded from macro 'NEW2' 145 | #define NEW2(n,t) ((t*)allocate((unsigned)((n)*sizeof(t)))) | ^ lalr.c:146:14: warning: passing arguments to 'allocate' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 146 | LAruleno = NEW2(k, short); | ^ ./defs.h:145:32: note: expanded from macro 'NEW2' 145 | #define NEW2(n,t) ((t*)allocate((unsigned)((n)*sizeof(t)))) | ^ lalr.c:147:14: warning: passing arguments to 'allocate' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 147 | lookback = NEW2(k, shorts *); | ^ ./defs.h:145:32: note: expanded from macro 'NEW2' 145 | #define NEW2(n,t) ((t*)allocate((unsigned)((n)*sizeof(t)))) | ^ lalr.c:162:1: warning: non-void function does not return a value [-Wreturn-type] 162 | } | ^ lalr.c:165:1: warning: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] 165 | set_goto_map() | ^ | int lalr.c:175:14: warning: passing arguments to 'allocate' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 175 | goto_map = NEW2(nvars + 1, short) - ntokens; | ^ ./defs.h:145:32: note: expanded from macro 'NEW2' 145 | #define NEW2(n,t) ((t*)allocate((unsigned)((n)*sizeof(t)))) | ^ lalr.c:176:14: warning: passing arguments to 'allocate' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 176 | temp_map = NEW2(nvars + 1, short) - ntokens; | ^ ./defs.h:145:32: note: expanded from macro 'NEW2' 145 | #define NEW2(n,t) ((t*)allocate((unsigned)((n)*sizeof(t)))) | ^ lalr.c:188:6: warning: call to undeclared function 'fatal'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 188 | fatal("too many gotos"); | ^ lalr.c:208:16: warning: passing arguments to 'allocate' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 208 | from_state = NEW2(ngotos, short); | ^ ./defs.h:145:32: note: expanded from macro 'NEW2' 145 | #define NEW2(n,t) ((t*)allocate((unsigned)((n)*sizeof(t)))) | ^ lalr.c:209:14: warning: passing arguments to 'allocate' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 209 | to_state = NEW2(ngotos, short); | ^ ./defs.h:145:32: note: expanded from macro 'NEW2' 145 | #define NEW2(n,t) ((t*)allocate((unsigned)((n)*sizeof(t)))) | ^ lalr.c:228:1: warning: non-void function does not return a value [-Wreturn-type] 228 | } | ^ lalr.c:235:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 235 | map_goto(state, symbol) | ^ lalr.c:263:1: warning: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] 263 | initialize_F() | ^ | int lalr.c:279:7: warning: passing arguments to 'allocate' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 279 | F = NEW2(nwords, unsigned); | ^ ./defs.h:145:32: note: expanded from macro 'NEW2' 145 | #define NEW2(n,t) ((t*)allocate((unsigned)((n)*sizeof(t)))) | ^ lalr.c:281:11: warning: passing arguments to 'allocate' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 281 | reads = NEW2(ngotos, short *); | ^ ./defs.h:145:32: note: expanded from macro 'NEW2' 145 | #define NEW2(n,t) ((t*)allocate((unsigned)((n)*sizeof(t)))) | ^ lalr.c:282:10: warning: passing arguments to 'allocate' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 282 | edge = NEW2(ngotos + 1, short); | ^ ./defs.h:145:32: note: expanded from macro 'NEW2' 145 | #define NEW2(n,t) ((t*)allocate((unsigned)((n)*sizeof(t)))) | ^ lalr.c:312:24: warning: passing arguments to 'allocate' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 312 | reads[i] = rp = NEW2(nedges + 1, short); | ^ ./defs.h:145:32: note: expanded from macro 'NEW2' 145 | #define NEW2(n,t) ((t*)allocate((unsigned)((n)*sizeof(t)))) | ^ lalr.c:326:3: warning: call to undeclared function 'digraph'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 326 | digraph(reads); | ^ lalr.c:336:1: warning: non-void function does not return a value [-Wreturn-type] 336 | } | ^ lalr.c:340:1: warning: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] 340 | build_relations() | ^ | int lalr.c:360:14: warning: passing arguments to 'allocate' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 360 | includes = NEW2(ngotos, short *); | ^ ./defs.h:145:32: note: expanded from macro 'NEW2' 145 | #define NEW2(n,t) ((t*)allocate((unsigned)((n)*sizeof(t)))) | ^ lalr.c:361:10: warning: passing arguments to 'allocate' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 361 | edge = NEW2(ngotos + 1, short); | ^ ./defs.h:145:32: note: expanded from macro 'NEW2' 145 | #define NEW2(n,t) ((t*)allocate((unsigned)((n)*sizeof(t)))) | ^ lalr.c:362:12: warning: passing arguments to 'allocate' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 362 | states = NEW2(maxrhs + 1, short); | ^ ./defs.h:145:32: note: expanded from macro 'NEW2' 145 | #define NEW2(n,t) ((t*)allocate((unsigned)((n)*sizeof(t)))) | ^ lalr.c:391:4: warning: call to undeclared function 'add_lookback_edge'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 391 | add_lookback_edge(stateno, *rulep, i); | ^ lalr.c:410:27: warning: passing arguments to 'allocate' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 410 | includes[i] = shortp = NEW2(nedges + 1, short); | ^ ./defs.h:145:32: note: expanded from macro 'NEW2' 145 | #define NEW2(n,t) ((t*)allocate((unsigned)((n)*sizeof(t)))) | ^ lalr.c:417:27: warning: passing arguments to 'transpose' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 417 | new_includes = transpose(includes, ngotos); | ^ lalr.c:429:1: warning: non-void function does not return a value [-Wreturn-type] 429 | } | ^ lalr.c:432:1: warning: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] 432 | add_lookback_edge(stateno, ruleno, gotono) | ^ | int lalr.c:451:10: warning: passing arguments to 'allocate' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 451 | sp = NEW(shorts); | ^ ./defs.h:144:30: note: expanded from macro 'NEW' 144 | #define NEW(t) ((t*)allocate(sizeof(t))) | ^ lalr.c:432:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 432 | add_lookback_edge(stateno, ruleno, gotono) | ^ lalr.c:455:1: warning: non-void function does not return a value [-Wreturn-type] 455 | } | ^ lalr.c:471:12: warning: passing arguments to 'allocate' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 471 | nedges = NEW2(n, short); | ^ ./defs.h:145:32: note: expanded from macro 'NEW2' 145 | #define NEW2(n,t) ((t*)allocate((unsigned)((n)*sizeof(t)))) | ^ lalr.c:483:11: warning: passing arguments to 'allocate' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 483 | new_R = NEW2(n, short *); | ^ ./defs.h:145:32: note: expanded from macro 'NEW2' 145 | #define NEW2(n,t) ((t*)allocate((unsigned)((n)*sizeof(t)))) | ^ lalr.c:484:12: warning: passing arguments to 'allocate' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 484 | temp_R = NEW2(n, short *); | ^ ./defs.h:145:32: note: expanded from macro 'NEW2' 145 | #define NEW2(n,t) ((t*)allocate((unsigned)((n)*sizeof(t)))) | ^ lalr.c:491:9: warning: passing arguments to 'allocate' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 491 | sp = NEW2(k + 1, short); | ^ ./defs.h:145:32: note: expanded from macro 'NEW2' 145 | #define NEW2(n,t) ((t*)allocate((unsigned)((n)*sizeof(t)))) | ^ lalr.c:460:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 460 | transpose(R, n) | ^ lalr.c:23:9: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 23 | short **transpose(); | ^ lalr.c:517:1: warning: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] 517 | compute_FOLLOWS() | ^ | int lalr.c:519:3: warning: call to undeclared function 'digraph'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 519 | digraph(includes); | ^ lalr.c:520:1: warning: non-void function does not return a value [-Wreturn-type] 520 | } | ^ lalr.c:523:1: warning: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] 523 | compute_lookaheads() | ^ | int lalr.c:554:1: warning: non-void function does not return a value [-Wreturn-type] 554 | } | ^ lalr.c:557:1: warning: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] 557 | digraph(relation) | ^ | int lalr.c:563:11: warning: passing arguments to 'allocate' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 563 | INDEX = NEW2(ngotos + 1, short); | ^ ./defs.h:145:32: note: expanded from macro 'NEW2' 145 | #define NEW2(n,t) ((t*)allocate((unsigned)((n)*sizeof(t)))) | ^ lalr.c:564:14: warning: passing arguments to 'allocate' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 564 | VERTICES = NEW2(ngotos + 1, short); | ^ ./defs.h:145:32: note: expanded from macro 'NEW2' 145 | #define NEW2(n,t) ((t*)allocate((unsigned)((n)*sizeof(t)))) | ^ lalr.c:575:2: warning: call to undeclared function 'traverse'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 575 | traverse(i); | ^ lalr.c:557:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 557 | digraph(relation) | ^ lalr.c:580:1: warning: non-void function does not return a value [-Wreturn-type] 580 | } | ^ lalr.c:584:1: warning: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] 584 | traverse(i) | ^ | int lalr.c:584:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] lalr.c:638:1: warning: non-void function does not return a value [-Wreturn-type] 638 | } | ^ 80 warnings generated. gcc -O -DNDEBUG -Dunix -c lr0.c lr0.c:33:1: warning: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] 33 | allocate_itemsets() | ^ | int lr0.c:44:20: warning: passing arguments to 'allocate' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 44 | symbol_count = NEW2(nsyms, short); | ^ ./defs.h:145:32: note: expanded from macro 'NEW2' 145 | #define NEW2(n,t) ((t*)allocate((unsigned)((n)*sizeof(t)))) | ^ lr0.c:57:19: warning: passing arguments to 'allocate' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 57 | kernel_base = NEW2(nsyms, short *); | ^ ./defs.h:145:32: note: expanded from macro 'NEW2' 145 | #define NEW2(n,t) ((t*)allocate((unsigned)((n)*sizeof(t)))) | ^ lr0.c:58:20: warning: passing arguments to 'allocate' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 58 | kernel_items = NEW2(count, short); | ^ ./defs.h:145:32: note: expanded from macro 'NEW2' 145 | #define NEW2(n,t) ((t*)allocate((unsigned)((n)*sizeof(t)))) | ^ lr0.c:71:18: warning: passing arguments to 'allocate' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 71 | kernel_end = NEW2(nsyms, short *); | ^ ./defs.h:145:32: note: expanded from macro 'NEW2' 145 | #define NEW2(n,t) ((t*)allocate((unsigned)((n)*sizeof(t)))) | ^ lr0.c:72:1: warning: non-void function does not return a value [-Wreturn-type] 72 | } | ^ lr0.c:75:1: warning: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] 75 | allocate_storage() | ^ | int lr0.c:78:16: warning: passing arguments to 'allocate' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 78 | shiftset = NEW2(nsyms, short); | ^ ./defs.h:145:32: note: expanded from macro 'NEW2' 145 | #define NEW2(n,t) ((t*)allocate((unsigned)((n)*sizeof(t)))) | ^ lr0.c:79:14: warning: passing arguments to 'allocate' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 79 | redset = NEW2(nrules + 1, short); | ^ ./defs.h:145:32: note: expanded from macro 'NEW2' 145 | #define NEW2(n,t) ((t*)allocate((unsigned)((n)*sizeof(t)))) | ^ lr0.c:80:17: warning: passing arguments to 'allocate' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 80 | state_set = NEW2(nitems, core *); | ^ ./defs.h:145:32: note: expanded from macro 'NEW2' 145 | #define NEW2(n,t) ((t*)allocate((unsigned)((n)*sizeof(t)))) | ^ lr0.c:81:1: warning: non-void function does not return a value [-Wreturn-type] 81 | } | ^ lr0.c:84:1: warning: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] 84 | append_states() | ^ | int lr0.c:108:25: warning: passing arguments to 'get_state' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 108 | shiftset[i] = get_state(symbol); | ^ lr0.c:110:1: warning: non-void function does not return a value [-Wreturn-type] 110 | } | ^ lr0.c:113:1: warning: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] 113 | free_storage() | ^ | int lr0.c:122:1: warning: non-void function does not return a value [-Wreturn-type] 122 | } | ^ lr0.c:126:1: warning: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] 126 | generate_states() | ^ | int lr0.c:129:15: warning: passing arguments to 'allocate' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 129 | itemset = NEW2(nitems, short); | ^ ./defs.h:145:32: note: expanded from macro 'NEW2' 145 | #define NEW2(n,t) ((t*)allocate((unsigned)((n)*sizeof(t)))) | ^ lr0.c:130:15: warning: passing arguments to 'allocate' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 130 | ruleset = NEW2(WORDSIZE(nrules), unsigned); | ^ ./defs.h:145:32: note: expanded from macro 'NEW2' 145 | #define NEW2(n,t) ((t*)allocate((unsigned)((n)*sizeof(t)))) | ^ lr0.c:131:5: warning: call to undeclared function 'set_first_derives'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 131 | set_first_derives(); | ^ lr0.c:132:5: warning: call to undeclared function 'initialize_states'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 132 | initialize_states(); | ^ lr0.c:136:2: warning: call to undeclared function 'closure'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 136 | closure(this_state->items, this_state->nitems); | ^ lr0.c:137:2: warning: call to undeclared function 'save_reductions'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 137 | save_reductions(); | ^ lr0.c:138:2: warning: call to undeclared function 'new_itemsets'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 138 | new_itemsets(); | ^ lr0.c:142:6: warning: call to undeclared function 'save_shifts'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 142 | save_shifts(); | ^ lr0.c:147:5: warning: call to undeclared function 'finalize_closure'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 147 | finalize_closure(); | ^ lr0.c:149:1: warning: non-void function does not return a value [-Wreturn-type] 149 | } | ^ lr0.c:202:32: warning: passing arguments to 'new_state' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 202 | sp = sp->link = new_state(symbol); | ^ lr0.c:210:33: warning: passing arguments to 'new_state' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 210 | state_set[key] = sp = new_state(symbol); | ^ lr0.c:154:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 154 | get_state(symbol) | ^ lr0.c:13:5: 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 | int get_state(); | ^ lr0.c:218:1: warning: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] 218 | initialize_states() | ^ | int lr0.c:229:17: warning: call to undeclared function 'no_space'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 229 | if (p == 0) no_space(); | ^ lr0.c:242:1: warning: non-void function does not return a value [-Wreturn-type] 242 | } | ^ lr0.c:245:1: warning: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] 245 | new_itemsets() | ^ | int lr0.c:277:1: warning: non-void function does not return a value [-Wreturn-type] 277 | } | ^ lr0.c:296:2: warning: call to undeclared function 'fatal'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 296 | fatal("too many states"); | ^ lr0.c:302:26: warning: passing arguments to 'allocate' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 302 | p = (core *) allocate((unsigned) (sizeof(core) + (n - 1) * sizeof(short))); | ^ lr0.c:282:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 282 | new_state(symbol) | ^ lr0.c:14:7: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 14 | core *new_state(); | ^ lr0.c:322:1: warning: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] 322 | show_cores() | ^ | int lr0.c:352:1: warning: non-void function does not return a value [-Wreturn-type] 352 | } | ^ lr0.c:357:1: warning: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] 357 | show_ritems() | ^ | int lr0.c:363:1: warning: non-void function does not return a value [-Wreturn-type] 363 | } | ^ lr0.c:367:1: warning: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] 367 | show_rrhs() | ^ | int lr0.c:373:1: warning: non-void function does not return a value [-Wreturn-type] 373 | } | ^ lr0.c:378:1: warning: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] 378 | show_shifts() | ^ | int lr0.c:393:1: warning: non-void function does not return a value [-Wreturn-type] 393 | } | ^ lr0.c:396:1: warning: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] 396 | save_shifts() | ^ | int lr0.c:403:28: warning: passing arguments to 'allocate' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 403 | p = (shifts *) allocate((unsigned) (sizeof(shifts) + | ^ lr0.c:426:1: warning: non-void function does not return a value [-Wreturn-type] 426 | } | ^ lr0.c:430:1: warning: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] 430 | save_reductions() | ^ | int lr0.c:452:29: warning: passing arguments to 'allocate' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 452 | p = (reductions *) allocate((unsigned) (sizeof(reductions) + | ^ lr0.c:476:1: warning: non-void function does not return a value [-Wreturn-type] 476 | } | ^ lr0.c:479:1: warning: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] 479 | set_derives() | ^ | int lr0.c:485:15: warning: passing arguments to 'allocate' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 485 | derives = NEW2(nsyms, short *); | ^ ./defs.h:145:32: note: expanded from macro 'NEW2' 145 | #define NEW2(n,t) ((t*)allocate((unsigned)((n)*sizeof(t)))) | ^ lr0.c:486:13: warning: passing arguments to 'allocate' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 486 | rules = NEW2(nvars + nrules, short); | ^ ./defs.h:145:32: note: expanded from macro 'NEW2' 145 | #define NEW2(n,t) ((t*)allocate((unsigned)((n)*sizeof(t)))) | ^ lr0.c:507:1: warning: non-void function does not return a value [-Wreturn-type] 507 | } | ^ lr0.c:509:1: warning: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] 509 | free_derives() | ^ | int lr0.c:513:1: warning: non-void function does not return a value [-Wreturn-type] 513 | } | ^ lr0.c:538:1: warning: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] 538 | set_nullable() | ^ | int lr0.c:545:24: warning: call to undeclared function 'no_space'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 545 | if (nullable == 0) no_space(); | ^ lr0.c:584:1: warning: non-void function does not return a value [-Wreturn-type] 584 | } | ^ lr0.c:587:1: warning: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] 587 | free_nullable() | ^ | int lr0.c:590:1: warning: non-void function does not return a value [-Wreturn-type] 590 | } | ^ lr0.c:593:1: warning: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] 593 | lr0() | ^ | int lr0.c:598:1: warning: non-void function does not return a value [-Wreturn-type] 598 | } | ^ 67 warnings generated. gcc -O -DNDEBUG -Dunix -c main.c main.c:79:1: warning: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] 79 | done(k) | ^ | int main.c:82:45: warning: call to undeclared function 'unlink'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 82 | if (action_file) { fclose(action_file); unlink(action_file_name); } | ^ main.c:83:43: warning: call to undeclared function 'unlink'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 83 | if (entry_file) { fclose(entry_file); unlink(entry_file_name); } | ^ main.c:84:41: warning: call to undeclared function 'unlink'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 84 | if (text_file) { fclose(text_file); unlink(text_file_name); } | ^ main.c:85:43: warning: call to undeclared function 'unlink'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 85 | if (union_file) { fclose(union_file); unlink(union_file_name); } | ^ main.c:87:28: warning: call to undeclared function 'unlink'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 87 | fclose(output_file); unlink(output_file_name); | ^ main.c:90:31: warning: call to undeclared function 'unlink'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 90 | fclose(interface_file); unlink(interface_file_name); | ^ main.c:79:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 79 | done(k) | ^ main.c:96:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 96 | void onintr(dummy) | ^ main.c:103:1: warning: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] 103 | set_signals() | ^ | int main.c:117:1: warning: non-void function does not return a value [-Wreturn-type] 117 | } | ^ main.c:120:1: warning: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] 120 | usage() | ^ | int main.c:200:29: warning: call to undeclared function 'no_space'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 200 | if (file_prefix == 0) no_space(); | ^ main.c:127:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 127 | void getargs(argc, argv) | ^ main.c:223:10: warning: call to undeclared function 'no_space'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 223 | if (!p) no_space(); | ^ main.c:214:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 214 | allocate(n) | ^ In file included from main.c:3: ./defs.h:321:14: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 321 | extern char *allocate(); | ^ main.c:229:1: warning: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] 229 | create_file_names() | ^ | int main.c:247:32: warning: call to undeclared function 'no_space'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 247 | if (action_file_name == 0) no_space(); | ^ main.c:289:2: warning: call to undeclared function 'open_error'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 289 | open_error(action_file_name); | ^ main.c:322:1: warning: non-void function does not return a value [-Wreturn-type] 322 | } | ^ main.c:325:1: warning: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] 325 | open_files() | ^ | int main.c:333:6: warning: call to undeclared function 'open_error'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 333 | open_error(input_file_name); | ^ main.c:338:2: warning: call to undeclared function 'open_error'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 338 | open_error(action_file_name); | ^ main.c:382:1: warning: non-void function does not return a value [-Wreturn-type] 382 | } | ^ main.c:385:1: warning: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] 385 | main(argc, argv) | ^ | int main.c:392:5: warning: call to undeclared function 'reader'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 392 | reader(); | ^ main.c:393:5: warning: call to undeclared function 'lr0'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 393 | lr0(); | ^ main.c:394:5: warning: call to undeclared function 'lalr'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 394 | lalr(); | ^ main.c:395:5: warning: call to undeclared function 'make_parser'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 395 | make_parser(); | ^ main.c:396:5: warning: call to undeclared function 'verbose'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 396 | verbose(); | ^ main.c:397:5: warning: call to undeclared function 'output'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 397 | output(); | ^ main.c:385:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 385 | main(argc, argv) | ^ 33 warnings generated. gcc -O -DNDEBUG -Dunix -c mkpar.c mkpar.c:23:1: warning: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] 23 | make_parser() | ^ | int mkpar.c:27:14: warning: passing arguments to 'allocate' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 27 | parser = NEW2(nstates, action *); | ^ ./defs.h:145:32: note: expanded from macro 'NEW2' 145 | #define NEW2(n,t) ((t*)allocate((unsigned)((n)*sizeof(t)))) | ^ mkpar.c:29:27: warning: passing arguments to 'parse_actions' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 29 | parser[i] = parse_actions(i); | ^ mkpar.c:31:5: warning: call to undeclared function 'find_final_state'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 31 | find_final_state(); | ^ mkpar.c:32:5: warning: call to undeclared function 'remove_conflicts'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 32 | remove_conflicts(); | ^ mkpar.c:33:5: warning: call to undeclared function 'unused_rules'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 33 | unused_rules(); | ^ mkpar.c:34:32: warning: call to undeclared function 'total_conflicts'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 34 | if (SRtotal + RRtotal > 0) total_conflicts(); | ^ mkpar.c:35:5: warning: call to undeclared function 'defreds'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 35 | defreds(); | ^ mkpar.c:36:1: warning: non-void function does not return a value [-Wreturn-type] 36 | } | ^ mkpar.c:45:25: warning: passing arguments to 'get_shifts' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 45 | actions = get_shifts(stateno); | ^ mkpar.c:46:29: warning: passing arguments to 'add_reductions' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 46 | actions = add_reductions(stateno, actions); | ^ mkpar.c:40:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 40 | parse_actions(stateno) | ^ mkpar.c:17:16: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 17 | extern action *parse_actions(); | ^ mkpar.c:72:10: warning: passing arguments to 'allocate' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 72 | temp = NEW(action); | ^ ./defs.h:144:30: note: expanded from macro 'NEW' 144 | #define NEW(t) ((t*)allocate(sizeof(t))) | ^ mkpar.c:52:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 52 | get_shifts(stateno) | ^ mkpar.c:18:16: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 18 | extern action *get_shifts(); | ^ mkpar.c:105:23: warning: passing arguments to 'add_reduce' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 105 | actions = add_reduce(actions, ruleno, j); | ^ mkpar.c:87:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 87 | add_reductions(stateno, actions) | ^ mkpar.c:19:16: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 19 | extern action *add_reductions(); | ^ mkpar.c:136:12: warning: passing arguments to 'allocate' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 136 | temp = NEW(action); | ^ ./defs.h:144:30: note: expanded from macro 'NEW' 144 | #define NEW(t) ((t*)allocate(sizeof(t))) | ^ mkpar.c:113:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 113 | add_reduce(actions, ruleno, symbol) | ^ mkpar.c:20:16: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 20 | extern action *add_reduce(); | ^ mkpar.c:153:1: warning: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] 153 | find_final_state() | ^ | int mkpar.c:167:1: warning: non-void function does not return a value [-Wreturn-type] 167 | } | ^ mkpar.c:170:1: warning: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] 170 | unused_rules() | ^ | int mkpar.c:176:26: warning: call to undeclared function 'no_space'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 176 | if (rules_used == 0) no_space(); | ^ mkpar.c:197:2: warning: add explicit braces to avoid dangling else [-Wdangling-else] 197 | else | ^ mkpar.c:199:1: warning: non-void function does not return a value [-Wreturn-type] 199 | } | ^ mkpar.c:202:1: warning: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] 202 | remove_conflicts() | ^ | int mkpar.c:210:19: warning: passing arguments to 'allocate' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 210 | SRconflicts = NEW2(nstates, short); | ^ ./defs.h:145:32: note: expanded from macro 'NEW2' 145 | #define NEW2(n,t) ((t*)allocate((unsigned)((n)*sizeof(t)))) | ^ mkpar.c:211:19: warning: passing arguments to 'allocate' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 211 | RRconflicts = NEW2(nstates, short); | ^ ./defs.h:145:32: note: expanded from macro 'NEW2' 145 | #define NEW2(n,t) ((t*)allocate((unsigned)((n)*sizeof(t)))) | ^ mkpar.c:274:1: warning: non-void function does not return a value [-Wreturn-type] 274 | } | ^ mkpar.c:277:1: warning: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] 277 | total_conflicts() | ^ | int mkpar.c:294:1: warning: non-void function does not return a value [-Wreturn-type] 294 | } | ^ mkpar.c:298:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 298 | sole_reduction(stateno) | ^ mkpar.c:326:1: warning: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] 326 | defreds() | ^ | int mkpar.c:330:14: warning: passing arguments to 'allocate' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 330 | defred = NEW2(nstates, short); | ^ ./defs.h:145:32: note: expanded from macro 'NEW2' 145 | #define NEW2(n,t) ((t*)allocate((unsigned)((n)*sizeof(t)))) | ^ mkpar.c:333:1: warning: non-void function does not return a value [-Wreturn-type] 333 | } | ^ mkpar.c:335:1: warning: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] 335 | free_action_row(p) | ^ | int mkpar.c:335:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] mkpar.c:346:1: warning: non-void function does not return a value [-Wreturn-type] 346 | } | ^ mkpar.c:348:1: warning: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] 348 | free_parser() | ^ | int mkpar.c:356:1: warning: non-void function does not return a value [-Wreturn-type] 356 | } | ^ 43 warnings generated. gcc -O -DNDEBUG -Dunix -c output.c output.c:23:1: warning: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] 23 | output() | ^ | int output.c:27:3: warning: call to undeclared function 'free_itemsets'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 27 | free_itemsets(); | ^ output.c:28:3: warning: call to undeclared function 'free_shifts'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 28 | free_shifts(); | ^ output.c:29:3: warning: call to undeclared function 'free_reductions'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 29 | free_reductions(); | ^ output.c:30:3: warning: call to undeclared function 'write_section'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 30 | write_section(header); | ^ output.c:32:3: warning: call to undeclared function 'output_transl'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 32 | output_transl(); | ^ output.c:33:3: warning: call to undeclared function 'output_rule_data'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 33 | output_rule_data(); | ^ output.c:34:3: warning: call to undeclared function 'output_yydefred'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 34 | output_yydefred(); | ^ output.c:35:3: warning: call to undeclared function 'output_actions'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 35 | output_actions(); | ^ output.c:36:3: warning: call to undeclared function 'free_parser'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 36 | free_parser(); | ^ output.c:37:3: warning: call to undeclared function 'output_debug'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 37 | output_debug(); | ^ output.c:45:3: warning: call to undeclared function 'output_semantic_actions'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 45 | output_semantic_actions(); | ^ output.c:49:3: warning: call to undeclared function 'output_entries'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 49 | output_entries(); | ^ output.c:51:1: warning: non-void function does not return a value [-Wreturn-type] 51 | } | ^ output.c:54:13: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 54 | static void output_char(n) | ^ output.c:64:13: 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 void output_short(n) | ^ output.c:71:1: warning: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] 71 | output_rule_data() | ^ | int output.c:116:1: warning: non-void function does not return a value [-Wreturn-type] 116 | } | ^ output.c:119:1: warning: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] 119 | output_yydefred() | ^ | int output.c:143:1: warning: non-void function does not return a value [-Wreturn-type] 143 | } | ^ output.c:146:1: warning: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] 146 | output_actions() | ^ | int output.c:150:13: warning: passing arguments to 'allocate' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 150 | froms = NEW2(nvectors, short *); | ^ ./defs.h:145:32: note: expanded from macro 'NEW2' 145 | #define NEW2(n,t) ((t*)allocate((unsigned)((n)*sizeof(t)))) | ^ output.c:151:11: warning: passing arguments to 'allocate' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 151 | tos = NEW2(nvectors, short *); | ^ ./defs.h:145:32: note: expanded from macro 'NEW2' 145 | #define NEW2(n,t) ((t*)allocate((unsigned)((n)*sizeof(t)))) | ^ output.c:152:13: warning: passing arguments to 'allocate' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 152 | tally = NEW2(nvectors, short); | ^ ./defs.h:145:32: note: expanded from macro 'NEW2' 145 | #define NEW2(n,t) ((t*)allocate((unsigned)((n)*sizeof(t)))) | ^ output.c:153:13: warning: passing arguments to 'allocate' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 153 | width = NEW2(nvectors, short); | ^ ./defs.h:145:32: note: expanded from macro 'NEW2' 145 | #define NEW2(n,t) ((t*)allocate((unsigned)((n)*sizeof(t)))) | ^ output.c:155:5: warning: call to undeclared function 'token_actions'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 155 | token_actions(); | ^ output.c:161:5: warning: call to undeclared function 'goto_actions'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 161 | goto_actions(); | ^ output.c:166:5: warning: call to undeclared function 'sort_actions'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 166 | sort_actions(); | ^ output.c:167:5: warning: call to undeclared function 'pack_table'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 167 | pack_table(); | ^ output.c:168:5: warning: call to undeclared function 'output_base'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 168 | output_base(); | ^ output.c:169:5: warning: call to undeclared function 'output_table'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 169 | output_table(); | ^ output.c:170:5: warning: call to undeclared function 'output_check'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 170 | output_check(); | ^ output.c:171:1: warning: non-void function does not return a value [-Wreturn-type] 171 | } | ^ output.c:174:1: warning: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] 174 | token_actions() | ^ | int output.c:182:17: warning: passing arguments to 'allocate' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 182 | actionrow = NEW2(2*ntokens, short); | ^ ./defs.h:145:32: note: expanded from macro 'NEW2' 145 | #define NEW2(n,t) ((t*)allocate((unsigned)((n)*sizeof(t)))) | ^ output.c:215:18: warning: passing arguments to 'allocate' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 215 | froms[i] = r = NEW2(shiftcount, short); | ^ ./defs.h:145:32: note: expanded from macro 'NEW2' 145 | #define NEW2(n,t) ((t*)allocate((unsigned)((n)*sizeof(t)))) | ^ output.c:216:16: warning: passing arguments to 'allocate' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 216 | tos[i] = s = NEW2(shiftcount, short); | ^ ./defs.h:145:32: note: expanded from macro 'NEW2' 145 | #define NEW2(n,t) ((t*)allocate((unsigned)((n)*sizeof(t)))) | ^ output.c:235:26: warning: passing arguments to 'allocate' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 235 | froms[nstates+i] = r = NEW2(reducecount, short); | ^ ./defs.h:145:32: note: expanded from macro 'NEW2' 145 | #define NEW2(n,t) ((t*)allocate((unsigned)((n)*sizeof(t)))) | ^ output.c:236:24: warning: passing arguments to 'allocate' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 236 | tos[nstates+i] = s = NEW2(reducecount, short); | ^ ./defs.h:145:32: note: expanded from macro 'NEW2' 145 | #define NEW2(n,t) ((t*)allocate((unsigned)((n)*sizeof(t)))) | ^ output.c:256:1: warning: non-void function does not return a value [-Wreturn-type] 256 | } | ^ output.c:258:1: warning: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] 258 | goto_actions() | ^ | int output.c:262:19: warning: passing arguments to 'allocate' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 262 | state_count = NEW2(nstates, short); | ^ ./defs.h:145:32: note: expanded from macro 'NEW2' 145 | #define NEW2(n,t) ((t*)allocate((unsigned)((n)*sizeof(t)))) | ^ output.c:264:9: warning: call to undeclared function 'default_goto'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 264 | k = default_goto(start_symbol + 1); | ^ output.c:290:1: warning: non-void function does not return a value [-Wreturn-type] 290 | } | ^ output.c:293:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 293 | default_goto(symbol) | ^ output.c:353:31: warning: passing arguments to 'allocate' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 353 | froms[symno] = sp1 = sp = NEW2(count, short); | ^ ./defs.h:145:32: note: expanded from macro 'NEW2' 145 | #define NEW2(n,t) ((t*)allocate((unsigned)((n)*sizeof(t)))) | ^ output.c:354:24: warning: passing arguments to 'allocate' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 354 | tos[symno] = sp2 = NEW2(count, short); | ^ ./defs.h:145:32: note: expanded from macro 'NEW2' 145 | #define NEW2(n,t) ((t*)allocate((unsigned)((n)*sizeof(t)))) | ^ output.c:369:1: warning: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] 369 | sort_actions() | ^ | int output.c:377:11: warning: passing arguments to 'allocate' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 377 | order = NEW2(nvectors, short); | ^ ./defs.h:145:32: note: expanded from macro 'NEW2' 145 | #define NEW2(n,t) ((t*)allocate((unsigned)((n)*sizeof(t)))) | ^ output.c:401:1: warning: non-void function does not return a value [-Wreturn-type] 401 | } | ^ output.c:404:1: warning: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] 404 | pack_table() | ^ | int output.c:410:12: warning: passing arguments to 'allocate' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 410 | base = NEW2(nvectors, short); | ^ ./defs.h:145:32: note: expanded from macro 'NEW2' 145 | #define NEW2(n,t) ((t*)allocate((unsigned)((n)*sizeof(t)))) | ^ output.c:411:11: warning: passing arguments to 'allocate' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 411 | pos = NEW2(nentries, short); | ^ ./defs.h:145:32: note: expanded from macro 'NEW2' 145 | #define NEW2(n,t) ((t*)allocate((unsigned)((n)*sizeof(t)))) | ^ output.c:414:13: warning: passing arguments to 'allocate' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 414 | table = NEW2(maxtable, short); | ^ ./defs.h:145:32: note: expanded from macro 'NEW2' 145 | #define NEW2(n,t) ((t*)allocate((unsigned)((n)*sizeof(t)))) | ^ output.c:415:13: warning: passing arguments to 'allocate' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 415 | check = NEW2(maxtable, short); | ^ ./defs.h:145:32: note: expanded from macro 'NEW2' 145 | #define NEW2(n,t) ((t*)allocate((unsigned)((n)*sizeof(t)))) | ^ output.c:425:10: warning: call to undeclared function 'matching_vector'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 425 | state = matching_vector(i); | ^ output.c:428:14: warning: call to undeclared function 'pack_vector'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 428 | place = pack_vector(i); | ^ output.c:447:1: warning: non-void function does not return a value [-Wreturn-type] 447 | } | ^ output.c:467:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 467 | matching_vector(vector) | ^ output.c:541:7: warning: call to undeclared function 'fatal'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 541 | fatal("maximum table size exceeded"); | ^ output.c:546:19: warning: call to undeclared function 'no_space'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 546 | if (table == 0) no_space(); | ^ output.c:508:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 508 | pack_vector(vector) | ^ output.c:585:1: warning: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] 585 | output_base() | ^ | int output.c:652:1: warning: non-void function does not return a value [-Wreturn-type] 652 | } | ^ output.c:656:1: warning: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] 656 | output_table() | ^ | int output.c:684:1: warning: non-void function does not return a value [-Wreturn-type] 684 | } | ^ output.c:688:1: warning: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] 688 | output_check() | ^ | int output.c:714:1: warning: non-void function does not return a value [-Wreturn-type] 714 | } | ^ output.c:717:1: warning: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] 717 | output_transl() | ^ | int output.c:728:1: warning: non-void function does not return a value [-Wreturn-type] 728 | } | ^ output.c:738:2: warning: call to undeclared function 'open_error'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 738 | open_error(text_file_name); | ^ output.c:757:1: warning: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] 757 | output_debug() | ^ | int output.c:759:1: warning: non-void function does not return a value [-Wreturn-type] 759 | } | ^ output.c:828:2: warning: call to undeclared function 'open_error'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 828 | open_error(file_name); | ^ output.c:818:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 818 | void copy_file(file, file_name) | ^ output.c:854:1: warning: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] 854 | output_semantic_actions() | ^ | int output.c:857:1: warning: non-void function does not return a value [-Wreturn-type] 857 | } | ^ output.c:859:1: warning: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] 859 | output_entries() | ^ | int output.c:862:1: warning: non-void function does not return a value [-Wreturn-type] 862 | } | ^ output.c:864:1: warning: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] 864 | free_itemsets() | ^ | int output.c:874:1: warning: non-void function does not return a value [-Wreturn-type] 874 | } | ^ output.c:877:1: warning: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] 877 | free_shifts() | ^ | int output.c:887:1: warning: non-void function does not return a value [-Wreturn-type] 887 | } | ^ output.c:891:1: warning: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] 891 | free_reductions() | ^ | int output.c:901:1: warning: non-void function does not return a value [-Wreturn-type] 901 | } | ^ 85 warnings generated. gcc -O -DNDEBUG -Dunix -c reader.c reader.c:37:1: warning: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] 37 | cachec(c) | ^ | int reader.c:45:18: warning: call to undeclared function 'no_space'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 45 | if (cache == 0) no_space(); | ^ reader.c:37:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 37 | cachec(c) | ^ reader.c:49:1: warning: non-void function does not return a value [-Wreturn-type] 49 | } | ^ reader.c:71:17: warning: call to undeclared function 'no_space'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 71 | if (line == 0) no_space(); | ^ reader.c:84:22: warning: call to undeclared function 'no_space'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 84 | if (line == 0) no_space(); | ^ reader.c:107:17: warning: call to undeclared function 'no_space'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 107 | if (p == 0) no_space(); | ^ reader.c:137:3: warning: call to undeclared function 'unterminated_comment'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 137 | unterminated_comment(st_lineno, st_line, st_cptr); | ^ reader.c:266:5: warning: call to undeclared function 'syntax_error'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 266 | syntax_error(lineno, line, t_cptr); | ^ reader.c:268:1: warning: non-void function does not return a value in all control paths [-Wreturn-type] 268 | } | ^ reader.c:277:19: warning: call to undeclared function 'unexpected_EOF'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 277 | if (c == EOF) unexpected_EOF(); | ^ reader.c:278:19: warning: call to undeclared function 'syntax_error'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 278 | if (c != '"') syntax_error(lineno, line, cptr); | ^ reader.c:314:6: warning: call to undeclared function 'unterminated_text'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 314 | unterminated_text(t_lineno, t_line, t_cptr); | ^ reader.c:327:2: warning: call to undeclared function 'unterminated_text'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 327 | unterminated_text(t_lineno, t_line, t_cptr); | ^ reader.c:349:7: warning: call to undeclared function 'unterminated_string'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 349 | unterminated_string(s_lineno, s_line, s_cptr); | ^ reader.c:391:4: warning: call to undeclared function 'unterminated_comment'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 391 | unterminated_comment(c_lineno, c_line, c_cptr); | ^ reader.c:426:20: warning: call to undeclared function 'over_unionized'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 426 | if (unionized) over_unionized(cptr - 6); | ^ reader.c:447:17: warning: call to undeclared function 'unterminated_union'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 447 | if (line == 0) unterminated_union(u_lineno, u_line, u_cptr); | ^ reader.c:482:7: warning: call to undeclared function 'unterminated_string'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 482 | unterminated_string(s_lineno, s_line, s_cptr); | ^ reader.c:526:4: warning: call to undeclared function 'unterminated_comment'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 526 | unterminated_comment(c_lineno, c_line, c_cptr); | ^ reader.c:539:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 539 | hexval(c) | ^ reader.c:570:17: warning: call to undeclared function 'unterminated_string'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 570 | if (c == '\n') unterminated_string(s_lineno, s_line, s_cptr); | ^ reader.c:597:20: warning: call to undeclared function 'illegal_character'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 597 | if (n > MAXCHAR) illegal_character(c_cptr); | ^ reader.c:633:17: warning: call to undeclared function 'no_space'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 633 | if (s == 0) no_space(); | ^ reader.c:681:16: warning: passing arguments to 'lookup' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 681 | bp = lookup(cache); | ^ reader.c:692:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 692 | is_reserved(name) | ^ reader.c:723:29: warning: call to undeclared function 'used_reserved'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 723 | if (is_reserved(cache)) used_reserved(cache); | ^ reader.c:725:19: warning: passing arguments to 'lookup' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 725 | return (lookup(cache)); | ^ reader.c:756:21: warning: call to undeclared function 'unexpected_EOF'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 756 | if (c == EOF) unexpected_EOF(); | ^ reader.c:775:22: warning: call to undeclared function 'no_space'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 775 | if (tag_table == 0) no_space(); | ^ reader.c:779:18: warning: call to undeclared function 'no_space'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 779 | if (s == 0) no_space(); | ^ reader.c:798:19: warning: call to undeclared function 'unexpected_EOF'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 798 | if (c == EOF) unexpected_EOF(); | ^ reader.c:815:18: warning: call to undeclared function 'tokenized_start'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 815 | if (bp == goal) tokenized_start(bp->name); | ^ reader.c:821:3: warning: call to undeclared function 'retyped_warning'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 821 | retyped_warning(bp->name); | ^ reader.c:832:3: warning: call to undeclared function 'reprec_warning'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 832 | reprec_warning(bp->name); | ^ reader.c:845:3: warning: call to undeclared function 'revalued_warning'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 845 | revalued_warning(bp->name); | ^ reader.c:861:19: warning: call to undeclared function 'unexpected_EOF'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 861 | if (c == EOF) unexpected_EOF(); | ^ reader.c:862:19: warning: call to undeclared function 'syntax_error'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 862 | if (c != '<') syntax_error(lineno, line, cptr); | ^ reader.c:876:6: warning: call to undeclared function 'retyped_warning'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 876 | retyped_warning(bp->name); | ^ reader.c:894:2: warning: call to undeclared function 'terminal_start'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 894 | terminal_start(bp->name); | ^ reader.c:897:9: warning: call to undeclared function 'too_many_entries'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 897 | too_many_entries(); | ^ reader.c:908:21: warning: call to undeclared function 'no_space'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 908 | if (cache == 0) no_space(); | ^ reader.c:913:16: warning: call to undeclared function 'unexpected_EOF'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 913 | if (c == EOF) unexpected_EOF(); | ^ reader.c:914:16: warning: call to undeclared function 'syntax_error'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 914 | if (c != '%') syntax_error(lineno, line, cptr); | ^ reader.c:950:1: warning: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] 950 | output_token_type() | ^ | int reader.c:967:1: warning: non-void function does not return a value [-Wreturn-type] 967 | } | ^ reader.c:969:1: warning: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] 969 | initialize_grammar() | ^ | int reader.c:974:21: warning: call to undeclared function 'no_space'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 974 | if (pitem == 0) no_space(); | ^ reader.c:997:1: warning: non-void function does not return a value [-Wreturn-type] 997 | } | ^ reader.c:1000:1: warning: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] 1000 | expand_items() | ^ | int reader.c:1004:21: warning: call to undeclared function 'no_space'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 1004 | if (pitem == 0) no_space(); | ^ reader.c:1005:1: warning: non-void function does not return a value [-Wreturn-type] 1005 | } | ^ reader.c:1008:1: warning: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] 1008 | expand_rules() | ^ | int reader.c:1012:20: warning: call to undeclared function 'no_space'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 1012 | if (plhs == 0) no_space(); | ^ reader.c:1017:1: warning: non-void function does not return a value [-Wreturn-type] 1017 | } | ^ reader.c:1020:1: warning: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] 1020 | advance_to_start() | ^ | int reader.c:1035:6: warning: call to undeclared function 'no_grammar'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 1035 | no_grammar(); | ^ reader.c:1046:6: warning: call to undeclared function 'syntax_error'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 1046 | syntax_error(lineno, line, s_cptr); | ^ reader.c:1052:2: warning: call to undeclared function 'syntax_error'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 1052 | syntax_error(lineno, line, cptr); | ^ reader.c:1057:6: warning: call to undeclared function 'terminal_start'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 1057 | terminal_start(bp->name); | ^ reader.c:1063:19: warning: call to undeclared function 'unexpected_EOF'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 1063 | if (c == EOF) unexpected_EOF(); | ^ reader.c:1065:5: warning: call to undeclared function 'start_rule'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 1065 | start_rule(bp, s_lineno); | ^ reader.c:1067:1: warning: non-void function does not return a value [-Wreturn-type] 1067 | } | ^ reader.c:1070:1: warning: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] 1070 | start_rule(bp, s_lineno) | ^ | int reader.c:1075:2: warning: call to undeclared function 'terminal_lhs'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 1075 | terminal_lhs(s_lineno); | ^ reader.c:1070:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1070 | start_rule(bp, s_lineno) | ^ reader.c:1082:1: warning: non-void function does not return a value [-Wreturn-type] 1082 | } | ^ reader.c:1085:1: warning: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] 1085 | end_rule() | ^ | int reader.c:1087:27: warning: call to undeclared function 'default_action_error'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 1087 | if (!last_was_action) default_action_error(); | ^ reader.c:1094:1: warning: non-void function does not return a value [-Wreturn-type] 1094 | } | ^ reader.c:1097:1: warning: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] 1097 | insert_empty_rule() | ^ | int reader.c:1103:21: warning: passing arguments to 'make_bucket' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1103 | bp = make_bucket(cache); | ^ reader.c:1113:19: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] 1113 | while (bpp[0] = bpp[-1]) --bpp; | ~~~~~~~^~~~~~~~~ reader.c:1113:19: note: place parentheses around the assignment to silence this warning 1113 | while (bpp[0] = bpp[-1]) --bpp; | ^ | ( ) reader.c:1113:19: note: use '==' to turn this assignment into an equality comparison 1113 | while (bpp[0] = bpp[-1]) --bpp; | ^ | == reader.c:1123:1: warning: non-void function does not return a value [-Wreturn-type] 1123 | } | ^ reader.c:1197:15: warning: call to undeclared function 'unknown_rhs'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 1197 | unknown_rhs(i); | ^ reader.c:1203:17: warning: call to undeclared function 'illegal_token_ref'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 1203 | illegal_token_ref(i, item->name); | ^ reader.c:1242:2: warning: call to undeclared function 'unterminated_action'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 1242 | unterminated_action(a_lineno, a_line, a_cptr); | ^ reader.c:1270:7: warning: call to undeclared function 'unterminated_string'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 1270 | unterminated_string(s_lineno, s_line, s_cptr); | ^ reader.c:1310:4: warning: call to undeclared function 'unterminated_comment'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 1310 | unterminated_comment(c_lineno, c_line, c_cptr); | ^ reader.c:1344:2: warning: call to undeclared function 'syntax_error'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 1344 | syntax_error(lineno, line, cptr); | ^ reader.c:1358:2: warning: call to undeclared function 'prec_redeclared'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 1358 | prec_redeclared(); | ^ reader.c:1366:1: warning: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] 1366 | read_grammar() | ^ | int reader.c:1393:6: warning: call to undeclared function 'syntax_error'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 1393 | syntax_error(lineno, line, cptr); | ^ reader.c:1396:1: warning: non-void function does not return a value [-Wreturn-type] 1396 | } | ^ reader.c:1414:1: warning: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] 1414 | pack_names() | ^ | int reader.c:1423:25: warning: call to undeclared function 'no_space'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 1423 | if (name_pool == 0) no_space(); | ^ reader.c:1432:14: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] 1432 | while (*t++ = *s++) continue; | ~~~~~^~~~~~ reader.c:1432:14: note: place parentheses around the assignment to silence this warning 1432 | while (*t++ = *s++) continue; | ^ | ( ) reader.c:1432:14: note: use '==' to turn this assignment into an equality comparison 1432 | while (*t++ = *s++) continue; | ^ | == reader.c:1436:1: warning: non-void function does not return a value [-Wreturn-type] 1436 | } | ^ reader.c:1439:1: warning: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] 1439 | check_symbols() | ^ | int reader.c:1444:2: warning: call to undeclared function 'undefined_goal'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 1444 | undefined_goal(goal->name); | ^ reader.c:1450:6: warning: call to undeclared function 'undefined_symbol_warning'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 1450 | undefined_symbol_warning(bp->name); | ^ reader.c:1454:1: warning: non-void function does not return a value [-Wreturn-type] 1454 | } | ^ reader.c:1457:1: warning: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] 1457 | pack_symbols() | ^ | int reader.c:1474:27: warning: call to undeclared function 'no_space'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 1474 | if (symbol_name == 0) no_space(); | ^ reader.c:1590:1: warning: non-void function does not return a value [-Wreturn-type] 1590 | } | ^ reader.c:1593:1: warning: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] 1593 | make_goal() | ^ | int reader.c:1599:16: warning: passing arguments to 'lookup' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1599 | goal = lookup("%entry%"); | ^ reader.c:1609:18: warning: passing arguments to 'lookup' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1609 | bc = lookup(name); | ^ reader.c:1618:9: warning: call to undeclared function 'entry_without_type'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 1618 | entry_without_type(bp->name); | ^ reader.c:1637:1: warning: non-void function does not return a value [-Wreturn-type] 1637 | } | ^ reader.c:1639:1: warning: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] 1639 | pack_grammar() | ^ | int reader.c:1645:21: warning: call to undeclared function 'no_space'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 1645 | if (ritem == 0) no_space(); | ^ reader.c:1695:1: warning: non-void function does not return a value [-Wreturn-type] 1695 | } | ^ reader.c:1734:1: warning: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] 1734 | reader() | ^ | int reader.c:1736:5: warning: call to undeclared function 'create_symbol_table'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 1736 | create_symbol_table(); | ^ reader.c:1741:5: warning: call to undeclared function 'free_symbol_table'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 1741 | free_symbol_table(); | ^ reader.c:1747:5: warning: call to undeclared function 'free_symbols'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 1747 | free_symbols(); | ^ reader.c:1749:1: warning: non-void function does not return a value [-Wreturn-type] 1749 | } | ^ 108 warnings generated. gcc -O -DNDEBUG -Dunix -c skeleton.c skeleton.c:28:1: warning: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] 28 | write_section(section) | ^ | int skeleton.c:28:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] skeleton.c:40:1: warning: non-void function does not return a value [-Wreturn-type] 40 | } | ^ 3 warnings generated. gcc -O -DNDEBUG -Dunix -c symtab.c symtab.c:19:14: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] 19 | while (c = *++s) | ~~^~~~~~ symtab.c:19:14: note: place parentheses around the assignment to silence this warning 19 | while (c = *++s) | ^ | ( ) symtab.c:19:14: note: use '==' to turn this assignment into an equality comparison 19 | while (c = *++s) | ^ | == symtab.c:10:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 10 | hash(name) | ^ symtab.c:34:18: warning: call to undeclared function 'no_space'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 34 | if (bp == 0) no_space(); | ^ symtab.c:27:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 27 | make_bucket(name) | ^ In file included from symtab.c:1: ./defs.h:323:16: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 323 | extern bucket *make_bucket(); | ^ symtab.c:56:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 56 | lookup(name) | ^ In file included from symtab.c:1: ./defs.h:322:16: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 322 | extern bucket *lookup(); | ^ symtab.c:79:1: warning: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] 79 | create_symbol_table() | ^ | int symtab.c:85:28: warning: call to undeclared function 'no_space'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 85 | if (symbol_table == 0) no_space(); | ^ symtab.c:96:1: warning: non-void function does not return a value [-Wreturn-type] 96 | } | ^ symtab.c:99:1: warning: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] 99 | free_symbol_table() | ^ | int symtab.c:103:1: warning: non-void function does not return a value [-Wreturn-type] 103 | } | ^ symtab.c:106:1: warning: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] 106 | free_symbols() | ^ | int symtab.c:115:1: warning: non-void function does not return a value [-Wreturn-type] 115 | } | ^ 14 warnings generated. gcc -O -DNDEBUG -Dunix -c verbose.c verbose.c:14:26: warning: call to undeclared function 'no_space'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 14 | if (null_rules == 0) no_space(); | ^ verbose.c:17:2: warning: call to undeclared function 'print_state'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 17 | print_state(i); | ^ verbose.c:21:2: warning: call to undeclared function 'log_unused'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 21 | log_unused(); | ^ verbose.c:23:2: warning: call to undeclared function 'log_conflicts'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 23 | log_conflicts(); | ^ verbose.c:31:1: warning: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] 31 | log_unused() | ^ | int verbose.c:47:1: warning: non-void function does not return a value [-Wreturn-type] 47 | } | ^ verbose.c:50:1: warning: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] 50 | log_conflicts() | ^ | int verbose.c:75:1: warning: non-void function does not return a value [-Wreturn-type] 75 | } | ^ verbose.c:78:1: warning: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] 78 | print_state(state) | ^ | int verbose.c:84:2: warning: call to undeclared function 'print_conflicts'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 84 | print_conflicts(state); | ^ verbose.c:86:5: warning: call to undeclared function 'print_core'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 86 | print_core(state); | ^ verbose.c:87:5: warning: call to undeclared function 'print_nulls'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 87 | print_nulls(state); | ^ verbose.c:88:5: warning: call to undeclared function 'print_actions'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 88 | print_actions(state); | ^ verbose.c:78:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 78 | print_state(state) | ^ verbose.c:89:1: warning: non-void function does not return a value [-Wreturn-type] 89 | } | ^ verbose.c:92:1: warning: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] 92 | print_conflicts(state) | ^ | int verbose.c:92:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] verbose.c:137:1: warning: non-void function does not return a value [-Wreturn-type] 137 | } | ^ verbose.c:140:1: warning: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] 140 | print_core(state) | ^ | int verbose.c:140:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] verbose.c:173:1: warning: non-void function does not return a value [-Wreturn-type] 173 | } | ^ verbose.c:176:1: warning: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] 176 | print_nulls(state) | ^ | int verbose.c:176:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] verbose.c:217:1: warning: non-void function does not return a value [-Wreturn-type] 217 | } | ^ verbose.c:220:1: warning: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] 220 | print_actions(stateno) | ^ | int verbose.c:233:2: warning: call to undeclared function 'print_shifts'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 233 | print_shifts(p); | ^ verbose.c:234:2: warning: call to undeclared function 'print_reductions'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 234 | print_reductions(p, defred[stateno]); | ^ verbose.c:242:6: warning: call to undeclared function 'print_gotos'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 242 | print_gotos(stateno); | ^ verbose.c:220:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 220 | print_actions(stateno) | ^ verbose.c:244:1: warning: non-void function does not return a value [-Wreturn-type] 244 | } | ^ verbose.c:247:1: warning: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] 247 | print_shifts(p) | ^ | int verbose.c:247:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] verbose.c:269:1: warning: non-void function does not return a value [-Wreturn-type] 269 | } | ^ verbose.c:272:1: warning: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] 272 | print_reductions(p, defred) | ^ | int verbose.c:272:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] verbose.c:307:1: warning: non-void function does not return a value [-Wreturn-type] 307 | } | ^ verbose.c:310:1: warning: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] 310 | print_gotos(stateno) | ^ | int verbose.c:310:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] verbose.c:328:1: warning: non-void function does not return a value [-Wreturn-type] 328 | } | ^ 39 warnings generated. gcc -O -DNDEBUG -Dunix -c warshall.c warshall.c:3:1: warning: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] 3 | transitive_closure(R, n) | ^ | int warshall.c:3:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] warshall.c:54:1: warning: non-void function does not return a value [-Wreturn-type] 54 | } | ^ warshall.c:56:1: warning: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] 56 | reflexive_transitive_closure(R, n) | ^ | int warshall.c:56:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] warshall.c:84:1: warning: non-void function does not return a value [-Wreturn-type] 84 | } | ^ 6 warnings generated. gcc -O -DNDEBUG -Dunix -o camlyacc closure.o error.o lalr.o lr0.o main.o mkpar.o output.o reader.o skeleton.o symtab.o verbose.o warshall.o cp yacc/camlyacc . cd lib; make CPP="cpp -P -C -Dunix" all ../camlrun ../camlcomp -stdlib . -O none -g -W arg.mli ../camlrun ../camlcomp -stdlib . -O none -g -W bool.mli ../camlrun ../camlcomp -stdlib . -O none -g -W char.mli ../camlrun ../camlcomp -stdlib . -O none -g -W string.mli ../camlrun ../camlcomp -stdlib . -O none -g -W vect.mli ../camlrun ../camlcomp -stdlib . -O none -g -W eq.mli ../camlrun ../camlcomp -stdlib . -O none -g -W exc.mli ../camlrun ../camlcomp -stdlib . -O none -g -W fchar.mli ../camlrun ../camlcomp -stdlib . -O none -g -W sys.mli ../camlrun ../camlcomp -stdlib . -O none -g -W filename.mli ../camlrun ../camlcomp -stdlib . -O none -g -W float.mli ../camlrun ../camlcomp -stdlib . -O none -g -W fstring.mli ../camlrun ../camlcomp -stdlib . -O none -g -W fvect.mli ../camlrun ../camlcomp -stdlib . -O none -g -W hashtbl.mli ../camlrun ../camlcomp -stdlib . -O none -g -W int.mli ../camlrun ../camlcomp -stdlib . -O none -g -W io.mli ../camlrun ../camlcomp -stdlib . -O none -g -W obj.mli ../camlrun ../camlcomp -stdlib . -O none -g -W lexing.mli ../camlrun ../camlcomp -stdlib . -O none -g -W list.mli ../camlrun ../camlcomp -stdlib . -O none -g -W pair.mli ../camlrun ../camlcomp -stdlib . -O none -g -W parsing.mli ../camlrun ../camlcomp -stdlib . -O none -g -W printexc.mli ../camlrun ../camlcomp -stdlib . -O none -g -W ref.mli ../camlrun ../camlcomp -stdlib . -O none -g -W sort.mli ../camlrun ../camlcomp -stdlib . -O none -g -W printf.mli ../camlrun ../camlcomp -stdlib . -O none -g -W stream.mli ../camlrun ../camlcomp -stdlib . -O none -g -W stack.mli ../camlrun ../camlcomp -stdlib . -O none -g -W queue.mli ../camlrun ../camlcomp -stdlib . -O none -g -W random.mli ../camlrun ../camlcomp -stdlib . -O none -g -W genlex.mli ../camlrun ../camlcomp -stdlib . -O none -g -W baltree.mli ../camlrun ../camlcomp -stdlib . -O none -g -W set.mli ../camlrun ../camlcomp -stdlib . -O none -g -W map.mli ../camlrun ../camlcomp -stdlib . -O none -g -W gc.mli ../camlrun ../camlcomp -stdlib . -O none -g -W format.mli ../camlrun ../camlcomp -stdlib . -O none -g -W bool.ml ../camlrun ../camlcomp -stdlib . -O none -g -W eq.ml ../camlrun ../camlcomp -stdlib . -O none -g -W exc.ml ../camlrun ../camlcomp -stdlib . -O none -g -W int.ml ../camlrun ../camlcomp -stdlib . -O none -g -W fstring.ml ../camlrun ../camlcomp -stdlib . -O none -g -W string.ml ../camlrun ../camlcomp -stdlib . -O none -g -W fchar.ml ../camlrun ../camlcomp -stdlib . -O none -g -W char.ml ../camlrun ../camlcomp -stdlib . -O none -g -W float.ml ../camlrun ../camlcomp -stdlib . -O none -g -W list.ml ../camlrun ../camlcomp -stdlib . -O none -g -W fvect.ml ../camlrun ../camlcomp -stdlib . -O none -g -W vect.ml ../camlrun ../camlcomp -stdlib . -O none -g -W io.ml ../camlrun ../camlcomp -stdlib . -O none -g -W pair.ml ../camlrun ../camlcomp -stdlib . -O none -g -W arg.ml cpp -P -C -Dunix filename.mlp > filename.ml exec failed *** Error code 255 Stop. make[1]: stopped making "all" in /var/tmp/work/lang/caml-light/work/cl74/src/lib *** Error code 1 Stop. bmake: stopped making "world" in /var/tmp/work/lang/caml-light/work/cl74/src *** Error code 1 Stop. bmake[1]: stopped making "all" in /Volumes/data/jenkins/workspace/pkgsrc-macos-trunk-arm64/lang/caml-light *** Error code 1 Stop. bmake: stopped making "all" in /Volumes/data/jenkins/workspace/pkgsrc-macos-trunk-arm64/lang/caml-light