=> Bootstrap dependency digest>=20010302: found digest-20190127 ===> Skipping vulnerability checks. WARNING: No /opt/pkg/pkgdb/pkg-vulnerabilities file found. WARNING: To fix run: `/opt/pkg/sbin/pkg_admin -K /opt/pkg/pkgdb fetch-pkg-vulnerabilities'. ===> Building for realboy-0.2.2nb1 --- all --- /opt/pkg/bin/bmake all-recursive --- all-recursive --- Making all in src --- gboy_mem.o --- --- gboy_sgb.o --- --- gboy_conf.o --- --- gboy_keys.o --- --- gboy_events.o --- --- gboy_frame.o --- --- gboy_interp.o --- --- gboy_ioctrl.o --- --- gboy_mem.o --- clang -DHAVE_CONFIG_H -I. -I.. -I/opt/pkg/include -Wno-unused-result -O2 -I/opt/pkg/include -c gboy_mem.c --- gboy_sgb.o --- clang -DHAVE_CONFIG_H -I. -I.. -I/opt/pkg/include -Wno-unused-result -O2 -I/opt/pkg/include -c gboy_sgb.c --- gboy_conf.o --- clang -DHAVE_CONFIG_H -I. -I.. -I/opt/pkg/include -Wno-unused-result -O2 -I/opt/pkg/include -c gboy_conf.c --- gboy_keys.o --- clang -DHAVE_CONFIG_H -I. -I.. -I/opt/pkg/include -Wno-unused-result -O2 -I/opt/pkg/include -c gboy_keys.c --- gboy_frame.o --- clang -DHAVE_CONFIG_H -I. -I.. -I/opt/pkg/include -Wno-unused-result -O2 -I/opt/pkg/include -c gboy_frame.c --- gboy_events.o --- clang -DHAVE_CONFIG_H -I. -I.. -I/opt/pkg/include -Wno-unused-result -O2 -I/opt/pkg/include -c gboy_events.c --- gboy_ioctrl.o --- clang -DHAVE_CONFIG_H -I. -I.. -I/opt/pkg/include -Wno-unused-result -O2 -I/opt/pkg/include -c gboy_ioctrl.c --- gboy_interp.o --- clang -DHAVE_CONFIG_H -I. -I.. -I/opt/pkg/include -Wno-unused-result -O2 -I/opt/pkg/include -c gboy_interp.c gboy_interp.c:191:14: warning: unsequenced modification and access to 'ptr_buf' [-Wunsequenced] *ptr_buf-- = *(ptr_buf-1); ^ ~~~~~~~ gboy_interp.c:255:16: warning: unsequenced modification and access to 'ptr_buf' [-Wunsequenced] *ptr_buf++ = *(ptr_buf+1), putchar(*ptr_buf); ^ ~~~~~~~ --- gboy_joy.o --- clang -DHAVE_CONFIG_H -I. -I.. -I/opt/pkg/include -Wno-unused-result -O2 -I/opt/pkg/include -c gboy_joy.c --- gboy_lcd.o --- --- gboy_mbc1.o --- --- gboy_lcd.o --- clang -DHAVE_CONFIG_H -I. -I.. -I/opt/pkg/include -Wno-unused-result -O2 -I/opt/pkg/include -c gboy_lcd.c --- gboy_mbc1.o --- clang -DHAVE_CONFIG_H -I. -I.. -I/opt/pkg/include -Wno-unused-result -O2 -I/opt/pkg/include -c gboy_mbc1.c --- gboy_mbc2.o --- clang -DHAVE_CONFIG_H -I. -I.. -I/opt/pkg/include -Wno-unused-result -O2 -I/opt/pkg/include -c gboy_mbc2.c --- gboy_mbc3.o --- --- gboy_interp.o --- 2 warnings generated. --- gboy_mbc5.o --- --- gboy_mbc3.o --- clang -DHAVE_CONFIG_H -I. -I.. -I/opt/pkg/include -Wno-unused-result -O2 -I/opt/pkg/include -c gboy_mbc3.c --- gboy_mbc5.o --- clang -DHAVE_CONFIG_H -I. -I.. -I/opt/pkg/include -Wno-unused-result -O2 -I/opt/pkg/include -c gboy_mbc5.c --- gboy_mbc.o --- clang -DHAVE_CONFIG_H -I. -I.. -I/opt/pkg/include -Wno-unused-result -O2 -I/opt/pkg/include -c gboy_mbc.c --- gboy_parse.o --- clang -DHAVE_CONFIG_H -I. -I.. -I/opt/pkg/include -Wno-unused-result -O2 -I/opt/pkg/include -c gboy_parse.c --- gboy_sound.o --- --- gboy_video.o --- --- gboy_sound.o --- clang -DHAVE_CONFIG_H -I. -I.. -I/opt/pkg/include -Wno-unused-result -O2 -I/opt/pkg/include -c gboy_sound.c --- gboy_video.o --- clang -DHAVE_CONFIG_H -I. -I.. -I/opt/pkg/include -Wno-unused-result -O2 -I/opt/pkg/include -c gboy_video.c --- gboy_vm.o --- --- globals.o --- --- gboy_vm.o --- clang -DHAVE_CONFIG_H -I. -I.. -I/opt/pkg/include -Wno-unused-result -O2 -I/opt/pkg/include -c gboy_vm.c --- globals.o --- clang -DHAVE_CONFIG_H -I. -I.. -I/opt/pkg/include -Wno-unused-result -O2 -I/opt/pkg/include -c globals.c --- gboy_utils.o --- clang -DHAVE_CONFIG_H -I. -I.. -I/opt/pkg/include -Wno-unused-result -O2 -I/opt/pkg/include -c gboy_utils.c --- gboy_file.o --- clang -DHAVE_CONFIG_H -I. -I.. -I/opt/pkg/include -Wno-unused-result -O2 -I/opt/pkg/include -c gboy_file.c --- main.o --- --- SDL_rotozoom.o --- --- main.o --- clang -DHAVE_CONFIG_H -I. -I.. -I/opt/pkg/include -Wno-unused-result -O2 -I/opt/pkg/include -c main.c --- SDL_rotozoom.o --- clang -DHAVE_CONFIG_H -I. -I.. -I/opt/pkg/include -Wno-unused-result -O2 -I/opt/pkg/include -c SDL_rotozoom.c --- gddb_main.o --- clang -DHAVE_CONFIG_H -I. -I.. -I/opt/pkg/include -Wno-unused-result -O2 -I/opt/pkg/include -c gddb_main.c --- gboy_vm.o --- gboy_vm.c:124:3: warning: array index 6 is past the end of the array (which contains 6 elements) [-Warray-bounds] regs_sets.regs[HL].UWord = 0x000d; ^ ~~ ./gboy_vm.h:42:2: note: array 'regs' declared here union regs { ^ gboy_vm.c:130:3: warning: array index 6 is past the end of the array (which contains 6 elements) [-Warray-bounds] regs_sets.regs[HL].UWord = 0x014d; ^ ~~ ./gboy_vm.h:42:2: note: array 'regs' declared here union regs { ^ gboy_vm.c:132:2: warning: array index 8 is past the end of the array (which contains 6 elements) [-Warray-bounds] regs_sets.regs[SP].UWord = 0xfffe; ^ ~~ ./gboy_vm.h:42:2: note: array 'regs' declared here union regs { ^ gboy_vm.c:133:2: warning: array index 10 is past the end of the array (which contains 6 elements) [-Warray-bounds] regs_sets.regs[PC].UWord = 0x0100; ^ ~~ ./gboy_vm.h:42:2: note: array 'regs' declared here union regs { ^ --- gddb_funcs.o --- clang -DHAVE_CONFIG_H -I. -I.. -I/opt/pkg/include -Wno-unused-result -O2 -I/opt/pkg/include -c gddb_funcs.c --- gboy_cpu.o --- clang -DHAVE_CONFIG_H -I. -I.. -I/opt/pkg/include -Wno-unused-result -O2 -I/opt/pkg/include -c gboy_cpu.c --- gboy_vm.o --- 4 warnings generated. --- gddb_main.o --- gddb_main.c:83:7: warning: array index 10 is past the end of the array (which contains 6 elements) [-Warray-bounds] if (regs_sets.regs[10].UWord == (Uint16)gddb_contil) ^ ~~ gddb_main.c:36:2: note: array 'regs' declared here union regs { ^ 1 warning generated. --- gddb_funcs.o --- gddb_funcs.c:351:17: warning: array index 10 is past the end of the array (which contains 10 elements) [-Warray-bounds] long pc_temp = regs_sets.regs[PC].UWord; ^ ~~ gddb_funcs.c:42:2: note: array 'regs' declared here union regs { ^ --- gboy_cpu.o --- gboy_cpu.c:65:2: warning: array index 10 is past the end of the array (which contains 10 elements) [-Warray-bounds] regs_sets.regs[PC].UWord+=2; ^ ~~ ./gboy_cpu.h:134:2: note: array 'regs' declared here union regs { ^ gboy_cpu.c:77:2: warning: array index 10 is past the end of the array (which contains 10 elements) [-Warray-bounds] regs_sets.regs[PC].UWord++; ^ ~~ ./gboy_cpu.h:134:2: note: array 'regs' declared here union regs { ^ gboy_cpu.c:96:2: warning: array index 10 is past the end of the array (which contains 10 elements) [-Warray-bounds] regs_sets.regs[PC].UWord += 2; ^ ~~ ./gboy_cpu.h:134:2: note: array 'regs' declared here union regs { ^ gboy_cpu.c:108:2: warning: array index 10 is past the end of the array (which contains 10 elements) [-Warray-bounds] regs_sets.regs[PC].UWord++; ^ ~~ ./gboy_cpu.h:134:2: note: array 'regs' declared here union regs { ^ gboy_cpu.c:121:2: warning: array index 10 is past the end of the array (which contains 10 elements) [-Warray-bounds] regs_sets.regs[PC].UWord += 3; ^ ~~ ./gboy_cpu.h:134:2: note: array 'regs' declared here union regs { ^ gboy_cpu.c:138:5: warning: array index 10 is past the end of the array (which contains 10 elements) [-Warray-bounds] regs_sets.regs[PC].UWord += 2; ^ ~~ ./gboy_cpu.h:134:2: note: array 'regs' declared here union regs { ^ gboy_cpu.c:143:5: warning: array index 10 is past the end of the array (which contains 10 elements) [-Warray-bounds] regs_sets.regs[PC].UWord += 3; ^ ~~ ./gboy_cpu.h:134:2: note: array 'regs' declared here union regs { ^ gboy_cpu.c:176:2: warning: array index 10 is past the end of the array (which contains 10 elements) [-Warray-bounds] regs_sets.regs[PC].UWord += 3; ^ ~~ ./gboy_cpu.h:134:2: note: array 'regs' declared here union regs { ^ gboy_cpu.c:193:2: warning: array index 10 is past the end of the array (which contains 10 elements) [-Warray-bounds] regs_sets.regs[PC].UWord++; ^ ~~ ./gboy_cpu.h:134:2: note: array 'regs' declared here union regs { ^ gboy_cpu.c:210:2: warning: array index 10 is past the end of the array (which contains 10 elements) [-Warray-bounds] regs_sets.regs[PC].UWord++; ^ ~~ ./gboy_cpu.h:134:2: note: array 'regs' declared here union regs { ^ gboy_cpu.c:227:2: warning: array index 10 is past the end of the array (which contains 10 elements) [-Warray-bounds] regs_sets.regs[PC].UWord++; ^ ~~ ./gboy_cpu.h:134:2: note: array 'regs' declared here union regs { ^ gboy_cpu.c:245:2: warning: array index 10 is past the end of the array (which contains 10 elements) [-Warray-bounds] regs_sets.regs[PC].UWord++; ^ ~~ ./gboy_cpu.h:134:2: note: array 'regs' declared here union regs { ^ gboy_cpu.c:262:2: warning: array index 10 is past the end of the array (which contains 10 elements) [-Warray-bounds] regs_sets.regs[PC].UWord++; ^ ~~ ./gboy_cpu.h:134:2: note: array 'regs' declared here union regs { ^ gboy_cpu.c:280:2: warning: array index 10 is past the end of the array (which contains 10 elements) [-Warray-bounds] regs_sets.regs[PC].UWord++; ^ ~~ ./gboy_cpu.h:134:2: note: array 'regs' declared here union regs { ^ gboy_cpu.c:297:2: warning: array index 10 is past the end of the array (which contains 10 elements) [-Warray-bounds] regs_sets.regs[PC].UWord+=3; ^ ~~ ./gboy_cpu.h:134:2: note: array 'regs' declared here union regs { ^ gboy_cpu.c:314:2: warning: array index 10 is past the end of the array (which contains 10 elements) [-Warray-bounds] regs_sets.regs[PC].UWord++; ^ ~~ ./gboy_cpu.h:134:2: note: array 'regs' declared here union regs { ^ gboy_cpu.c:331:2: warning: array index 10 is past the end of the array (which contains 10 elements) [-Warray-bounds] regs_sets.regs[PC].UWord+=2; ^ ~~ ./gboy_cpu.h:134:2: note: array 'regs' declared here union regs { ^ gboy_cpu.c:344:2: warning: array index 10 is past the end of the array (which contains 10 elements) [-Warray-bounds] regs_sets.regs[PC].UWord++; ^ ~~ ./gboy_cpu.h:134:2: note: array 'regs' declared here union regs { ^ gboy_cpu.c:356:2: warning: array index 10 is past the end of the array (which contains 10 elements) [-Warray-bounds] regs_sets.regs[PC].UWord+=2; ^ ~~ ./gboy_cpu.h:134:2: note: array 'regs' declared here union regs { ^ gboy_cpu.c:377:2: warning: array index 10 is past the end of the array (which contains 10 elements) [-Warray-bounds] regs_sets.regs[PC].UWord++; ^ ~~ ./gboy_cpu.h:134:2: note: array 'regs' declared here union regs { ^ gboy_cpu.c:397:2: warning: array index 10 is past the end of the array (which contains 10 elements) [-Warray-bounds] regs_sets.regs[PC].UWord++; ^ ~~ ./gboy_cpu.h:134:2: note: array 'regs' declared here union regs { ^ gboy_cpu.c:417:2: warning: array index 10 is past the end of the array (which contains 10 elements) [-Warray-bounds] regs_sets.regs[PC].UWord++; ^ ~~ ./gboy_cpu.h:134:2: note: array 'regs' declared here union regs { ^ gboy_cpu.c:451:2: warning: array index 10 is past the end of the array (which contains 10 elements) [-Warray-bounds] regs_sets.regs[PC].UWord++; ^ ~~ ./gboy_cpu.h:134:2: note: array 'regs' declared here union regs { ^ gboy_cpu.c:478:2: warning: array index 10 is past the end of the array (which contains 10 elements) [-Warray-bounds] regs_sets.regs[PC].UWord++; ^ ~~ ./gboy_cpu.h:134:2: note: array 'regs' declared here union regs { ^ gboy_cpu.c:508:2: warning: array index 10 is past the end of the array (which contains 10 elements) [-Warray-bounds] regs_sets.regs[PC].UWord++; ^ ~~ ./gboy_cpu.h:134:2: note: array 'regs' declared here union regs { ^ gboy_cpu.c:537:2: warning: array index 10 is past the end of the array (which contains 10 elements) [-Warray-bounds] regs_sets.regs[PC].UWord+=2; ^ ~~ ./gboy_cpu.h:134:2: note: array 'regs' declared here union regs { ^ gboy_cpu.c:579:2: warning: array index 10 is past the end of the array (which contains 10 elements) [-Warray-bounds] regs_sets.regs[PC].UWord+=2; ^ ~~ ./gboy_cpu.h:134:2: note: array 'regs' declared here union regs { ^ gboy_cpu.c:612:2: warning: array index 10 is past the end of the array (which contains 10 elements) [-Warray-bounds] regs_sets.regs[PC].UWord++; ^ ~~ ./gboy_cpu.h:134:2: note: array 'regs' declared here union regs { ^ gboy_cpu.c:648:2: warning: array index 10 is past the end of the array (which contains 10 elements) [-Warray-bounds] regs_sets.regs[PC].UWord++; ^ ~~ ./gboy_cpu.h:134:2: note: array 'regs' declared here union regs { ^ gboy_cpu.c:684:2: warning: array index 10 is past the end of the array (which contains 10 elements) [-Warray-bounds] regs_sets.regs[PC].UWord+=2; ^ ~~ ./gboy_cpu.h:134:2: note: array 'regs' declared here union regs { ^ gboy_cpu.c:715:2: warning: array index 10 is past the end of the array (which contains 10 elements) [-Warray-bounds] regs_sets.regs[PC].UWord++; ^ ~~ ./gboy_cpu.h:134:2: note: array 'regs' declared here union regs { ^ gboy_cpu.c:748:2: warning: array index 10 is past the end of the array (which contains 10 elements) [-Warray-bounds] regs_sets.regs[PC].UWord++; ^ ~~ ./gboy_cpu.h:134:2: note: array 'regs' declared here union regs { ^ gboy_cpu.c:779:2: warning: array index 10 is past the end of the array (which contains 10 elements) [-Warray-bounds] regs_sets.regs[PC].UWord+=2; ^ ~~ ./gboy_cpu.h:134:2: note: array 'regs' declared here union regs { ^ gboy_cpu.c:814:2: warning: array index 10 is past the end of the array (which contains 10 elements) [-Warray-bounds] regs_sets.regs[PC].UWord++; ^ ~~ ./gboy_cpu.h:134:2: note: array 'regs' declared here union regs { ^ gboy_cpu.c:852:2: warning: array index 10 is past the end of the array (which contains 10 elements) [-Warray-bounds] regs_sets.regs[PC].UWord++; ^ ~~ ./gboy_cpu.h:134:2: note: array 'regs' declared here union regs { ^ gboy_cpu.c:885:2: warning: array index 10 is past the end of the array (which contains 10 elements) [-Warray-bounds] regs_sets.regs[PC].UWord+=2; ^ ~~ ./gboy_cpu.h:134:2: note: array 'regs' declared here union regs { ^ gboy_cpu.c:909:2: warning: array index 10 is past the end of the array (which contains 10 elements) [-Warray-bounds] regs_sets.regs[PC].UWord++; ^ ~~ ./gboy_cpu.h:134:2: note: array 'regs' declared here union regs { ^ gboy_cpu.c:945:2: warning: array index 10 is past the end of the array (which contains 10 elements) [-Warray-bounds] regs_sets.regs[PC].UWord++; ^ ~~ ./gboy_cpu.h:134:2: note: array 'regs' declared here union regs { ^ gboy_cpu.c:976:2: warning: array index 10 is past the end of the array (which contains 10 elements) [-Warray-bounds] regs_sets.regs[PC].UWord+=2; ^ ~~ ./gboy_cpu.h:134:2: note: array 'regs' declared here union regs { ^ gboy_cpu.c:1007:2: warning: array index 10 is past the end of the array (which contains 10 elements) [-Warray-bounds] regs_sets.regs[PC].UWord++; ^ ~~ ./gboy_cpu.h:134:2: note: array 'regs' declared here union regs { ^ gboy_cpu.c:1032:2: warning: array index 10 is past the end of the array (which contains 10 elements) [-Warray-bounds] regs_sets.regs[PC].UWord++; ^ ~~ ./gboy_cpu.h:134:2: note: array 'regs' declared here union regs { ^ gboy_cpu.c:1058:2: warning: array index 10 is past the end of the array (which contains 10 elements) [-Warray-bounds] regs_sets.regs[PC].UWord++; ^ ~~ ./gboy_cpu.h:134:2: note: array 'regs' declared here union regs { ^ gboy_cpu.c:1082:2: warning: array index 10 is past the end of the array (which contains 10 elements) [-Warray-bounds] regs_sets.regs[PC].UWord+=2; ^ ~~ ./gboy_cpu.h:134:2: note: array 'regs' declared here union regs { ^ gboy_cpu.c:1105:2: warning: array index 10 is past the end of the array (which contains 10 elements) [-Warray-bounds] regs_sets.regs[PC].UWord+=2; ^ ~~ ./gboy_cpu.h:134:2: note: array 'regs' declared here union regs { ^ gboy_cpu.c:1128:2: warning: array index 10 is past the end of the array (which contains 10 elements) [-Warray-bounds] regs_sets.regs[PC].UWord+=2; ^ ~~ ./gboy_cpu.h:134:2: note: array 'regs' declared here union regs { ^ gboy_cpu.c:1153:2: warning: array index 10 is past the end of the array (which contains 10 elements) [-Warray-bounds] regs_sets.regs[PC].UWord++; ^ ~~ ./gboy_cpu.h:134:2: note: array 'regs' declared here union regs { ^ gboy_cpu.c:1177:2: warning: array index 10 is past the end of the array (which contains 10 elements) [-Warray-bounds] regs_sets.regs[PC].UWord++; ^ ~~ ./gboy_cpu.h:134:2: note: array 'regs' declared here union regs { ^ gboy_cpu.c:1200:2: warning: array index 10 is past the end of the array (which contains 10 elements) [-Warray-bounds] regs_sets.regs[PC].UWord++; ^ ~~ ./gboy_cpu.h:134:2: note: array 'regs' declared here union regs { ^ gboy_cpu.c:1234:2: warning: array index 10 is past the end of the array (which contains 10 elements) [-Warray-bounds] regs_sets.regs[PC].UWord++; ^ ~~ ./gboy_cpu.h:134:2: note: array 'regs' declared here union regs { ^ gboy_cpu.c:1266:2: warning: array index 10 is past the end of the array (which contains 10 elements) [-Warray-bounds] regs_sets.regs[PC].UWord++; ^ ~~ ./gboy_cpu.h:134:2: note: array 'regs' declared here union regs { ^ gboy_cpu.c:1293:2: warning: array index 10 is past the end of the array (which contains 10 elements) [-Warray-bounds] regs_sets.regs[PC].UWord++; ^ ~~ ./gboy_cpu.h:134:2: note: array 'regs' declared here union regs { ^ gboy_cpu.c:1318:2: warning: array index 10 is past the end of the array (which contains 10 elements) [-Warray-bounds] regs_sets.regs[PC].UWord++; ^ ~~ ./gboy_cpu.h:134:2: note: array 'regs' declared here union regs { ^ gboy_cpu.c:1330:2: warning: array index 10 is past the end of the array (which contains 10 elements) [-Warray-bounds] regs_sets.regs[PC].UWord++; ^ ~~ ./gboy_cpu.h:134:2: note: array 'regs' declared here union regs { ^ gboy_cpu.c:1342:2: warning: array index 10 is past the end of the array (which contains 10 elements) [-Warray-bounds] regs_sets.regs[PC].UWord++; ^ ~~ ./gboy_cpu.h:134:2: note: array 'regs' declared here union regs { ^ gboy_cpu.c:1354:2: warning: array index 10 is past the end of the array (which contains 10 elements) [-Warray-bounds] regs_sets.regs[PC].UWord++; ^ ~~ ./gboy_cpu.h:134:2: note: array 'regs' declared here union regs { ^ gboy_cpu.c:1366:2: warning: array index 10 is past the end of the array (which contains 10 elements) [-Warray-bounds] regs_sets.regs[PC].UWord++; ^ ~~ ./gboy_cpu.h:134:2: note: array 'regs' declared here union regs { ^ gboy_cpu.c:1398:2: warning: array index 10 is past the end of the array (which contains 10 elements) [-Warray-bounds] regs_sets.regs[PC].UWord++; ^ ~~ ./gboy_cpu.h:134:2: note: array 'regs' declared here union regs { ^ gboy_cpu.c:1427:2: warning: array index 10 is past the end of the array (which contains 10 elements) [-Warray-bounds] regs_sets.regs[PC].UWord++; ^ ~~ ./gboy_cpu.h:134:2: note: array 'regs' declared here union regs { ^ gboy_cpu.c:1456:2: warning: array index 10 is past the end of the array (which contains 10 elements) [-Warray-bounds] regs_sets.regs[PC].UWord++; ^ ~~ ./gboy_cpu.h:134:2: note: array 'regs' declared here union regs { ^ gboy_cpu.c:1480:2: warning: array index 10 is past the end of the array (which contains 10 elements) [-Warray-bounds] regs_sets.regs[PC].UWord++; ^ ~~ ./gboy_cpu.h:134:2: note: array 'regs' declared here union regs { ^ gboy_cpu.c:1504:2: warning: array index 10 is past the end of the array (which contains 10 elements) [-Warray-bounds] regs_sets.regs[PC].UWord++; ^ ~~ ./gboy_cpu.h:134:2: note: array 'regs' declared here union regs { ^ gboy_cpu.c:1528:2: warning: array index 10 is past the end of the array (which contains 10 elements) [-Warray-bounds] regs_sets.regs[PC].UWord++; ^ ~~ ./gboy_cpu.h:134:2: note: array 'regs' declared here union regs { ^ gboy_cpu.c:1561:2: warning: array index 10 is past the end of the array (which contains 10 elements) [-Warray-bounds] regs_sets.regs[PC].UWord++; ^ ~~ ./gboy_cpu.h:134:2: note: array 'regs' declared here union regs { ^ gboy_cpu.c:1594:2: warning: array index 10 is past the end of the array (which contains 10 elements) [-Warray-bounds] regs_sets.regs[PC].UWord++; ^ ~~ ./gboy_cpu.h:134:2: note: array 'regs' declared here union regs { ^ gboy_cpu.c:1622:2: warning: array index 10 is past the end of the array (which contains 10 elements) [-Warray-bounds] regs_sets.regs[PC].UWord++; ^ ~~ ./gboy_cpu.h:134:2: note: array 'regs' declared here union regs { ^ gboy_cpu.c:1650:2: warning: array index 10 is past the end of the array (which contains 10 elements) [-Warray-bounds] regs_sets.regs[PC].UWord++; ^ ~~ ./gboy_cpu.h:134:2: note: array 'regs' declared here union regs { ^ gboy_cpu.c:1673:2: warning: array index 10 is past the end of the array (which contains 10 elements) [-Warray-bounds] regs_sets.regs[PC].UWord++; ^ ~~ ./gboy_cpu.h:134:2: note: array 'regs' declared here union regs { ^ gboy_cpu.c:1701:2: warning: array index 10 is past the end of the array (which contains 10 elements) [-Warray-bounds] regs_sets.regs[PC].UWord++; ^ ~~ ./gboy_cpu.h:134:2: note: array 'regs' declared here union regs { ^ gboy_cpu.c:1739:2: warning: array index 10 is past the end of the array (which contains 10 elements) [-Warray-bounds] regs_sets.regs[PC].UWord++; ^ ~~ ./gboy_cpu.h:134:2: note: array 'regs' declared here union regs { ^ gboy_cpu.c:1771:2: warning: array index 10 is past the end of the array (which contains 10 elements) [-Warray-bounds] regs_sets.regs[PC].UWord++; ^ ~~ ./gboy_cpu.h:134:2: note: array 'regs' declared here union regs { ^ gboy_cpu.c:1804:2: warning: array index 10 is past the end of the array (which contains 10 elements) [-Warray-bounds] regs_sets.regs[PC].UWord++; ^ ~~ ./gboy_cpu.h:134:2: note: array 'regs' declared here union regs { ^ gboy_cpu.c:1842:2: warning: array index 10 is past the end of the array (which contains 10 elements) [-Warray-bounds] regs_sets.regs[PC].UWord++; ^ ~~ ./gboy_cpu.h:134:2: note: array 'regs' declared here union regs { ^ gboy_cpu.c:1870:2: warning: array index 10 is past the end of the array (which contains 10 elements) [-Warray-bounds] regs_sets.regs[PC].UWord++; ^ ~~ ./gboy_cpu.h:134:2: note: array 'regs' declared here union regs { ^ gboy_cpu.c:1893:2: warning: array index 10 is past the end of the array (which contains 10 elements) [-Warray-bounds] regs_sets.regs[PC].UWord++; ^ ~~ ./gboy_cpu.h:134:2: note: array 'regs' declared here union regs { ^ gboy_cpu.c:1916:2: warning: array index 10 is past the end of the array (which contains 10 elements) [-Warray-bounds] regs_sets.regs[PC].UWord++; ^ ~~ ./gboy_cpu.h:134:2: note: array 'regs' declared here union regs { ^ gboy_cpu.c:1942:2: warning: array index 10 is past the end of the array (which contains 10 elements) [-Warray-bounds] regs_sets.regs[PC].UWord++; ^ ~~ ./gboy_cpu.h:134:2: note: array 'regs' declared here union regs { ^ gboy_cpu.c:1965:2: warning: array index 10 is past the end of the array (which contains 10 elements) [-Warray-bounds] regs_sets.regs[PC].UWord++; ^ ~~ ./gboy_cpu.h:134:2: note: array 'regs' declared here union regs { ^ gboy_cpu.c:1977:2: warning: array index 10 is past the end of the array (which contains 10 elements) [-Warray-bounds] regs_sets.regs[PC].UWord++; ^ ~~ ./gboy_cpu.h:134:2: note: array 'regs' declared here union regs { ^ gboy_cpu.c:1989:2: warning: array index 10 is past the end of the array (which contains 10 elements) [-Warray-bounds] regs_sets.regs[PC].UWord++; ^ ~~ ./gboy_cpu.h:134:2: note: array 'regs' declared here union regs { ^ gboy_cpu.c:2010:2: warning: array index 10 is past the end of the array (which contains 10 elements) [-Warray-bounds] regs_sets.regs[PC].UWord++; ^ ~~ ./gboy_cpu.h:134:2: note: array 'regs' declared here union regs { ^ gboy_cpu.c:2034:2: warning: array index 10 is past the end of the array (which contains 10 elements) [-Warray-bounds] regs_sets.regs[PC].UWord++; ^ ~~ ./gboy_cpu.h:134:2: note: array 'regs' declared here union regs { ^ gboy_cpu.c:2053:2: warning: array index 10 is past the end of the array (which contains 10 elements) [-Warray-bounds] regs_sets.regs[PC].UWord++; ^ ~~ ./gboy_cpu.h:134:2: note: array 'regs' declared here union regs { ^ gboy_cpu.c:2062:2: warning: array index 10 is past the end of the array (which contains 10 elements) [-Warray-bounds] regs_sets.regs[PC].UWord++; ^ ~~ ./gboy_cpu.h:134:2: note: array 'regs' declared here union regs { ^ gboy_cpu.c:2113:2: warning: array index 10 is past the end of the array (which contains 10 elements) [-Warray-bounds] regs_sets.regs[PC].UWord++; ^ ~~ ./gboy_cpu.h:134:2: note: array 'regs' declared here union regs { ^ gboy_cpu.c:2124:2: warning: array index 10 is past the end of the array (which contains 10 elements) [-Warray-bounds] regs_sets.regs[PC].UWord++; ^ ~~ ./gboy_cpu.h:134:2: note: array 'regs' declared here union regs { ^ gboy_cpu.c:2145:2: warning: array index 10 is past the end of the array (which contains 10 elements) [-Warray-bounds] regs_sets.regs[PC].UWord+=3; ^ ~~ ./gboy_cpu.h:134:2: note: array 'regs' declared here union regs { ^ gboy_cpu.c:2150:16: warning: array index 10 is past the end of the array (which contains 10 elements) [-Warray-bounds] Uint16 val = regs_sets.regs[PC].UWord; ^ ~~ ./gboy_cpu.h:134:2: note: array 'regs' declared here union regs { ^ gboy_cpu.c:2159:3: warning: array index 10 is past the end of the array (which contains 10 elements) [-Warray-bounds] regs_sets.regs[PC].UWord = *(Uint16 *)(((Uint8 *)dest)-2); ^ ~~ ./gboy_cpu.h:134:2: note: array 'regs' declared here union regs { ^ gboy_cpu.c:2171:2: warning: array index 10 is past the end of the array (which contains 10 elements) [-Warray-bounds] regs_sets.regs[PC].UWord+=3; ^ ~~ ./gboy_cpu.h:134:2: note: array 'regs' declared here union regs { ^ gboy_cpu.c:2176:16: warning: array index 10 is past the end of the array (which contains 10 elements) [-Warray-bounds] Uint16 val = regs_sets.regs[PC].UWord; ^ ~~ ./gboy_cpu.h:134:2: note: array 'regs' declared here union regs { ^ gboy_cpu.c:2185:3: warning: array index 10 is past the end of the array (which contains 10 elements) [-Warray-bounds] regs_sets.regs[PC].UWord = *(Uint16 *)(((Uint8 *)dest)-2); ^ ~~ ./gboy_cpu.h:134:2: note: array 'regs' declared here union regs { ^ gboy_cpu.c:2197:2: warning: array index 10 is past the end of the array (which contains 10 elements) [-Warray-bounds] regs_sets.regs[PC].UWord+=3; ^ ~~ ./gboy_cpu.h:134:2: note: array 'regs' declared here union regs { ^ gboy_cpu.c:2202:16: warning: array index 10 is past the end of the array (which contains 10 elements) [-Warray-bounds] Uint16 val = regs_sets.regs[PC].UWord; ^ ~~ ./gboy_cpu.h:134:2: note: array 'regs' declared here union regs { ^ gboy_cpu.c:2211:3: warning: array index 10 is past the end of the array (which contains 10 elements) [-Warray-bounds] regs_sets.regs[PC].UWord = *(Uint16 *)(((Uint8 *)dest)-2); ^ ~~ ./gboy_cpu.h:134:2: note: array 'regs' declared here union regs { ^ gboy_cpu.c:2223:2: warning: array index 10 is past the end of the array (which contains 10 elements) [-Warray-bounds] regs_sets.regs[PC].UWord+=3; ^ ~~ ./gboy_cpu.h:134:2: note: array 'regs' declared here union regs { ^ gboy_cpu.c:2228:16: warning: array index 10 is past the end of the array (which contains 10 elements) [-Warray-bounds] Uint16 val = regs_sets.regs[PC].UWord; ^ ~~ ./gboy_cpu.h:134:2: note: array 'regs' declared here union regs { ^ gboy_cpu.c:2237:3: warning: array index 10 is past the end of the array (which contains 10 elements) [-Warray-bounds] regs_sets.regs[PC].UWord = *(Uint16 *)(((Uint8 *)dest)-2); ^ ~~ ./gboy_cpu.h:134:2: note: array 'regs' declared here union regs { ^ gboy_cpu.c:2250:15: warning: array index 10 is past the end of the array (which contains 10 elements) [-Warray-bounds] Uint16 val = regs_sets.regs[PC].UWord+3; ^ ~~ ./gboy_cpu.h:134:2: note: array 'regs' declared here union regs { ^ gboy_cpu.c:2260:2: warning: array index 10 is past the end of the array (which contains 10 elements) [-Warray-bounds] regs_sets.regs[PC].UWord = *(Uint16 *)(((Uint8 *)dest)+1); ^ ~~ ./gboy_cpu.h:134:2: note: array 'regs' declared here union regs { ^ gboy_cpu.c:2274:15: warning: array index 10 is past the end of the array (which contains 10 elements) [-Warray-bounds] Uint16 val = regs_sets.regs[PC].UWord+1; ^ ~~ ./gboy_cpu.h:134:2: note: array 'regs' declared here union regs { ^ gboy_cpu.c:2282:2: warning: array index 10 is past the end of the array (which contains 10 elements) [-Warray-bounds] regs_sets.regs[PC].UWord = 0; ^ ~~ ./gboy_cpu.h:134:2: note: array 'regs' declared here union regs { ^ gboy_cpu.c:2296:15: warning: array index 10 is past the end of the array (which contains 10 elements) [-Warray-bounds] Uint16 val = regs_sets.regs[PC].UWord+1; ^ ~~ ./gboy_cpu.h:134:2: note: array 'regs' declared here union regs { ^ gboy_cpu.c:2304:2: warning: array index 10 is past the end of the array (which contains 10 elements) [-Warray-bounds] regs_sets.regs[PC].UWord = 8; ^ ~~ ./gboy_cpu.h:134:2: note: array 'regs' declared here union regs { ^ gboy_cpu.c:2318:15: warning: array index 10 is past the end of the array (which contains 10 elements) [-Warray-bounds] Uint16 val = regs_sets.regs[PC].UWord+1; ^ ~~ ./gboy_cpu.h:134:2: note: array 'regs' declared here union regs { ^ gboy_cpu.c:2326:2: warning: array index 10 is past the end of the array (which contains 10 elements) [-Warray-bounds] regs_sets.regs[PC].UWord = 16; ^ ~~ ./gboy_cpu.h:134:2: note: array 'regs' declared here union regs { ^ gboy_cpu.c:2344:2: warning: array index 10 is past the end of the array (which contains 10 elements) [-Warray-bounds] regs_sets.regs[PC].UWord = val; ^ ~~ ./gboy_cpu.h:134:2: note: array 'regs' declared here union regs { ^ gboy_cpu.c:2366:15: warning: array index 10 is past the end of the array (which contains 10 elements) [-Warray-bounds] Uint16 val = regs_sets.regs[PC].UWord+1; ^ ~~ ./gboy_cpu.h:134:2: note: array 'regs' declared here union regs { ^ gboy_cpu.c:2374:2: warning: array index 10 is past the end of the array (which contains 10 elements) [-Warray-bounds] regs_sets.regs[PC].UWord = 24; ^ ~~ ./gboy_cpu.h:134:2: note: array 'regs' declared here union regs { ^ gboy_cpu.c:2388:15: warning: array index 10 is past the end of the array (which contains 10 elements) [-Warray-bounds] Uint16 val = regs_sets.regs[PC].UWord+1; ^ ~~ ./gboy_cpu.h:134:2: note: array 'regs' declared here union regs { ^ gboy_cpu.c:2396:2: warning: array index 10 is past the end of the array (which contains 10 elements) [-Warray-bounds] regs_sets.regs[PC].UWord = 32; ^ ~~ ./gboy_cpu.h:134:2: note: array 'regs' declared here union regs { ^ gboy_cpu.c:2410:15: warning: array index 10 is past the end of the array (which contains 10 elements) [-Warray-bounds] Uint16 val = regs_sets.regs[PC].UWord+1; ^ ~~ ./gboy_cpu.h:134:2: note: array 'regs' declared here union regs { ^ gboy_cpu.c:2418:2: warning: array index 10 is past the end of the array (which contains 10 elements) [-Warray-bounds] regs_sets.regs[PC].UWord = 40; ^ ~~ ./gboy_cpu.h:134:2: note: array 'regs' declared here union regs { ^ gboy_cpu.c:2432:15: warning: array index 10 is past the end of the array (which contains 10 elements) [-Warray-bounds] Uint16 val = regs_sets.regs[PC].UWord+1; ^ ~~ ./gboy_cpu.h:134:2: note: array 'regs' declared here union regs { ^ gboy_cpu.c:2440:2: warning: array index 10 is past the end of the array (which contains 10 elements) [-Warray-bounds] regs_sets.regs[PC].UWord = 48; ^ ~~ ./gboy_cpu.h:134:2: note: array 'regs' declared here union regs { ^ gboy_cpu.c:2454:15: warning: array index 10 is past the end of the array (which contains 10 elements) [-Warray-bounds] Uint16 val = regs_sets.regs[PC].UWord+1; ^ ~~ ./gboy_cpu.h:134:2: note: array 'regs' declared here union regs { ^ gboy_cpu.c:2462:2: warning: array index 10 is past the end of the array (which contains 10 elements) [-Warray-bounds] regs_sets.regs[PC].UWord = 56; ^ ~~ ./gboy_cpu.h:134:2: note: array 'regs' declared here union regs { ^ gboy_cpu.c:2473:2: warning: array index 10 is past the end of the array (which contains 10 elements) [-Warray-bounds] regs_sets.regs[PC].UWord++; ^ ~~ ./gboy_cpu.h:134:2: note: array 'regs' declared here union regs { ^ gboy_cpu.c:2484:3: warning: array index 10 is past the end of the array (which contains 10 elements) [-Warray-bounds] regs_sets.regs[PC].UWord = val; ^ ~~ ./gboy_cpu.h:134:2: note: array 'regs' declared here union regs { ^ gboy_cpu.c:2498:2: warning: array index 10 is past the end of the array (which contains 10 elements) [-Warray-bounds] regs_sets.regs[PC].UWord++; ^ ~~ ./gboy_cpu.h:134:2: note: array 'regs' declared here union regs { ^ gboy_cpu.c:2509:3: warning: array index 10 is past the end of the array (which contains 10 elements) [-Warray-bounds] regs_sets.regs[PC].UWord = val; ^ ~~ ./gboy_cpu.h:134:2: note: array 'regs' declared here union regs { ^ gboy_cpu.c:2523:2: warning: array index 10 is past the end of the array (which contains 10 elements) [-Warray-bounds] regs_sets.regs[PC].UWord++; ^ ~~ ./gboy_cpu.h:134:2: note: array 'regs' declared here union regs { ^ gboy_cpu.c:2534:3: warning: array index 10 is past the end of the array (which contains 10 elements) [-Warray-bounds] regs_sets.regs[PC].UWord = val; ^ ~~ ./gboy_cpu.h:134:2: note: array 'regs' declared here union regs { ^ gboy_cpu.c:2548:2: warning: array index 10 is past the end of the array (which contains 10 elements) [-Warray-bounds] regs_sets.regs[PC].UWord++; ^ ~~ ./gboy_cpu.h:134:2: note: array 'regs' declared here union regs { ^ gboy_cpu.c:2559:3: warning: array index 10 is past the end of the array (which contains 10 elements) [-Warray-bounds] regs_sets.regs[PC].UWord = val; ^ ~~ ./gboy_cpu.h:134:2: note: array 'regs' declared here union regs { ^ gboy_cpu.c:2576:2: warning: array index 10 is past the end of the array (which contains 10 elements) [-Warray-bounds] regs_sets.regs[PC].UWord = *(Uint16 *)(((Uint8 *)dest)+1); ^ ~~ ./gboy_cpu.h:134:2: note: array 'regs' declared here union regs { ^ gboy_cpu.c:2589:2: warning: array index 10 is past the end of the array (which contains 10 elements) [-Warray-bounds] regs_sets.regs[PC].UWord+=3; ^ ~~ ./gboy_cpu.h:134:2: note: array 'regs' declared here union regs { ^ gboy_cpu.c:2595:3: warning: array index 10 is past the end of the array (which contains 10 elements) [-Warray-bounds] regs_sets.regs[PC].UWord = *(Uint16 *)(((Uint8 *)dest)-2); ^ ~~ ./gboy_cpu.h:134:2: note: array 'regs' declared here union regs { ^ gboy_cpu.c:2609:2: warning: array index 10 is past the end of the array (which contains 10 elements) [-Warray-bounds] regs_sets.regs[PC].UWord+=3; ^ ~~ ./gboy_cpu.h:134:2: note: array 'regs' declared here union regs { ^ gboy_cpu.c:2615:3: warning: array index 10 is past the end of the array (which contains 10 elements) [-Warray-bounds] regs_sets.regs[PC].UWord = *(Uint16 *)(((Uint8 *)dest)-2); ^ ~~ ./gboy_cpu.h:134:2: note: array 'regs' declared here union regs { ^ gboy_cpu.c:2629:2: warning: array index 10 is past the end of the array (which contains 10 elements) [-Warray-bounds] regs_sets.regs[PC].UWord+=3; ^ ~~ ./gboy_cpu.h:134:2: note: array 'regs' declared here union regs { ^ gboy_cpu.c:2635:3: warning: array index 10 is past the end of the array (which contains 10 elements) [-Warray-bounds] regs_sets.regs[PC].UWord = *(Uint16 *)(((Uint8 *)dest)-2); ^ ~~ ./gboy_cpu.h:134:2: note: array 'regs' declared here union regs { ^ gboy_cpu.c:2649:2: warning: array index 10 is past the end of the array (which contains 10 elements) [-Warray-bounds] regs_sets.regs[PC].UWord+=3; ^ ~~ ./gboy_cpu.h:134:2: note: array 'regs' declared here union regs { ^ gboy_cpu.c:2655:3: warning: array index 10 is past the end of the array (which contains 10 elements) [-Warray-bounds] regs_sets.regs[PC].UWord = *(Uint16 *)(((Uint8 *)dest)-2); ^ ~~ ./gboy_cpu.h:134:2: note: array 'regs' declared here union regs { ^ gboy_cpu.c:2668:2: warning: array index 10 is past the end of the array (which contains 10 elements) [-Warray-bounds] regs_sets.regs[PC].UWord+=2; ^ ~~ ./gboy_cpu.h:134:2: note: array 'regs' declared here union regs { ^ gboy_cpu.c:2671:41: warning: array index 10 is past the end of the array (which contains 10 elements) [-Warray-bounds] cpu_state.pc = (Uint8 *)(addr_sp_ptrs[(regs_sets.regs[PC].UWord+(*(dest-1)))>>12]+(regs_sets.regs[PC].UWord+(*(dest-1)))); ^ ~~ ./gboy_cpu.h:134:2: note: array 'regs' declared here union regs { ^ gboy_cpu.c:2671:85: warning: array index 10 is past the end of the array (which contains 10 elements) [-Warray-bounds] cpu_state.pc = (Uint8 *)(addr_sp_ptrs[(regs_sets.regs[PC].UWord+(*(dest-1)))>>12]+(regs_sets.regs[PC].UWord+(*(dest-1)))); ^ ~~ ./gboy_cpu.h:134:2: note: array 'regs' declared here union regs { ^ gboy_cpu.c:2672:2: warning: array index 10 is past the end of the array (which contains 10 elements) [-Warray-bounds] regs_sets.regs[PC].SWord += *(dest-1); ^ ~~ ./gboy_cpu.h:134:2: note: array 'regs' declared here union regs { ^ gboy_cpu.c:2685:2: warning: array index 10 is past the end of the array (which contains 10 elements) [-Warray-bounds] regs_sets.regs[PC].UWord+=2; ^ ~~ ./gboy_cpu.h:134:2: note: array 'regs' declared here union regs { ^ gboy_cpu.c:2690:42: warning: array index 10 is past the end of the array (which contains 10 elements) [-Warray-bounds] cpu_state.pc = (Uint8 *)(addr_sp_ptrs[(regs_sets.regs[PC].UWord+(*(dest-1)))>>12]+(regs_sets.regs[PC].UWord+(*(dest-1)))); ^ ~~ ./gboy_cpu.h:134:2: note: array 'regs' declared here union regs { ^ gboy_cpu.c:2690:86: warning: array index 10 is past the end of the array (which contains 10 elements) [-Warray-bounds] cpu_state.pc = (Uint8 *)(addr_sp_ptrs[(regs_sets.regs[PC].UWord+(*(dest-1)))>>12]+(regs_sets.regs[PC].UWord+(*(dest-1)))); ^ ~~ ./gboy_cpu.h:134:2: note: array 'regs' declared here union regs { ^ gboy_cpu.c:2691:3: warning: array index 10 is past the end of the array (which contains 10 elements) [-Warray-bounds] regs_sets.regs[PC].SWord += *(dest-1); ^ ~~ ./gboy_cpu.h:134:2: note: array 'regs' declared here union regs { ^ gboy_cpu.c:2704:2: warning: array index 10 is past the end of the array (which contains 10 elements) [-Warray-bounds] regs_sets.regs[PC].UWord+=2; ^ ~~ ./gboy_cpu.h:134:2: note: array 'regs' declared here union regs { ^ gboy_cpu.c:2709:42: warning: array index 10 is past the end of the array (which contains 10 elements) [-Warray-bounds] cpu_state.pc = (Uint8 *)(addr_sp_ptrs[(regs_sets.regs[PC].UWord+(*(dest-1)))>>12]+(regs_sets.regs[PC].UWord+(*(dest-1)))); ^ ~~ ./gboy_cpu.h:134:2: note: array 'regs' declared here union regs { ^ gboy_cpu.c:2709:86: warning: array index 10 is past the end of the array (which contains 10 elements) [-Warray-bounds] cpu_state.pc = (Uint8 *)(addr_sp_ptrs[(regs_sets.regs[PC].UWord+(*(dest-1)))>>12]+(regs_sets.regs[PC].UWord+(*(dest-1)))); ^ ~~ ./gboy_cpu.h:134:2: note: array 'regs' declared here union regs { ^ gboy_cpu.c:2710:3: warning: array index 10 is past the end of the array (which contains 10 elements) [-Warray-bounds] regs_sets.regs[PC].SWord += *(dest-1); ^ ~~ ./gboy_cpu.h:134:2: note: array 'regs' declared here union regs { ^ gboy_cpu.c:2723:2: warning: array index 10 is past the end of the array (which contains 10 elements) [-Warray-bounds] regs_sets.regs[PC].UWord+=2; ^ ~~ ./gboy_cpu.h:134:2: note: array 'regs' declared here union regs { ^ gboy_cpu.c:2728:42: warning: array index 10 is past the end of the array (which contains 10 elements) [-Warray-bounds] cpu_state.pc = (Uint8 *)(addr_sp_ptrs[(regs_sets.regs[PC].UWord+(*(dest-1)))>>12]+(regs_sets.regs[PC].UWord+(*(dest-1)))); ^ ~~ ./gboy_cpu.h:134:2: note: array 'regs' declared here union regs { ^ gboy_cpu.c:2728:86: warning: array index 10 is past the end of the array (which contains 10 elements) [-Warray-bounds] cpu_state.pc = (Uint8 *)(addr_sp_ptrs[(regs_sets.regs[PC].UWord+(*(dest-1)))>>12]+(regs_sets.regs[PC].UWord+(*(dest-1)))); ^ ~~ ./gboy_cpu.h:134:2: note: array 'regs' declared here union regs { ^ gboy_cpu.c:2729:3: warning: array index 10 is past the end of the array (which contains 10 elements) [-Warray-bounds] regs_sets.regs[PC].SWord += *(dest-1); ^ ~~ ./gboy_cpu.h:134:2: note: array 'regs' declared here union regs { ^ gboy_cpu.c:2742:2: warning: array index 10 is past the end of the array (which contains 10 elements) [-Warray-bounds] regs_sets.regs[PC].UWord+=2; ^ ~~ ./gboy_cpu.h:134:2: note: array 'regs' declared here union regs { ^ gboy_cpu.c:2747:42: warning: array index 10 is past the end of the array (which contains 10 elements) [-Warray-bounds] cpu_state.pc = (Uint8 *)(addr_sp_ptrs[(regs_sets.regs[PC].UWord+(*(dest-1)))>>12]+(regs_sets.regs[PC].UWord+(*(dest-1)))); ^ ~~ ./gboy_cpu.h:134:2: note: array 'regs' declared here union regs { ^ gboy_cpu.c:2747:86: warning: array index 10 is past the end of the array (which contains 10 elements) [-Warray-bounds] cpu_state.pc = (Uint8 *)(addr_sp_ptrs[(regs_sets.regs[PC].UWord+(*(dest-1)))>>12]+(regs_sets.regs[PC].UWord+(*(dest-1)))); ^ ~~ ./gboy_cpu.h:134:2: note: array 'regs' declared here union regs { ^ gboy_cpu.c:2748:3: warning: array index 10 is past the end of the array (which contains 10 elements) [-Warray-bounds] regs_sets.regs[PC].SWord += *(dest-1); ^ ~~ ./gboy_cpu.h:134:2: note: array 'regs' declared here union regs { ^ gboy_cpu.c:2763:2: warning: array index 10 is past the end of the array (which contains 10 elements) [-Warray-bounds] regs_sets.regs[PC].UWord = regs_sets.regs[HL].UWord; ^ ~~ ./gboy_cpu.h:134:2: note: array 'regs' declared here union regs { ^ gboy_cpu.c:2774:2: warning: array index 10 is past the end of the array (which contains 10 elements) [-Warray-bounds] regs_sets.regs[PC].UWord++; ^ ~~ ./gboy_cpu.h:134:2: note: array 'regs' declared here union regs { ^ gboy_cpu.c:2786:2: warning: array index 10 is past the end of the array (which contains 10 elements) [-Warray-bounds] regs_sets.regs[PC].UWord++; ^ ~~ ./gboy_cpu.h:134:2: note: array 'regs' declared here union regs { ^ gboy_cpu.c:2798:2: warning: array index 10 is past the end of the array (which contains 10 elements) [-Warray-bounds] regs_sets.regs[PC].UWord++; ^ ~~ ./gboy_cpu.h:134:2: note: array 'regs' declared here union regs { ^ gboy_cpu.c:2816:2: warning: array index 10 is past the end of the array (which contains 10 elements) [-Warray-bounds] regs_sets.regs[PC].UWord++; ^ ~~ ./gboy_cpu.h:134:2: note: array 'regs' declared here union regs { ^ gboy_cpu.c:2828:2: warning: array index 10 is past the end of the array (which contains 10 elements) [-Warray-bounds] regs_sets.regs[PC].UWord++; ^ ~~ ./gboy_cpu.h:134:2: note: array 'regs' declared here union regs { ^ gboy_cpu.c:2861:2: warning: array index 10 is past the end of the array (which contains 10 elements) [-Warray-bounds] regs_sets.regs[PC].UWord++; ^ ~~ --- gddb_funcs.o --- 1 warning generated. --- gboy_cpu.o --- ./gboy_cpu.h:134:2: note: array 'regs' declared here union regs { ^ gboy_cpu.c:5565:2: warning: array index 10 is past the end of the array (which contains 10 elements) [-Warray-bounds] regs_sets.regs[PC].UWord = 0; ^ ~~ ./gboy_cpu.h:134:2: note: array 'regs' declared here union regs { ^ gboy_cpu.c:5696:21: warning: array index 10 is past the end of the array (which contains 10 elements) [-Warray-bounds] cpu_state.pc++, regs_sets.regs[PC].UWord++; ^ ~~ ./gboy_cpu.h:134:2: note: array 'regs' declared here union regs { ^ gboy_cpu.c:5703:22: warning: array index 10 is past the end of the array (which contains 10 elements) [-Warray-bounds] *ptr_stack_wd = (regs_sets.regs[PC].UWord); // XXX ^ ~~ ./gboy_cpu.h:134:2: note: array 'regs' declared here union regs { ^ gboy_cpu.c:5705:5: warning: array index 10 is past the end of the array (which contains 10 elements) [-Warray-bounds] regs_sets.regs[PC].UWord = ints_offs[indx]; ^ ~~ ./gboy_cpu.h:134:2: note: array 'regs' declared here union regs { ^ gboy_cpu.c:5739:67: warning: array index 10 is past the end of the array (which contains 10 elements) [-Warray-bounds] cpu_state.pc = (Uint8 *)(regs_sets.regs[PC].UWord+addr_sp_ptrs[(regs_sets.regs[PC].UWord)>>12]); ^ ~~ ./gboy_cpu.h:134:2: note: array 'regs' declared here union regs { ^ gboy_cpu.c:5739:28: warning: array index 10 is past the end of the array (which contains 10 elements) [-Warray-bounds] cpu_state.pc = (Uint8 *)(regs_sets.regs[PC].UWord+addr_sp_ptrs[(regs_sets.regs[PC].UWord)>>12]); ^ ~~ ./gboy_cpu.h:134:2: note: array 'regs' declared here union regs { ^ 166 warnings generated. --- realboy --- clang -Wno-unused-result -O2 -I/opt/pkg/include -L/opt/pkg/lib -L/usr/lib -o realboy gboy_mem.o gboy_sgb.o gboy_conf.o gboy_keys.o gboy_events.o gboy_frame.o gboy_interp.o gboy_ioctrl.o gboy_joy.o gboy_lcd.o gboy_mbc1.o gboy_mbc2.o gboy_mbc3.o gboy_mbc5.o gboy_mbc.o gboy_parse.o gboy_sound.o gboy_video.o gboy_vm.o globals.o gboy_utils.o gboy_file.o main.o SDL_rotozoom.o gddb_main.o gddb_funcs.o gboy_cpu.o -lSDL Undefined symbols for architecture arm64: "_main", referenced from: implicit entry/start for main executable (maybe you meant: _SDL_main, _gddb_main ) ld: symbol(s) not found for architecture arm64 clang: error: linker command failed with exit code 1 (use -v to see invocation) *** [realboy] Error code 1 bmake[2]: stopped in /opt/work/emulators/realboy/work/realboy-0.2.2/src 1 error bmake[2]: stopped in /opt/work/emulators/realboy/work/realboy-0.2.2/src *** [all-recursive] Error code 1 bmake[1]: stopped in /opt/work/emulators/realboy/work/realboy-0.2.2 1 error bmake[1]: stopped in /opt/work/emulators/realboy/work/realboy-0.2.2 *** [all] Error code 2 bmake: stopped in /opt/work/emulators/realboy/work/realboy-0.2.2 1 error bmake: stopped in /opt/work/emulators/realboy/work/realboy-0.2.2 *** Error code 2 Stop. bmake[1]: stopped in /opt/pkgsrc/emulators/realboy *** Error code 1 Stop. bmake: stopped in /opt/pkgsrc/emulators/realboy