Snippets for advancemame 3.9 from Alpine loongarch64
Sourced from https://build.alpinelinux.org/buildlogs/build-edge-loongarch64/testing/advancemame/advancemame-3.9-r4.log.
-
advance/linux/ms.c:545:21: warning: equality comparison with extraneous parentheses [-Wparentheses-equality] 545 | if ((context->type == MOUSE_SPACEBALL)) { | ~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~ -
advance/linux/ms.c:575:23: warning: equality comparison with extraneous parentheses [-Wparentheses-equality] 575 | if ((context->type == MOUSE_SPACEBALL)) { | ~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~ -
advance/osd/mode.c:272:17: warning: taking the absolute value of unsigned type 'unsigned int' has no effect [-Wabsolute-value] 272 | unsigned ad = abs(as - rs); | ^ -
advance/osd/mode.c:273:17: warning: taking the absolute value of unsigned type 'unsigned int' has no effect [-Wabsolute-value] 273 | unsigned bd = abs(bs - rs); | ^ -
advance/osd/mode.c:322:17: warning: taking the absolute value of unsigned type 'unsigned int' has no effect [-Wabsolute-value] 322 | unsigned ad = abs(a - r); | ^ -
advance/osd/mode.c:323:17: warning: taking the absolute value of unsigned type 'unsigned int' has no effect [-Wabsolute-value] 323 | unsigned bd = abs(b - r); | ^ -
advance/osd/frame.c:2452:24: warning: taking the absolute value of unsigned type 'unsigned int' has no effect [-Wabsolute-value] 2452 | if (!best_crtc || abs(mode_size_x * mode_size_y - size) < abs(mode_size_x * mode_size_y - best_size)) { | ^ -
advance/osd/frame.c:2452:64: warning: taking the absolute value of unsigned type 'unsigned int' has no effect [-Wabsolute-value] 2452 | if (!best_crtc || abs(mode_size_x * mode_size_y - size) < abs(mode_size_x * mode_size_y - best_size)) { | ^ -
advance/lib/generate.c:289:6: warning: taking the absolute value of unsigned type 'unsigned int' has no effect [-Wabsolute-value] 289 | if (abs(crtc->vde - vsize) <= CRTC_VSTEP | ^ -
advance/lib/generate.c:464:6: warning: taking the absolute value of unsigned type 'unsigned int' has no effect [-Wabsolute-value] 464 | if (abs(crtc->vde - vsize) <= CRTC_VSTEP | ^ -
advance/lib/crtc.c:176:28: warning: taking the absolute value of unsigned type 'unsigned int' has no effect [-Wabsolute-value] 176 | if (!best_size_found || fabs(try_size - size) < fabs(best_size - size)) { | ^ -
advance/lib/crtc.c:183:28: warning: taking the absolute value of unsigned type 'unsigned int' has no effect [-Wabsolute-value] 183 | if (!best_size_found || fabs(try_size - size) < fabs(best_size - size)) { | ^ -
advance/lib/crtc.c:306:50: warning: taking the absolute value of unsigned type 'unsigned int' has no effect [-Wabsolute-value] 306 | if (!best_found || abs(try_vtotal - vtotal) < abs(best_vtotal - vtotal)) { | ^ -
advance/lib/crtc.c:319:50: warning: taking the absolute value of unsigned type 'unsigned int' has no effect [-Wabsolute-value] 319 | if (!best_found || abs(try_vtotal - vtotal) < abs(best_vtotal - vtotal)) { | ^ -
advance/lib/crtc.c:358:50: warning: taking the absolute value of unsigned type 'unsigned int' has no effect [-Wabsolute-value] 358 | if (!best_found || abs(try_vtotal - vtotal) < abs(best_vtotal - vtotal)) { | ^ -
advance/lib/crtc.c:368:50: warning: taking the absolute value of unsigned type 'unsigned int' has no effect [-Wabsolute-value] 368 | if (!best_found || abs(try_vtotal - vtotal) < abs(best_vtotal - vtotal)) { | ^ -
advance/lib/crtc.c:468:24: warning: taking the absolute value of unsigned type 'unsigned int' has no effect [-Wabsolute-value] 468 | if (!best_found || abs(try_vtotal - *req_vtotal) < abs(best_vtotal - *req_vtotal)) { | ^ -
advance/lib/crtc.c:468:56: warning: taking the absolute value of unsigned type 'unsigned int' has no effect [-Wabsolute-value] 468 | if (!best_found || abs(try_vtotal - *req_vtotal) < abs(best_vtotal - *req_vtotal)) { | ^ -
advance/lib/crtc.c:479:24: warning: taking the absolute value of unsigned type 'unsigned int' has no effect [-Wabsolute-value] 479 | if (!best_found || abs(try_vtotal - *req_vtotal) < abs(best_vtotal - *req_vtotal)) { | ^ -
advance/lib/crtc.c:479:56: warning: taking the absolute value of unsigned type 'unsigned int' has no effect [-Wabsolute-value] 479 | if (!best_found || abs(try_vtotal - *req_vtotal) < abs(best_vtotal - *req_vtotal)) { | ^ -
advance/lib/crtc.c:490:24: warning: taking the absolute value of unsigned type 'unsigned int' has no effect [-Wabsolute-value] 490 | if (!best_found || abs(try_vtotal - *req_vtotal) < abs(best_vtotal - *req_vtotal)) { | ^ -
advance/lib/crtc.c:490:56: warning: taking the absolute value of unsigned type 'unsigned int' has no effect [-Wabsolute-value] 490 | if (!best_found || abs(try_vtotal - *req_vtotal) < abs(best_vtotal - *req_vtotal)) { | ^ -
advance/lib/crtc.c:511:24: warning: taking the absolute value of unsigned type 'unsigned int' has no effect [-Wabsolute-value] 511 | if (!best_found || abs(try_vtotal - *req_vtotal) < abs(best_vtotal - *req_vtotal)) { | ^ -
advance/lib/crtc.c:511:56: warning: taking the absolute value of unsigned type 'unsigned int' has no effect [-Wabsolute-value] 511 | if (!best_found || abs(try_vtotal - *req_vtotal) < abs(best_vtotal - *req_vtotal)) { | ^ -
advance/lib/crtc.c:524:24: warning: taking the absolute value of unsigned type 'unsigned int' has no effect [-Wabsolute-value] 524 | if (!best_found || abs(try_vtotal - *req_vtotal) < abs(best_vtotal - *req_vtotal)) { | ^ -
advance/lib/crtc.c:524:56: warning: taking the absolute value of unsigned type 'unsigned int' has no effect [-Wabsolute-value] 524 | if (!best_found || abs(try_vtotal - *req_vtotal) < abs(best_vtotal - *req_vtotal)) { | ^ -
advance/lib/crtc.c:537:24: warning: taking the absolute value of unsigned type 'unsigned int' has no effect [-Wabsolute-value] 537 | if (!best_found || abs(try_vtotal - *req_vtotal) < abs(best_vtotal - *req_vtotal)) { | ^ -
advance/lib/crtc.c:537:56: warning: taking the absolute value of unsigned type 'unsigned int' has no effect [-Wabsolute-value] 537 | if (!best_found || abs(try_vtotal - *req_vtotal) < abs(best_vtotal - *req_vtotal)) { | ^ -
src/cheat.c:2100:6: warning: cast to smaller integer type 'int' from 'const char **' [-Wpointer-to-int-cast] 2100 | (int)menuStrings.mainList, | ^~~~~~~~~~~~~~~~~~~~~~~~~ -
src/cheat.c:2101:6: warning: cast to smaller integer type 'int' from 'const char **' [-Wpointer-to-int-cast] 2101 | (int)menuStrings.subList, | ^~~~~~~~~~~~~~~~~~~~~~~~ -
src/cheat.c:2102:6: warning: cast to smaller integer type 'int' from 'char *' [-Wpointer-to-int-cast] 2102 | (int)menuStrings.flagList, | ^~~~~~~~~~~~~~~~~~~~~~~~~ -
src/cheat.c:2103:6: warning: cast to smaller integer type 'int' from 'char **' [-Wpointer-to-int-cast] 2103 | (int)menuStrings.mainStrings, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ -
src/cheat.c:2104:6: warning: cast to smaller integer type 'int' from 'char **' [-Wpointer-to-int-cast] 2104 | (int)menuStrings.subStrings, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~ -
src/cheat.c:2105:6: warning: cast to smaller integer type 'int' from 'char *' [-Wpointer-to-int-cast] 2105 | (int)menuStrings.buf); | ^~~~~~~~~~~~~~~~~~~~ -
src/info.c:438:12: warning: cast to smaller integer type 'UINT32' (aka 'unsigned int') from 'const char *' [-Wpointer-to-int-cast] 438 | switch (ROMREGION_GETTYPE(region)) | ^~~~~~~~~~~~~~~~~~~~~~~~~ -
src/info.c:474:47: warning: cast to smaller integer type 'UINT32' (aka 'unsigned int') from 'const char *' [-Wpointer-to-int-cast] 474 | default: fprintf(out, " region=\"0x%x\"", ROMREGION_GETTYPE(region)); | ^~~~~~~~~~~~~~~~~~~~~~~~~ -
src/cheat.c:7947:29: warning: cast to smaller integer type 'UINT32' (aka 'unsigned int') from 'write8_handler' (aka 'void (*)(unsigned int, unsigned char)') [-Wpointer-to-int-cast] 7947 | UINT32 handlerAddress = (UINT32)handler; | ^~~~~~~~~~~~~~~ -
src/cheat.c:8003:28: warning: cast to smaller integer type 'UINT32' (aka 'unsigned int') from 'write8_handler' (aka 'void (*)(unsigned int, unsigned char)') [-Wpointer-to-int-cast] 8003 | if( (handlerAddress >= ((UINT32)MWA8_BANK1)) && | ^~~~~~~~~~~~~~~~~~ -
src/cheat.c:8004:25: warning: cast to smaller integer type 'UINT32' (aka 'unsigned int') from 'write8_handler' (aka 'void (*)(unsigned int, unsigned char)') [-Wpointer-to-int-cast] 8004 | (handlerAddress <= ((UINT32)MWA8_BANK24))) | ^~~~~~~~~~~~~~~~~~~ -
src/cheat.c:8045:32: warning: cast to smaller integer type 'UINT32' (aka 'unsigned int') from 'genf *' (aka 'void (*)(void)') [-Wpointer-to-int-cast] 8045 | UINT32 handlerAddress = (UINT32)handler; | ^~~~~~~~~~~~~~~ -
src/cheat.c:8047:29: warning: cast to smaller integer type 'UINT32' (aka 'unsigned int') from 'write8_handler' (aka 'void (*)(unsigned int, unsigned char)') [-Wpointer-to-int-cast] 8047 | if( (handlerAddress >= ((UINT32)MWA8_BANK1)) && | ^~~~~~~~~~~~~~~~~~ -
src/cheat.c:8048:26: warning: cast to smaller integer type 'UINT32' (aka 'unsigned int') from 'write8_handler' (aka 'void (*)(unsigned int, unsigned char)') [-Wpointer-to-int-cast] 8048 | (handlerAddress <= ((UINT32)MWA8_BANK24))) | ^~~~~~~~~~~~~~~~~~~ -
src/cheat.c:8050:51: warning: cast to smaller integer type 'UINT32' (aka 'unsigned int') from 'write8_handler' (aka 'void (*)(unsigned int, unsigned char)') [-Wpointer-to-int-cast] 8050 | sprintf(desc, "BANK%.2d", (handlerAddress - ((UINT32)MWA8_BANK1)) + 1); | ^~~~~~~~~~~~~~~~~~ -
src/cheat.c:8056:12: warning: cast to smaller integer type 'UINT32' (aka 'unsigned int') from 'write8_handler' (aka 'void (*)(unsigned int, unsigned char)') [-Wpointer-to-int-cast] 8056 | case (UINT32)MWA8_NOP: strcpy(desc, "NOP "); break; | ^~~~~~~~~~~~~~~~ -
src/cheat.c:8057:12: warning: cast to smaller integer type 'UINT32' (aka 'unsigned int') from 'write8_handler' (aka 'void (*)(unsigned int, unsigned char)') [-Wpointer-to-int-cast] 8057 | case (UINT32)MWA8_RAM: strcpy(desc, "RAM "); break; | ^~~~~~~~~~~~~~~~ -
src/cheat.c:8058:12: warning: cast to smaller integer type 'UINT32' (aka 'unsigned int') from 'write8_handler' (aka 'void (*)(unsigned int, unsigned char)') [-Wpointer-to-int-cast] 8058 | case (UINT32)MWA8_ROM: strcpy(desc, "ROM "); break; | ^~~~~~~~~~~~~~~~ -
src/cheat.c:9242:5: warning: logical not is only applied to the left hand side of this bitwise operator [-Wlogical-not-parentheses] 9242 | !region->flags & kRegionFlag_Enabled) | ^ ~ -
src/cheat.c:9285:5: warning: logical not is only applied to the left hand side of this bitwise operator [-Wlogical-not-parentheses] 9285 | !region->flags & kRegionFlag_Enabled) | ^ ~ -
src/cheat.c:10396:24: warning: cast to smaller integer type 'UINT32' (aka 'unsigned int') from 'const char *' [-Wpointer-to-int-cast]
-
src/memory.c:941:75: warning: cast to 'genf *' (aka 'void (*)(void)') from smaller integer type 'int' [-Wint-to-pointer-cast] 941 | install_mem_handler(space, 0, space->dbits, 0, start, end, mask, mirror, (genf *)handler, 0, handler_name); | ^~~~~~~~~~~~~~~ -
src/memory.c:989:75: warning: cast to 'genf *' (aka 'void (*)(void)') from smaller integer type 'int' [-Wint-to-pointer-cast] 989 | install_mem_handler(space, 1, space->dbits, 0, start, end, mask, mirror, (genf *)handler, 0, handler_name); | ^~~~~~~~~~~~~~~ -
src/memory.c:1038:82: warning: cast to 'genf *' (aka 'void (*)(void)') from smaller integer type 'int' [-Wint-to-pointer-cast] 1038 | install_mem_handler(space, 0, space->dbits, 1, matchval, maskval, mask, mirror, (genf *)handler, 0, handler_name); | ^~~~~~~~~~~~~~~ -
src/memory.c:1087:82: warning: cast to 'genf *' (aka 'void (*)(void)') from smaller integer type 'int' [-Wint-to-pointer-cast] 1087 | install_mem_handler(space, 1, space->dbits, 1, matchval, maskval, mask, mirror, (genf *)handler, 0, handler_name); | ^~~~~~~~~~~~~~~ -
src/memory.c:1625:11: warning: cast to 'genf *' (aka 'void (*)(void)') from smaller integer type 'int' [-Wint-to-pointer-cast] 1625 | return BANK_TO_HANDLER(bank); | ^~~~~~~~~~~~~~~~~~~~~ -
src/memory.c:1998:12: warning: cast to smaller integer type 'int' from 'genf *' (aka 'void (*)(void)') [-Wpointer-to-int-cast] 1998 | handler = (int)map->write.handler; | ^~~~~~~~~~~~~~~~~~~~~~~ -
src/memory.c:2008:12: warning: cast to smaller integer type 'int' from 'genf *' (aka 'void (*)(void)') [-Wpointer-to-int-cast] 2008 | handler = (int)map->read.handler; | ^~~~~~~~~~~~~~~~~~~~~~ -
src/romload.c:416:13: warning: cast to smaller integer type 'UINT32' (aka 'unsigned int') from 'const char *' [-Wpointer-to-int-cast] 416 | int type = ROMREGION_GETTYPE(regiondata); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -
src/romload.c:567:36: warning: cast to smaller integer type 'int' from 'UINT8 *' (aka 'unsigned char *') [-Wpointer-to-int-cast] 567 | debugload(" Copying to %08X\n", (int)base); | ^~~~~~~~~ -
src/romload.c:652:15: warning: cast to smaller integer type 'UINT32' (aka 'unsigned int') from 'const char *' [-Wpointer-to-int-cast] 652 | memset(base, (UINT32)ROM_GETHASHDATA(romp) & 0xff, numbytes); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -
src/romload.c:666:19: warning: cast to smaller integer type 'UINT32' (aka 'unsigned int') from 'const char *' [-Wpointer-to-int-cast] 666 | UINT32 srcoffs = (UINT32)ROM_GETHASHDATA(romp); /* srcoffset in place of hashdata */ | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -
src/romload.c:959:20: warning: cast to smaller integer type 'UINT32' (aka 'unsigned int') from 'const char *' [-Wpointer-to-int-cast] 959 | int regiontype = ROMREGION_GETTYPE(region); | ^~~~~~~~~~~~~~~~~~~~~~~~~ -
src/romload.c:980:66: warning: cast to smaller integer type 'int' from 'UINT8 *' (aka 'unsigned char *') [-Wpointer-to-int-cast] 980 | debugload("Allocated %X bytes @ %08X\n", romdata.regionlength, (int)romdata.regionbase); | ^~~~~~~~~~~~~~~~~~~~~~~ -
src/sound.c:183:85: warning: for loop has empty body [-Wempty-body] 183 | for (totalspeakers = 0; Machine->drv->speaker[totalspeakers].tag; totalspeakers++) ; | ^ -
src/state.c:396:86: warning: cast to smaller integer type 'int' from 'void (*)(int)' [-Wpointer-to-int-cast] 396 | fatalerror("Duplicate save state function (%d, %d, 0x%x)", ss_current_tag, param, (int)func); | ^~~~~~~~~ -
src/state.c:439:86: warning: cast to smaller integer type 'int' from 'void (*)(void *)' [-Wpointer-to-int-cast] 439 | fatalerror("Duplicate save state function (%d, %p, 0x%x)", ss_current_tag, param, (int)func); | ^~~~~~~~~ -
src/validity.c:192:38: warning: cast to smaller integer type 'UINT32' (aka 'unsigned int') from 'const rom_entry *' (aka 'const struct _rom_entry *') [-Wpointer-to-int-cast] 192 | add_quark(roms_table, drivnum, (UINT32)driver->rom); | ^~~~~~~~~~~~~~~~~~~ -
src/validity.c:300:9: warning: cast to smaller integer type 'UINT32' (aka 'unsigned int') from 'const rom_entry *' (aka 'const struct _rom_entry *') [-Wpointer-to-int-cast] 300 | crc = (UINT32)driver->rom; | ^~~~~~~~~~~~~~~~~~~ -
src/validity.c:343:15: warning: cast to smaller integer type 'UINT32' (aka 'unsigned int') from 'const char *' [-Wpointer-to-int-cast] 343 | int type = ROMREGION_GETTYPE(romp); | ^~~~~~~~~~~~~~~~~~~~~~~ -
src/validity.c:694:8: warning: cast to smaller integer type 'UINT32' (aka 'unsigned int') from 'void (*)(input_port_init_params *)' (aka 'void (*)(struct _input_port_init_params *)') [-Wpointer-to-int-cast] 694 | crc = (UINT32)driver->construct_ipt; | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -
src/cpu/i386/i386ops.c:422:12: warning: equality comparison with extraneous parentheses [-Wparentheses-equality] 422 | if( (I.SF == I.OF) ) { | ~~~~~^~~~~~~ -
src/cpu/i386/i386ops.c:1283:12: warning: equality comparison with extraneous parentheses [-Wparentheses-equality] 1283 | if( (I.SF == I.OF) ) { | ~~~~~^~~~~~~ -
src/cpu/i386/i386op16.c:854:12: warning: equality comparison with extraneous parentheses [-Wparentheses-equality] 854 | if( (I.SF == I.OF) ) { | ~~~~~^~~~~~~ -
src/cpu/hd6309/6309ops.c:2819:13: warning: taking the absolute value of unsigned type 'UINT16' (aka 'unsigned short') has no effect [-Wabsolute-value] 2819 | t.w.l = abs( t.w.l ); | ^ -
src/cpu/hd6309/6309ops.c:3153:13: warning: taking the absolute value of unsigned type 'UINT16' (aka 'unsigned short') has no effect [-Wabsolute-value] 3153 | t.w.l = abs( t.w.l ); | ^ -
src/cpu/hd6309/6309ops.c:3555:13: warning: taking the absolute value of unsigned type 'UINT16' (aka 'unsigned short') has no effect [-Wabsolute-value] 3555 | t.w.l = abs( t.w.l ); | ^ -
src/cpu/hd6309/6309ops.c:3943:13: warning: taking the absolute value of unsigned type 'UINT16' (aka 'unsigned short') has no effect [-Wabsolute-value] 3943 | t.w.l = abs( t.w.l ); | ^ -
src/cpu/i386/i386op32.c:811:12: warning: equality comparison with extraneous parentheses [-Wparentheses-equality] 811 | if( (I.SF == I.OF) ) { | ~~~~~^~~~~~~ -
src/cpu/i8x41/i8x41.c:463:54: warning: operator '?:' has lower precedence than '+'; '+' will be evaluated first [-Wparentheses] 463 | UINT8 res = A + ((PSW & FA) || ((A & 0x0f) > 0x09)) ? 0x06 : 0x00; | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ^ -
src/cpu/m68000/m68kmake.c:673:36: warning: comparison of array 'op->name' not equal to a null pointer is always true [-Wtautological-pointer-compare] 673 | for(op = g_opcode_input_table;op->name != NULL;op++) | ~~~~^~~~ ~~~~ -
src/cpu/m68000/m68kmake.c:689:36: warning: comparison of array 'op->name' not equal to a null pointer is always true [-Wtautological-pointer-compare] 689 | for(op = g_opcode_input_table;op->name != NULL;op++) | ~~~~^~~~ ~~~~ -
src/cpu/m6805/m6805.c:1076:61: warning: array index 8 is past the end of the array (that has type 'int[8]') [-Warray-bounds] 1076 | case CPUINFO_INT_INPUT_STATE + INPUT_LINE_NMI: info->i = m6805.irq_state[HD63705_INT_NMI]; break; | ^ ~~~~~~~~~~~~~~~ -
src/cpu/sharc/compute.c:704:4: warning: logical not is only applied to the left hand side of this comparison [-Wlogical-not-parentheses] 704 | (!(UINT32)r_sub < (UINT32)REG(rx))) | ^ ~ -
src/cpu/tms32031/32031ops.c:479:55: warning: shifting a negative signed value is undefined [-Wshift-negative-value] 479 | else if (man >= ((INT64)2 << 31) || man < ((INT64)-2 << 31)) | ~~~~~~~~~ ^ -
src/cpu/tms32031/32031ops.c:486:55: warning: shifting a negative signed value is undefined [-Wshift-negative-value] 486 | else if (man < ((INT64)1 << 31) && man >= ((INT64)-1 << 31)) | ~~~~~~~~~ ^ -
src/cpu/tms32031/32031ops.c:592:55: warning: shifting a negative signed value is undefined [-Wshift-negative-value] 592 | else if (man >= ((INT64)2 << 31) || man < ((INT64)-2 << 31)) | ~~~~~~~~~ ^ -
src/cpu/tms32031/32031ops.c:599:55: warning: shifting a negative signed value is undefined [-Wshift-negative-value] 599 | else if (man < ((INT64)1 << 31) && man >= ((INT64)-1 << 31)) | ~~~~~~~~~ ^ -
src/cpu/tms32031/32031ops.c:697:28: warning: shifting a negative signed value is undefined [-Wshift-negative-value] 697 | else if (man < ((INT64)-2 << 31)) | ~~~~~~~~~ ^ -
src/cpu/tms34010/34010gfx.c:1155:14: warning: shift count >= width of type [-Wshift-count-overflow] 1155 | srcmask <<= BITS_PER_PIXEL; | ^ ~~~~~~~~~~~~~~ -
src/cpu/tms34010/34010gfx.c:1158:14: warning: shift count >= width of type [-Wshift-count-overflow] 1158 | dstmask <<= BITS_PER_PIXEL; | ^ ~~~~~~~~~~~~~~ -
src/cpu/tms34010/34010gfx.c:1196:14: warning: shift count >= width of type [-Wshift-count-overflow] 1196 | srcmask <<= BITS_PER_PIXEL; | ^ ~~~~~~~~~~~~~~ -
src/cpu/tms34010/34010gfx.c:1199:14: warning: shift count >= width of type [-Wshift-count-overflow] 1199 | dstmask <<= BITS_PER_PIXEL; | ^ ~~~~~~~~~~~~~~ -
src/cpu/tms34010/34010gfx.c:1235:14: warning: shift count >= width of type [-Wshift-count-overflow] 1235 | srcmask <<= BITS_PER_PIXEL; | ^ ~~~~~~~~~~~~~~ -
src/cpu/tms34010/34010gfx.c:1238:14: warning: shift count >= width of type [-Wshift-count-overflow] 1238 | dstmask <<= BITS_PER_PIXEL; | ^ ~~~~~~~~~~~~~~ -
src/cpu/tms34010/34010gfx.c:1418:14: warning: shift count >= width of type [-Wshift-count-overflow] 1418 | srcmask >>= BITS_PER_PIXEL; | ^ ~~~~~~~~~~~~~~ -
src/cpu/tms34010/34010gfx.c:1421:14: warning: shift count >= width of type [-Wshift-count-overflow] 1421 | dstmask >>= BITS_PER_PIXEL; | ^ ~~~~~~~~~~~~~~ -
src/cpu/tms34010/34010gfx.c:1460:14: warning: shift count >= width of type [-Wshift-count-overflow] 1460 | srcmask >>= BITS_PER_PIXEL; | ^ ~~~~~~~~~~~~~~ -
src/cpu/tms34010/34010gfx.c:1463:14: warning: shift count >= width of type [-Wshift-count-overflow] 1463 | dstmask >>= BITS_PER_PIXEL; | ^ ~~~~~~~~~~~~~~ -
src/cpu/tms34010/34010gfx.c:1498:14: warning: shift count >= width of type [-Wshift-count-overflow] 1498 | srcmask >>= BITS_PER_PIXEL; | ^ ~~~~~~~~~~~~~~ -
src/cpu/tms34010/34010gfx.c:1501:14: warning: shift count >= width of type [-Wshift-count-overflow] 1501 | dstmask >>= BITS_PER_PIXEL; | ^ ~~~~~~~~~~~~~~ -
src/cpu/tms34010/34010gfx.c:1659:14: warning: shift count >= width of type [-Wshift-count-overflow] 1659 | dstmask <<= BITS_PER_PIXEL; | ^ ~~~~~~~~~~~~~~ -
src/cpu/tms34010/34010gfx.c:1695:14: warning: shift count >= width of type [-Wshift-count-overflow] 1695 | dstmask <<= BITS_PER_PIXEL; | ^ ~~~~~~~~~~~~~~ -
src/cpu/tms34010/34010gfx.c:1728:14: warning: shift count >= width of type [-Wshift-count-overflow] 1728 | dstmask <<= BITS_PER_PIXEL; | ^ ~~~~~~~~~~~~~~ -
src/cpu/tms34010/34010gfx.c:1859:14: warning: shift count >= width of type [-Wshift-count-overflow] 1859 | dstmask <<= BITS_PER_PIXEL; | ^ ~~~~~~~~~~~~~~ -
src/cpu/tms34010/34010gfx.c:1886:14: warning: shift count >= width of type [-Wshift-count-overflow] 1886 | dstmask <<= BITS_PER_PIXEL; | ^ ~~~~~~~~~~~~~~ -
src/cpu/tms34010/34010gfx.c:1910:14: warning: shift count >= width of type [-Wshift-count-overflow] 1910 | dstmask <<= BITS_PER_PIXEL; | ^ ~~~~~~~~~~~~~~ -
src/cpu/tms34010/tms34010.c:743:2: warning: 'sizeof (state.shiftreg)' will return the size of the pointer, not the array itself [-Wsizeof-pointer-div] 743 | state_save_register_item_array("tms34010", index, state.shiftreg); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -
src/cpu/z8000/z8000.c:766:105: warning: result of '2^REG_XOR' is 1; did you mean '1 << REG_XOR' (8)? [-Wxor-used-as-pow] 766 | case CPUINFO_STR_REGISTER + Z8000_R2: sprintf(info->s = cpuintrf_temp_str(), "R2 :%04X", Z.regs.W[ 2^REG_XOR]); break; | ~^~~~~~~~ | 1 << REG_XOR -
src/cpu/z8000/z8000.c:774:106: warning: result of '10^REG_XOR' is 9; did you mean '1e3'? [-Wxor-used-as-pow] 774 | case CPUINFO_STR_REGISTER + Z8000_R10: sprintf(info->s = cpuintrf_temp_str(), "R10:%04X", Z.regs.W[10^REG_XOR]); break; | ~~^~~~~~~~ | 1e3 -
src/cpu/z180/z180op.c:510:18: warning: array index 74 is past the end of the array (that has type 'UINT8[64]' (aka 'unsigned char[64]')) [-Warray-bounds] 510 | irq_vector = (Z180.io[Z180_IL] & Z180_IL_IL) + (irq - Z180_INT1) * 2; | ^ ~~~~~~~ -
src/sound/disc_wav.c:763:79: warning: operator '?:' has lower precedence than '-'; '-' will be evaluated first [-Wparentheses] 763 | node->output = (info->vP - (context->type == DISC_OP_AMP_OSCILLATOR_VCO_1) ? OP_AMP_VP_RAIL_OFFSET : OP_AMP_NORTON_VBE) * context->flip_flop; | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ^ -
src/sound/disc_mth.c:1234:55: warning: using integer absolute value function 'abs' when argument is of floating point type [-Wabsolute-value] 1234 | context->dir = ((DST_RAMP__END - DST_RAMP__START) == abs(DST_RAMP__END - DST_RAMP__START)); | ^ -
src/sound/iremga20.c:92:8: warning: cast to smaller integer type 'UINT32' (aka 'unsigned int') from 'UINT8 *' (aka 'unsigned char *') [-Wpointer-to-int-cast] 92 | esi = (UINT32)chip->rom; | ^~~~~~~~~~~~~~~~~ -
src/sound/iremga20.c:103:3: warning: cast to 'INT8 *' (aka 'signed char *') from smaller integer type 'UINT32' (aka 'unsigned int') [-Wint-to-pointer-cast] 103 | MIX_CH(0); | ^~~~~~~~~ -
src/sound/iremga20.c:104:3: warning: cast to 'INT8 *' (aka 'signed char *') from smaller integer type 'UINT32' (aka 'unsigned int') [-Wint-to-pointer-cast] 104 | MIX_CH(1); | ^~~~~~~~~ -
src/sound/iremga20.c:105:3: warning: cast to 'INT8 *' (aka 'signed char *') from smaller integer type 'UINT32' (aka 'unsigned int') [-Wint-to-pointer-cast] 105 | MIX_CH(2); | ^~~~~~~~~ -
src/sound/iremga20.c:106:3: warning: cast to 'INT8 *' (aka 'signed char *') from smaller integer type 'UINT32' (aka 'unsigned int') [-Wint-to-pointer-cast] 106 | MIX_CH(3); | ^~~~~~~~~ -
src/sound/k054539.c:129:6: warning: shifting a negative signed value is undefined [-Wshift-negative-value] 129 | -64<<8, -49<<8, -36<<8, -25<<8, -16<<8, -9<<8, -4<<8, -1<<8 | ~~~^ -
src/sound/k054539.c:129:14: warning: shifting a negative signed value is undefined [-Wshift-negative-value] 129 | -64<<8, -49<<8, -36<<8, -25<<8, -16<<8, -9<<8, -4<<8, -1<<8 | ~~~^ -
src/sound/k054539.c:129:22: warning: shifting a negative signed value is undefined [-Wshift-negative-value] 129 | -64<<8, -49<<8, -36<<8, -25<<8, -16<<8, -9<<8, -4<<8, -1<<8 | ~~~^ -
src/sound/k054539.c:129:30: warning: shifting a negative signed value is undefined [-Wshift-negative-value] 129 | -64<<8, -49<<8, -36<<8, -25<<8, -16<<8, -9<<8, -4<<8, -1<<8 | ~~~^ -
src/sound/k054539.c:129:38: warning: shifting a negative signed value is undefined [-Wshift-negative-value] 129 | -64<<8, -49<<8, -36<<8, -25<<8, -16<<8, -9<<8, -4<<8, -1<<8 | ~~~^ -
src/sound/k054539.c:129:45: warning: shifting a negative signed value is undefined [-Wshift-negative-value] 129 | -64<<8, -49<<8, -36<<8, -25<<8, -16<<8, -9<<8, -4<<8, -1<<8 | ~~^ -
src/sound/k054539.c:129:52: warning: shifting a negative signed value is undefined [-Wshift-negative-value] 129 | -64<<8, -49<<8, -36<<8, -25<<8, -16<<8, -9<<8, -4<<8, -1<<8 | ~~^ -
src/sound/k054539.c:129:59: warning: shifting a negative signed value is undefined [-Wshift-negative-value] 129 | -64<<8, -49<<8, -36<<8, -25<<8, -16<<8, -9<<8, -4<<8, -1<<8 | ~~^ -
src/sound/psx.c:339:2: warning: 'sizeof (chip->m_p_n_spuram)' will return the size of the pointer, not the array itself [-Wsizeof-pointer-div] 339 | state_save_register_item_array( "psx", sndindex, chip->m_p_n_spuram ); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -
src/sound/vlm5030.c:391:29: warning: shifting a negative signed value is undefined [-Wshift-negative-value] 391 | buffer[buf_count] = -511<<6; | ~~~~^ -
src/sound/tms5110.c:494:37: warning: shifting a negative signed value is undefined [-Wshift-negative-value] 494 | buffer[buf_count] = -128<<8; | ~~~~^ -
src/sound/tms5220.c:660:37: warning: shifting a negative signed value is undefined [-Wshift-negative-value] 660 | buffer[buf_count] = -128<<8; | ~~~~^ -
src/vidhrdw/atarigx2.c:258:22: warning: shifting a negative signed value is undefined [-Wshift-negative-value] 258 | pf[x] = mo[x] & ATARIRLE_DATA_MASK; | ^~~~~~~~~~~~~~~~~~ -
src/sndhrdw/llander.c:65:68: warning: implicit conversion from 'double' to 'int' changes value from 9.199999999999999 to 9 [-Wliteral-conversion] 65 | DISCRETE_SQUAREWFIX(LLANDER_TONE_6K_SND, LLANDER_TONE6K_EN, 6000, 9.2, 50, 0, 0) // 6KHz | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~ -
src/sndhrdw/llander.c:63:68: warning: implicit conversion from 'double' to 'int' changes value from 9.199999999999999 to 9 [-Wliteral-conversion] 63 | DISCRETE_SQUAREWFIX(LLANDER_TONE_3K_SND, LLANDER_TONE3K_EN, 3000, 9.2, 50, 0, 0) // 3KHz | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~ -
src/sndhrdw/asteroid.c:137:66: warning: implicit conversion from 'double' to 'int' changes value from 76.09999999999999 to 76 [-Wliteral-conversion] 137 | DISCRETE_TRIANGLEWAVE(NODE_43, ASTEROID_SAUCER_SND_EN, NODE_42, 76.1, 0, 0) | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~ -
src/sndhrdw/asteroid.c:132:58: warning: implicit conversion from 'double' to 'int' changes value from 8.25 to 8 [-Wliteral-conversion] 132 | DISCRETE_MULTADD(NODE_40, 1, ASTEROID_SAUCER_SEL, -2.5, 8.25) // Saucer Warble rate (5.75 or 8.25Hz) | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~ -
src/sndhrdw/asteroid.c:132:52: warning: implicit conversion from 'double' to 'int' changes value from -2.5 to -2 [-Wliteral-conversion] 132 | DISCRETE_MULTADD(NODE_40, 1, ASTEROID_SAUCER_SEL, -2.5, 8.25) // Saucer Warble rate (5.75 or 8.25Hz) | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~ -
src/sndhrdw/asteroid.c:114:51: warning: implicit conversion from 'double' to 'int' changes value from 3.5 to 3 [-Wliteral-conversion] 114 | DISCRETE_DAC_R1(NODE_30, 1, ASTEROID_THUMP_DATA, 3.5, &asteroid_thump_dac1) // CMOS | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~ -
src/sndhrdw/atarifb.c:111:55: warning: implicit conversion from 'double' to 'int' changes value from 0.5 to 0 [-Wliteral-conversion] 111 | DISCRETE_TRANSFORM3(ATARIFB_WHISTLE_SND, 1, NODE_30, .5, 0, "01-P2>*") // Q10 drop | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~ -
src/sndhrdw/atarifb.c:99:39: warning: implicit conversion from 'double' to 'int' changes value from 3.4 to 3 [-Wliteral-conversion] 99 | DISCRETE_DAC_R1(NODE_22, 1, NODE_21, DEFAULT_TTL_V_LOGIC_1, &atarifb_crowd_r1_ladder) | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -
src/sndhrdw/atarifb.c:97:82: warning: implicit conversion from 'double' to 'int' changes value from 0.5 to 0 [-Wliteral-conversion] 97 | DISCRETE_LFSR_NOISE(NODE_20, ATARIFB_NOISE_EN, ATARIFB_NOISE_EN, 15750.0, 1, 0, .5, &atarifb_lfsr) | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~ -
src/sndhrdw/atarifb.c:201:54: warning: implicit conversion from 'double' to 'int' changes value from 0.5 to 0 [-Wliteral-conversion] 201 | DISCRETE_TRANSFORM3(ABASEB_WHISTLE_SND, 1, NODE_30, .5, 0, "01-P2>*") // Q10 drop | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~ -
src/sndhrdw/atarifb.c:189:39: warning: implicit conversion from 'double' to 'int' changes value from 3.4 to 3 [-Wliteral-conversion] 189 | DISCRETE_DAC_R1(NODE_22, 1, NODE_21, DEFAULT_TTL_V_LOGIC_1, &abaseb_crowd_r1_ladder) | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -
src/sndhrdw/atarifb.c:187:82: warning: implicit conversion from 'double' to 'int' changes value from 0.5 to 0 [-Wliteral-conversion] 187 | DISCRETE_LFSR_NOISE(NODE_20, ATARIFB_NOISE_EN, ATARIFB_NOISE_EN, 15750.0, 1, 0, .5, &atarifb_lfsr) | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~ -
src/vidhrdw/atarig42.c:264:23: warning: shifting a negative signed value is undefined [-Wshift-negative-value] 264 | pf[x] = mo[x] & ATARIRLE_DATA_MASK; | ^~~~~~~~~~~~~~~~~~ -
src/vidhrdw/atarisy1.c:518:18: warning: shifting a negative signed value is undefined [-Wshift-negative-value] 518 | if (mo[x] & ATARIMO_PRIORITY_MASK) | ^~~~~~~~~~~~~~~~~~~~~ -
src/vidhrdw/atarisy2.c:362:24: warning: shifting a negative signed value is undefined [-Wshift-negative-value] 362 | pf[x] = mo[x] & ATARIMO_DATA_MASK; | ^~~~~~~~~~~~~~~~~ -
src/vidhrdw/atarisy2.c:367:23: warning: shifting a negative signed value is undefined [-Wshift-negative-value] 367 | pf[x] = mo[x] & ATARIMO_DATA_MASK; | ^~~~~~~~~~~~~~~~~ -
src/sndhrdw/avalnche.c:62:71: warning: implicit conversion from 'double' to 'int' changes value from 750.2 to 750 [-Wliteral-conversion] 62 | DISCRETE_SQUAREWFIX(AVALNCHE_AUD2_SND, AVALNCHE_AUD2_EN, 15750.0/16, 750.2, 50.0, 0, 0.0) | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~ -
src/sndhrdw/avalnche.c:61:71: warning: implicit conversion from 'double' to 'int' changes value from 750.2 to 750 [-Wliteral-conversion] 61 | DISCRETE_SQUAREWFIX(AVALNCHE_AUD1_SND, AVALNCHE_AUD1_EN, 15750.0/64, 750.2, 50.0, 0, 0.0) | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~ -
src/sndhrdw/avalnche.c:60:61: warning: implicit conversion from 'double' to 'int' changes value from 725.6 to 725 [-Wliteral-conversion] 60 | DISCRETE_SQUAREWFIX(NODE_20, AVALNCHE_AUD0_EN, 15750.0/4, 725.6, 50.0, 0, 0.0) // Aud0 | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~ -
src/vidhrdw/badlands.c:144:19: warning: shifting a negative signed value is undefined [-Wshift-negative-value] 144 | if ((mo[x] & ATARIMO_PRIORITY_MASK) || !(pf[x] & 8)) | ^~~~~~~~~~~~~~~~~~~~~ -
src/vidhrdw/badlands.c:145:23: warning: shifting a negative signed value is undefined [-Wshift-negative-value] 145 | pf[x] = mo[x] & ATARIMO_DATA_MASK; | ^~~~~~~~~~~~~~~~~ -
src/vidhrdw/batman.c:267:24: warning: shifting a negative signed value is undefined [-Wshift-negative-value] 267 | pf[x] = mo[x] & ATARIMO_DATA_MASK; | ^~~~~~~~~~~~~~~~~ -
src/vidhrdw/batman.c:271:24: warning: shifting a negative signed value is undefined [-Wshift-negative-value] 271 | pf[x] = mo[x] & ATARIMO_DATA_MASK; | ^~~~~~~~~~~~~~~~~ -
src/vidhrdw/batman.c:285:24: warning: shifting a negative signed value is undefined [-Wshift-negative-value] 285 | pf[x] = mo[x] & ATARIMO_DATA_MASK; | ^~~~~~~~~~~~~~~~~ -
src/sndhrdw/bsktball.c:109:39: warning: implicit conversion from 'double' to 'int' changes value from 3.4 to 3 [-Wliteral-conversion] 109 | DISCRETE_DAC_R1(NODE_21, 1, NODE_20, DEFAULT_TTL_V_LOGIC_1, &bsktball_crowd_r1_ladder) | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -
src/sndhrdw/bsktball.c:107:97: warning: implicit conversion from 'double' to 'int' changes value from 0.5 to 0 [-Wliteral-conversion] 107 | DISCRETE_LFSR_NOISE(BSKTBALL_NOISE, BSKTBALL_NOISE_EN, BSKTBALL_NOISE_EN, BSKTBALL_256H, 1, 0, .5, &bsktball_lfsr) | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~ -
src/sndhrdw/canyon.c:198:71: warning: implicit conversion from 'double' to 'int' changes value from 1.0E-8 to 0 [-Wliteral-conversion] 198 | DISCRETE_555_ASTABLE_CV(NODE_78, CANYON_WHISTLE2_EN, 33000, NODE_75, 1e-8, NODE_77, &canyonWhistl555) | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -
src/sndhrdw/canyon.c:196:62: warning: implicit conversion from 'double' to 'int' changes value from 0.33 to 0 [-Wliteral-conversion] 196 | DISCRETE_MULTADD(NODE_76, 1, CANYON_WHISTLE2_EN, 3.05-0.33, 0.33) | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~ -
src/sndhrdw/canyon.c:192:71: warning: implicit conversion from 'double' to 'int' changes value from 1.0E-8 to 0 [-Wliteral-conversion] 192 | DISCRETE_555_ASTABLE_CV(NODE_73, CANYON_WHISTLE1_EN, 33000, NODE_70, 1e-8, NODE_72, &canyonWhistl555) | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -
src/sndhrdw/canyon.c:190:62: warning: implicit conversion from 'double' to 'int' changes value from 0.33 to 0 [-Wliteral-conversion] 190 | DISCRETE_MULTADD(NODE_71, 1, CANYON_WHISTLE1_EN, 3.05-0.33, 0.33) | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~ -
src/sndhrdw/dragrace.c:177:78: warning: implicit conversion from 'double' to 'int' changes value from 593.8 to 593 [-Wliteral-conversion] 177 | DISCRETE_SQUAREWFIX(DRAGRACE_HITONE_SND, DRAGRACE_HITONE_EN, 15750.0/2/4, 593.8, 50.0, 0, 0.0) | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~ -
src/sndhrdw/dragrace.c:176:78: warning: implicit conversion from 'double' to 'int' changes value from 593.8 to 593 [-Wliteral-conversion] 176 | DISCRETE_SQUAREWFIX(DRAGRACE_LOTONE_SND, DRAGRACE_LOTONE_EN, 15750.0/2/32, 593.8, 50.0, 0, 0.0) | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~ -
src/sndhrdw/dragrace.c:168:50: warning: implicit conversion from 'double' to 'int' changes value from 31.5 to 31 [-Wliteral-conversion] 168 | DISCRETE_SQUAREWAVE(NODE_73, 1, NODE_72, 407.8, 31.5, 0, 0.0) | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~ -
src/sndhrdw/dragrace.c:168:43: warning: implicit conversion from 'double' to 'int' changes value from 407.8 to 407 [-Wliteral-conversion] 168 | DISCRETE_SQUAREWAVE(NODE_73, 1, NODE_72, 407.8, 31.5, 0, 0.0) | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~ -
src/vidhrdw/eprom.c:233:24: warning: shifting a negative signed value is undefined [-Wshift-negative-value] 233 | pf[x] = mo[x] & ATARIMO_DATA_MASK; | ^~~~~~~~~~~~~~~~~ -
src/vidhrdw/eprom.c:235:24: warning: shifting a negative signed value is undefined [-Wshift-negative-value] 235 | pf[x] = mo[x] & ATARIMO_DATA_MASK & ~0x70; | ^~~~~~~~~~~~~~~~~ -
src/sndhrdw/firetrk.c:317:109: warning: implicit conversion from 'double' to 'int' changes value from 3.4 to 3 [-Wliteral-conversion] 317 | DISCRETE_SQUAREWFIX(FIRETRUCK_XTNDPLYSND, FIRETRUCK_XTNDPLY_EN, FIRETRUCK_8V, DEFAULT_TTL_V_LOGIC_1, 50.0, DEFAULT_TTL_V_LOGIC_1, 0.0) | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ -
src/sndhrdw/firetrk.c:317:80: warning: implicit conversion from 'double' to 'int' changes value from 3.4 to 3 [-Wliteral-conversion] 317 | DISCRETE_SQUAREWFIX(FIRETRUCK_XTNDPLYSND, FIRETRUCK_XTNDPLY_EN, FIRETRUCK_8V, DEFAULT_TTL_V_LOGIC_1, 50.0, DEFAULT_TTL_V_LOGIC_1, 0.0) | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -
src/sndhrdw/firetrk.c:299:5: warning: implicit conversion from 'double' to 'int' changes value from 4.4 to 4 [-Wliteral-conversion] 298 | DISCRETE_RCDISC2(NODE_70, FIRETRUCK_BELL_EN, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 299 | 4.4, 10, // Q3 instantally charges C42 | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 300 | 0, RES_K(33), // discharges thru R66 | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 301 | CAP_U(10)) // C42 | ~~~~~~~~~~ -
src/sndhrdw/firetrk.c:291:88: warning: implicit conversion from 'double' to 'int' changes value from 3.4 to 3 [-Wliteral-conversion] 291 | DISCRETE_SCHMITT_OSCILLATOR(FIRETRUCK_SCREECHSND, FIRETRUCK_SKID_EN, FIRETRUCK_NOISE, DEFAULT_TTL_V_LOGIC_1, &firetrk_screech_osc) | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -
src/sndhrdw/firetrk.c:284:4: warning: implicit conversion from 'double' to 'int' changes value from 3.4 to 3 [-Wliteral-conversion] 282 | DISCRETE_DAC_R1(FIRETRUCK_BANGSND, 1, // Bang | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 283 | NODE_50, // from enable gates K9 | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 284 | DEFAULT_TTL_V_LOGIC_1, | ^~~~~~~~~~~~~~~~~~~~~~ 285 | &firetrk_bang_dac) | ~~~~~~~~~~~~~~~~~~ -
src/sndhrdw/firetrk.c:278:107: warning: implicit conversion from 'double' to 'int' changes value from 0.5 to 0 [-Wliteral-conversion] 278 | DISCRETE_LFSR_NOISE(FIRETRUCK_NOISE, FIRETRUCK_ATTRACT_INV, FIRETRUCK_ATTRACT_INV, FIRETRUCK_2V, 1.0, 0, 0.5, &firetrk_lfsr) | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~ -
src/sndhrdw/firetrk.c:260:4: warning: implicit conversion from 'double' to 'int' changes value from 3.4 to 3 [-Wliteral-conversion] 258 | DISCRETE_DAC_R1(NODE_40, 1, // IC E9, pin 7 | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 259 | FIRETRUCK_SIREN_DATA, // IC F8, pins 15,16,12,19 | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 260 | DEFAULT_TTL_V_LOGIC_1, | ^~~~~~~~~~~~~~~~~~~~~~ 261 | &firetrk_siren_cv_dac) | ~~~~~~~~~~~~~~~~~~~~~~ -
src/sndhrdw/firetrk.c:248:69: warning: implicit conversion from 'double' to 'int' changes value from 3.4 to 3 [-Wliteral-conversion] 248 | DISCRETE_SQUAREWFIX(NODE_30, FIRETRUCK_ATTRACT_INV, FIRETRUCK_64V, DEFAULT_TTL_V_LOGIC_1, 50.0, DEFAULT_TTL_V_LOGIC_1/2, 0) | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -
src/sndhrdw/firetrk.c:240:4: warning: implicit conversion from 'double' to 'int' changes value from 3.4 to 3 [-Wliteral-conversion] 239 | DISCRETE_DAC_R1(FIRETRUCK_MOTORSND, 1, NODE_26, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 240 | DEFAULT_TTL_V_LOGIC_1, | ^~~~~~~~~~~~~~~~~~~~~~ 241 | &firetrk_motor_out_dac) | ~~~~~~~~~~~~~~~~~~~~~~~ -
src/sndhrdw/firetrk.c:224:4: warning: implicit conversion from 'double' to 'int' changes value from 3.4 to 3 [-Wliteral-conversion] 222 | DISCRETE_DAC_R1(NODE_21, 1, // base of Q1 | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 223 | FIRETRUCK_MOTOR_DATA, // IC F8, pins 2,5,6,9 | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 224 | DEFAULT_TTL_V_LOGIC_1, | ^~~~~~~~~~~~~~~~~~~~~~ 225 | &firetrk_motor_v_dac) | ~~~~~~~~~~~~~~~~~~~~~ -
src/sndhrdw/firetrk.c:478:70: warning: implicit conversion from 'double' to 'int' changes value from 3.4 to 3 [-Wliteral-conversion] 478 | DISCRETE_SQUAREWFIX(SUPERBUG_ASRSND, SUPERBUG_ASR_EN, FIRETRUCK_8V, DEFAULT_TTL_V_LOGIC_1, 50.0, DEFAULT_TTL_V_LOGIC_1/2, 0.0) | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -
src/sndhrdw/firetrk.c:471:85: warning: implicit conversion from 'double' to 'int' changes value from 3.4 to 3 [-Wliteral-conversion] 471 | DISCRETE_SCHMITT_OSCILLATOR(SUPERBUG_SCREECHSND, SUPERBUG_SKID_EN, SUPERBUG_NOISE, DEFAULT_TTL_V_LOGIC_1, &superbug_screech_osc) | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -
src/sndhrdw/firetrk.c:464:4: warning: implicit conversion from 'double' to 'int' changes value from 3.4 to 3 [-Wliteral-conversion] 462 | DISCRETE_DAC_R1(SUPERBUG_BANGSND, 1, // Bang | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 463 | NODE_40, // from enable gates C8 | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 464 | DEFAULT_TTL_V_LOGIC_1, | ^~~~~~~~~~~~~~~~~~~~~~ 465 | &superbug_bang_dac) | ~~~~~~~~~~~~~~~~~~~ -
src/sndhrdw/firetrk.c:458:104: warning: implicit conversion from 'double' to 'int' changes value from 0.5 to 0 [-Wliteral-conversion] 458 | DISCRETE_LFSR_NOISE(SUPERBUG_NOISE, SUPERBUG_ATTRACT_INV, SUPERBUG_ATTRACT_INV, FIRETRUCK_2V, 1.0, 0, 0.5, &firetrk_lfsr) // Same as firetrk | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~ -
src/sndhrdw/firetrk.c:446:4: warning: implicit conversion from 'double' to 'int' changes value from 3.4 to 3 [-Wliteral-conversion] 445 | DISCRETE_DAC_R1(SUPERBUG_MOTORSND, 1, NODE_28, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 446 | DEFAULT_TTL_V_LOGIC_1, | ^~~~~~~~~~~~~~~~~~~~~~ 447 | &superbug_motor_out_dac) | ~~~~~~~~~~~~~~~~~~~~~~~~ -
src/sndhrdw/firetrk.c:428:4: warning: implicit conversion from 'double' to 'int' changes value from 3.4 to 3 [-Wliteral-conversion] 426 | DISCRETE_DAC_R1(NODE_21, 1, // base of Q1 | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 427 | SUPERBUG_SPEED_DATA, // IC B5, pins 3, 14, 6, 11 | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 428 | DEFAULT_TTL_V_LOGIC_1, | ^~~~~~~~~~~~~~~~~~~~~~ 429 | &superbug_motor_v_dac) | ~~~~~~~~~~~~~~~~~~~~~~ -
src/sndhrdw/firetrk.c:700:74: warning: implicit conversion from 'double' to 'int' changes value from 3.4 to 3 [-Wliteral-conversion] 700 | DISCRETE_SQUAREWFIX(MONTECAR_BEEPSND, MONTECAR_BEEPER_EN, FIRETRUCK_8V, DEFAULT_TTL_V_LOGIC_1, 50.0, DEFAULT_TTL_V_LOGIC_1/2, 0.0) | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -
src/sndhrdw/firetrk.c:692:73: warning: implicit conversion from 'double' to 'int' changes value from 3.4 to 3 [-Wliteral-conversion] 692 | DISCRETE_SCHMITT_OSCILLATOR(NODE_60, MONTECAR_SKID_EN, MONTECAR_NOISE, DEFAULT_TTL_V_LOGIC_1, &montecar_screech_osc) | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -
src/sndhrdw/firetrk.c:684:4: warning: implicit conversion from 'double' to 'int' changes value from 3.4 to 3 [-Wliteral-conversion] 682 | DISCRETE_DAC_R1(NODE_51, 1, // Bang | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 683 | NODE_50, // from enable gates A9 | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 684 | DEFAULT_TTL_V_LOGIC_1, | ^~~~~~~~~~~~~~~~~~~~~~ 685 | &montecar_bang_dac) | ~~~~~~~~~~~~~~~~~~~ -
src/sndhrdw/firetrk.c:678:104: warning: implicit conversion from 'double' to 'int' changes value from 0.5 to 0 [-Wliteral-conversion] 678 | DISCRETE_LFSR_NOISE(MONTECAR_NOISE, MONTECAR_ATTRACT_INV, MONTECAR_ATTRACT_INV,FIRETRUCK_2V , 1.0, 0, 0.5, &firetrk_lfsr) // Same as firetrk | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~ -
src/sndhrdw/firetrk.c:666:4: warning: implicit conversion from 'double' to 'int' changes value from 3.4 to 3 [-Wliteral-conversion] 665 | DISCRETE_DAC_R1(MONTECAR_DRONE_MOTORSND, 1, NODE_48, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 666 | DEFAULT_TTL_V_LOGIC_1, | ^~~~~~~~~~~~~~~~~~~~~~ 667 | &montecar_motor_out_dac) | ~~~~~~~~~~~~~~~~~~~~~~~~ -
src/sndhrdw/firetrk.c:648:4: warning: implicit conversion from 'double' to 'int' changes value from 3.4 to 3 [-Wliteral-conversion] 646 | DISCRETE_DAC_R1(NODE_41, 1, // base of Q7 | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 647 | MONTECAR_DRONE_MOTOR_DATA, // IC H8, pins 19, 16, 12, 15 | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 648 | DEFAULT_TTL_V_LOGIC_1, | ^~~~~~~~~~~~~~~~~~~~~~ 649 | &montecar_motor_v_dac) | ~~~~~~~~~~~~~~~~~~~~~~ -
src/sndhrdw/firetrk.c:631:4: warning: implicit conversion from 'double' to 'int' changes value from 3.4 to 3 [-Wliteral-conversion] 630 | DISCRETE_DAC_R1(MONTECAR_MOTORSND, 1, NODE_28, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 631 | DEFAULT_TTL_V_LOGIC_1, | ^~~~~~~~~~~~~~~~~~~~~~ 632 | &montecar_motor_out_dac) | ~~~~~~~~~~~~~~~~~~~~~~~~ -
src/sndhrdw/firetrk.c:613:4: warning: implicit conversion from 'double' to 'int' changes value from 3.4 to 3 [-Wliteral-conversion] 611 | DISCRETE_DAC_R1(NODE_21, 1, // base of Q7 | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 612 | MONTECAR_MOTOR_DATA, // IC H8, pins 5, 2, 9, 6 | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 613 | DEFAULT_TTL_V_LOGIC_1, | ^~~~~~~~~~~~~~~~~~~~~~ 614 | &montecar_motor_v_dac) | ~~~~~~~~~~~~~~~~~~~~~~ -
src/sndhrdw/nitedrvr.c:135:73: warning: implicit conversion from 'double' to 'int' changes value from 226.9 to 226 [-Wliteral-conversion] 135 | DISCRETE_SQUAREWAVE(NITEDRVR_SCREECH2_SND, NITEDRVR_SKID2_EN, NODE_75, 226.9, NODE_76, 0, 0.0) | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~ -
src/sndhrdw/nitedrvr.c:131:80: warning: implicit conversion from 'double' to 'int' changes value from 31.5 to 31 [-Wliteral-conversion] 131 | DISCRETE_SQUAREWAVE(NITEDRVR_SCREECH1_SND, NITEDRVR_SKID1_EN, NODE_72, 226.9, 31.5, 0, 0.0) | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~ -
src/sndhrdw/nitedrvr.c:131:73: warning: implicit conversion from 'double' to 'int' changes value from 226.9 to 226 [-Wliteral-conversion] 131 | DISCRETE_SQUAREWAVE(NITEDRVR_SCREECH1_SND, NITEDRVR_SKID1_EN, NODE_72, 226.9, 31.5, 0, 0.0) | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~ -
src/sndhrdw/orbit.c:90:70: warning: implicit conversion from 'double' to 'int' changes value from 755.4 to 755 [-Wliteral-conversion] 90 | DISCRETE_SQUAREWFIX(ORBIT_WARNING_SND, ORBIT_WARNING_EN, 15750.0/4, 755.4, 50.0, 0, 0.0) | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~ -
src/sndhrdw/poolshrk.c:143:57: warning: implicit conversion from 'double' to 'int' changes value from 3.4 to 3 [-Wliteral-conversion] 143 | DISCRETE_TRANSFORM3(POOLSHRK_CLICK_SND, 1, NODE_41, 1, 3.4, "01&2*") // Q0 output of J9, pin 14. Set to proper amplitude | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~ -
src/sndhrdw/poolshrk.c:108:4: warning: implicit conversion from 'double' to 'int' changes value from 1.0E-8 to 0 [-Wliteral-conversion] 104 | DISCRETE_555_CC(NODE_33, // IC C9, pin 3 | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 105 | NODE_31, // reset by IC C9, pin 4 | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 106 | NODE_32, // vIn from R-ladder | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 107 | 10000, // R73 | ~~~~~~~~~~~~~~~~~~~~~~ 108 | 1.e-8, // C16 | ^~~~~~~~~~~~~~~~~~~~~~ 109 | 0, 0, 0, // No rBias, rGnd or rDischarge | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 110 | &poolshrk_score_vco) | ~~~~~~~~~~~~~~~~~~~~ -
src/sndhrdw/poolshrk.c:102:4: warning: implicit conversion from 'double' to 'int' changes value from 3.4 to 3 [-Wliteral-conversion] 100 | DISCRETE_DAC_R1(NODE_32, 1, // Base of Q3 | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 101 | NODE_30, // IC E8, Q0-Q3 | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 102 | 3.4, // TTL ON level = 3.4V | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 103 | &poolshrk_score_v_dac) | ~~~~~~~~~~~~~~~~~~~~~~ -
src/sndhrdw/poolshrk.c:77:68: warning: implicit conversion from 'double' to 'int' changes value from 3.4 to 3 [-Wliteral-conversion] 77 | DISCRETE_SQUAREWFIX(NODE_20, POOLSHRK_BUMP_EN, 15750.0/2.0/128.0, 3.4, 50.0, 3.4/2, 0.0) // 128V signal 3.4V | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~ -
src/vidhrdw/skullxbo.c:300:23: warning: shifting a negative signed value is undefined [-Wshift-negative-value] 300 | pf[x] = mo[x] & ATARIMO_DATA_MASK; | ^~~~~~~~~~~~~~~~~ -
src/sndhrdw/skydiver.c:135:48: warning: implicit conversion from 'double' to 'int' changes value from 1.0E-8 to 0 [-Wliteral-conversion] 135 | DISCRETE_SWITCH(NODE_38, 1, SKYDIVER_OCT2_EN, 1e-8, 1e-8 + 3.3e-9) /* Cap C72 & C59 */ | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~ -
src/sndhrdw/skydiver.c:133:64: warning: implicit conversion from 'double' to 'int' changes value from 0.33 to 0 [-Wliteral-conversion] 133 | DISCRETE_MULTADD(NODE_36, 1, SKYDIVER_WHISTLE2_EN, 3.05-0.33, 0.33) | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~ -
src/sndhrdw/skydiver.c:128:48: warning: implicit conversion from 'double' to 'int' changes value from 1.0E-8 to 0 [-Wliteral-conversion] 128 | DISCRETE_SWITCH(NODE_33, 1, SKYDIVER_OCT1_EN, 1e-8, 1e-8 + 3.3e-9) /* Cap C73 & C58 */ | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~ -
src/sndhrdw/skydiver.c:126:64: warning: implicit conversion from 'double' to 'int' changes value from 0.33 to 0 [-Wliteral-conversion] 126 | DISCRETE_MULTADD(NODE_31, 1, SKYDIVER_WHISTLE1_EN, 3.05-0.33, 0.33) | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~ -
src/sndhrdw/sprint2.c:215:84: warning: implicit conversion from 'double' to 'int' changes value from 3.4 to 3 [-Wliteral-conversion] 215 | DISCRETE_SCHMITT_OSCILLATOR(SPRINT2_SKIDSND2, SPRINT2_SKIDSND2_EN, SPRINT2_NOISE, DEFAULT_TTL_V_LOGIC_1, &sprint2_screech_osc) | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -
src/sndhrdw/sprint2.c:213:84: warning: implicit conversion from 'double' to 'int' changes value from 3.4 to 3 [-Wliteral-conversion] 213 | DISCRETE_SCHMITT_OSCILLATOR(SPRINT2_SKIDSND1, SPRINT2_SKIDSND1_EN, SPRINT2_NOISE, DEFAULT_TTL_V_LOGIC_1, &sprint2_screech_osc) | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -
src/sndhrdw/sprint2.c:208:48: warning: implicit conversion from 'double' to 'int' changes value from 3.4 to 3 [-Wliteral-conversion] 208 | DISCRETE_DAC_R1(SPRINT2_CRASHSND, 1, NODE_60, DEFAULT_TTL_V_LOGIC_1, &sprint2_crash_dac) | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -
src/sndhrdw/sprint2.c:204:99: warning: implicit conversion from 'double' to 'int' changes value from 0.5 to 0 [-Wliteral-conversion] 204 | DISCRETE_LFSR_NOISE(SPRINT2_NOISE, SPRINT2_NOISE_RESET, SPRINT2_NOISE_RESET, SPRINT2_2V, 1.0, 0, 0.5, &sprint2_lfsr) | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~ -
src/sndhrdw/sprint2.c:194:4: warning: implicit conversion from 'double' to 'int' changes value from 3.4 to 3 [-Wliteral-conversion] 193 | DISCRETE_DAC_R1(SPRINT2_MOTORSND2, 1, NODE_48, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 194 | DEFAULT_TTL_V_LOGIC_1, | ^~~~~~~~~~~~~~~~~~~~~~ 195 | &sprint2_motor_out_dac) | ~~~~~~~~~~~~~~~~~~~~~~~ -
src/sndhrdw/sprint2.c:169:4: warning: implicit conversion from 'double' to 'int' changes value from 3.4 to 3 [-Wliteral-conversion] 167 | DISCRETE_DAC_R1(NODE_41, 1, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~ 168 | SPRINT2_MOTORSND2_DATA, | ~~~~~~~~~~~~~~~~~~~~~~~ 169 | DEFAULT_TTL_V_LOGIC_1, | ^~~~~~~~~~~~~~~~~~~~~~ 170 | &sprint2_motor_v_dac) | ~~~~~~~~~~~~~~~~~~~~~ -
src/sndhrdw/sprint2.c:156:4: warning: implicit conversion from 'double' to 'int' changes value from 3.4 to 3 [-Wliteral-conversion] 155 | DISCRETE_DAC_R1(SPRINT2_MOTORSND1, 1, NODE_28, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 156 | DEFAULT_TTL_V_LOGIC_1, | ^~~~~~~~~~~~~~~~~~~~~~ 157 | &sprint2_motor_out_dac) | ~~~~~~~~~~~~~~~~~~~~~~~ -
src/sndhrdw/sprint2.c:131:4: warning: implicit conversion from 'double' to 'int' changes value from 3.4 to 3 [-Wliteral-conversion] 129 | DISCRETE_DAC_R1(NODE_21, 1, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~ 130 | SPRINT2_MOTORSND1_DATA, | ~~~~~~~~~~~~~~~~~~~~~~~ 131 | DEFAULT_TTL_V_LOGIC_1, | ^~~~~~~~~~~~~~~~~~~~~~ 132 | &sprint2_motor_v_dac) | ~~~~~~~~~~~~~~~~~~~~~ -
src/sndhrdw/sprint2.c:298:84: warning: implicit conversion from 'double' to 'int' changes value from 3.4 to 3 [-Wliteral-conversion] 298 | DISCRETE_SCHMITT_OSCILLATOR(SPRINT2_SKIDSND1, SPRINT2_SKIDSND1_EN, SPRINT2_NOISE, DEFAULT_TTL_V_LOGIC_1, &sprint2_screech_osc) | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -
src/sndhrdw/sprint2.c:293:48: warning: implicit conversion from 'double' to 'int' changes value from 3.4 to 3 [-Wliteral-conversion] 293 | DISCRETE_DAC_R1(SPRINT2_CRASHSND, 1, NODE_60, DEFAULT_TTL_V_LOGIC_1, &sprint2_crash_dac) | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -
src/sndhrdw/sprint2.c:289:99: warning: implicit conversion from 'double' to 'int' changes value from 0.5 to 0 [-Wliteral-conversion] 289 | DISCRETE_LFSR_NOISE(SPRINT2_NOISE, SPRINT2_NOISE_RESET, SPRINT2_NOISE_RESET, SPRINT2_2V, 1.0, 0, 0.5, &sprint2_lfsr) | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~ -
src/sndhrdw/sprint2.c:279:4: warning: implicit conversion from 'double' to 'int' changes value from 3.4 to 3 [-Wliteral-conversion] 278 | DISCRETE_DAC_R1(SPRINT2_MOTORSND1, 1, NODE_28, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 279 | DEFAULT_TTL_V_LOGIC_1, | ^~~~~~~~~~~~~~~~~~~~~~ 280 | &sprint2_motor_out_dac) | ~~~~~~~~~~~~~~~~~~~~~~~ -
src/sndhrdw/sprint2.c:254:4: warning: implicit conversion from 'double' to 'int' changes value from 3.4 to 3 [-Wliteral-conversion] 252 | DISCRETE_DAC_R1(NODE_21, 1, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~ 253 | SPRINT2_MOTORSND1_DATA, | ~~~~~~~~~~~~~~~~~~~~~~~ 254 | DEFAULT_TTL_V_LOGIC_1, | ^~~~~~~~~~~~~~~~~~~~~~ 255 | &sprint2_motor_v_dac) | ~~~~~~~~~~~~~~~~~~~~~ -
src/sndhrdw/sprint2.c:394:72: warning: implicit conversion from 'double' to 'int' changes value from 3.4 to 3 [-Wliteral-conversion] 394 | DISCRETE_SQUAREWFIX(DOMINOS_TOPPLE_SND, DOMINOS_TUMBLE_EN, 15750.0/8, DEFAULT_TTL_V_LOGIC_1, 50.0, DEFAULT_TTL_V_LOGIC_1/2, 0) | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -
src/sndhrdw/sprint2.c:387:48: warning: implicit conversion from 'double' to 'int' changes value from 3.4 to 3 [-Wliteral-conversion] 387 | DISCRETE_DAC_R1(DOMINOS_TONE_SND, 1, NODE_24, DEFAULT_TTL_V_LOGIC_1, &dominos_tone_dac) | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -
src/sndhrdw/sprint2.c:380:49: warning: implicit conversion from 'double' to 'int' changes value from 3.4 to 3 [-Wliteral-conversion] 380 | DISCRETE_DAC_R1(NODE_20, 1, DOMINOS_FREQ_DATA, DEFAULT_TTL_V_LOGIC_1, &dominos_tone_vco_dac) | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -
src/sndhrdw/sprint4.c:201:52: warning: implicit conversion from 'double' to 'int' changes value from 31.5 to 31 [-Wliteral-conversion] 201 | DISCRETE_SQUAREWAVE(NODE_133, 1, NODE_132, 407.8, 31.5, 0, 0.0) | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~ -
src/sndhrdw/sprint4.c:201:45: warning: implicit conversion from 'double' to 'int' changes value from 407.8 to 407 [-Wliteral-conversion] 201 | DISCRETE_SQUAREWAVE(NODE_133, 1, NODE_132, 407.8, 31.5, 0, 0.0) | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~ -
src/sndhrdw/subs.c:132:59: warning: implicit conversion from 'double' to 'int' changes value from 320.8 to 320 [-Wliteral-conversion] 132 | DISCRETE_TRIANGLEWAVE(SUBS_SONAR2_SND, NODE_52, NODE_51, 320.8, 0.0, 0) | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~ -
src/sndhrdw/subs.c:127:59: warning: implicit conversion from 'double' to 'int' changes value from 320.8 to 320 [-Wliteral-conversion] 127 | DISCRETE_TRIANGLEWAVE(SUBS_SONAR1_SND, NODE_42, NODE_41, 320.8, 0.0, 0) | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~ -
src/sndhrdw/tank8.c:211:71: warning: implicit conversion from 'double' to 'int' changes value from 1.7 to 1 [-Wliteral-conversion] 211 | DISCRETE_SQUAREWAVE2(NODE_112,TANK8_BUGLE_EN,3.4, NODE_110, NODE_111,1.7,0) | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~ -
src/sndhrdw/tank8.c:211:47: warning: implicit conversion from 'double' to 'int' changes value from 3.4 to 3 [-Wliteral-conversion] 211 | DISCRETE_SQUAREWAVE2(NODE_112,TANK8_BUGLE_EN,3.4, NODE_110, NODE_111,1.7,0) | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -
src/sndhrdw/tank8.c:197:48: warning: implicit conversion from 'double' to 'int' changes value from 3.6 to 3 [-Wliteral-conversion] 197 | DISCRETE_DAC_R1(NODE_102, 1, TANK8_MOTOR8_EN, 3.6, &tank8_dac) | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~ -
src/sndhrdw/tank8.c:190:47: warning: implicit conversion from 'double' to 'int' changes value from 3.6 to 3 [-Wliteral-conversion] 190 | DISCRETE_DAC_R1(NODE_92, 1, TANK8_MOTOR7_EN, 3.6, &tank8_dac) | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~ -
src/sndhrdw/tank8.c:183:47: warning: implicit conversion from 'double' to 'int' changes value from 3.6 to 3 [-Wliteral-conversion] 183 | DISCRETE_DAC_R1(NODE_82, 1, TANK8_MOTOR6_EN, 3.6, &tank8_dac) | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~ -
src/sndhrdw/tank8.c:176:47: warning: implicit conversion from 'double' to 'int' changes value from 3.6 to 3 [-Wliteral-conversion] 176 | DISCRETE_DAC_R1(NODE_72, 1, TANK8_MOTOR5_EN, 3.6, &tank8_dac) | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~ -
src/sndhrdw/tank8.c:169:47: warning: implicit conversion from 'double' to 'int' changes value from 3.6 to 3 [-Wliteral-conversion] 169 | DISCRETE_DAC_R1(NODE_62, 1, TANK8_MOTOR4_EN, 3.6, &tank8_dac) | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~ -
src/sndhrdw/tank8.c:162:47: warning: implicit conversion from 'double' to 'int' changes value from 3.6 to 3 [-Wliteral-conversion] 162 | DISCRETE_DAC_R1(NODE_52, 1, TANK8_MOTOR3_EN, 3.6, &tank8_dac) | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~ -
src/sndhrdw/tank8.c:155:47: warning: implicit conversion from 'double' to 'int' changes value from 3.6 to 3 [-Wliteral-conversion] 155 | DISCRETE_DAC_R1(NODE_42, 1, TANK8_MOTOR2_EN, 3.6, &tank8_dac) | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~ -
src/sndhrdw/tank8.c:148:47: warning: implicit conversion from 'double' to 'int' changes value from 3.6 to 3 [-Wliteral-conversion] 148 | DISCRETE_DAC_R1(NODE_32, 1, TANK8_MOTOR1_EN, 3.6, &tank8_dac) | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~ -
src/vidhrdw/thunderj.c:271:23: warning: shifting a negative signed value is undefined [-Wshift-negative-value] 271 | pf[x] = mo[x] & ATARIMO_DATA_MASK; | ^~~~~~~~~~~~~~~~~ -
src/sndhrdw/triplhnt.c:163:89: warning: implicit conversion from 'double' to 'int' changes value from 3.4 to 3 [-Wliteral-conversion] 163 | DISCRETE_SCHMITT_OSCILLATOR(TRIPLHNT_SCREECH_SND, TRIPLHNT_SCREECH_EN, TRIPLHNT_NOISE, 3.4, &triplhnt_screech_osc) | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ -
src/sndhrdw/triplhnt.c:156:4: warning: implicit conversion from 'double' to 'int' changes value from 3.4 to 3 [-Wliteral-conversion] 154 | DISCRETE_DAC_R1(TRIPLHNT_SHOT_SND, 1, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 155 | NODE_40, | ~~~~~~~~ 156 | DEFAULT_TTL_V_LOGIC_1, | ^~~~~~~~~~~~~~~~~~~~~~ 157 | &triplhnt_shot_dac) | ~~~~~~~~~~~~~~~~~~~ -
src/sndhrdw/triplhnt.c:144:4: warning: implicit conversion from 'double' to 'int' changes value from 3.4 to 3 [-Wliteral-conversion] 143 | DISCRETE_DAC_R1(TRIPLHNT_BEAR_ROAR_SND, 1, NODE_29, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 144 | DEFAULT_TTL_V_LOGIC_1, | ^~~~~~~~~~~~~~~~~~~~~~ 145 | &triplhnt_bear_roar_out_dac) | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -
src/sndhrdw/triplhnt.c:129:4: warning: implicit conversion from 'double' to 'int' changes value from 1.0E-8 to 0 [-Wliteral-conversion] 126 | DISCRETE_555_CC(NODE_22, 1, // IC C11 pin 3, always enabled | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 127 | NODE_21, // vIn | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 128 | NODE_20, // current adjust | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 129 | 1.e-8, // C58 | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 130 | 0, 390000, 0, // no rBias, R87, no rDis | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 131 | &triplhnt_bear_roar_vco) | ~~~~~~~~~~~~~~~~~~~~~~~~ -
src/sndhrdw/triplhnt.c:124:4: warning: implicit conversion from 'double' to 'int' changes value from 3.4 to 3 [-Wliteral-conversion] 122 | DISCRETE_DAC_R1(NODE_21, 1, // base of Q2 | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 123 | TRIPLHNT_BEAR_ROAR_DATA, // IC B10, Q0-Q3 | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 124 | DEFAULT_TTL_V_LOGIC_1, // TTL ON level | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 125 | &triplhnt_bear_roar_v_dac) | ~~~~~~~~~~~~~~~~~~~~~~~~~~ -
src/sndhrdw/triplhnt.c:113:5: warning: implicit conversion from 'double' to 'int' changes value from 3.4 to 3 [-Wliteral-conversion] 110 | DISCRETE_LFSR_NOISE(TRIPLHNT_NOISE, // Output A7 pin 13 | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 111 | TRIPLHNT_LAMP_EN, TRIPLHNT_LAMP_EN, // From gate A8 pin 10 | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 112 | 12096000.0/2/256, // 256H signal | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 113 | DEFAULT_TTL_V_LOGIC_1, 0, DEFAULT_TTL_V_LOGIC_1/2, &triplhnt_lfsr) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -
src/sndhrdw/videopin.c:90:46: warning: implicit conversion from 'double' to 'int' changes value from 740.2 to 740 [-Wliteral-conversion] 90 | DISCRETE_RCDISC2(NODE_30, VIDEOPIN_BELL_EN, 740.2, 1, 0, 1e6, 1e-6) | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~ -
src/vidhrdw/vindictr.c:272:23: warning: shifting a negative signed value is undefined [-Wshift-negative-value] 272 | pf[x] = mo[x] & ATARIMO_DATA_MASK; | ^~~~~~~~~~~~~~~~~ -
src/vidhrdw/xybots.c:154:35: warning: shifting a negative signed value is undefined [-Wshift-negative-value] 154 | pf[x] = (mo[x] ^ 0x2f0) & ATARIMO_DATA_MASK; | ^~~~~~~~~~~~~~~~~ -
src/vidhrdw/xybots.c:156:25: warning: shifting a negative signed value is undefined [-Wshift-negative-value] 156 | pf[x] = mo[x] & ATARIMO_DATA_MASK; | ^~~~~~~~~~~~~~~~~ -
src/vidhrdw/xybots.c:162:24: warning: shifting a negative signed value is undefined [-Wshift-negative-value] 162 | pf[x] = mo[x] & ATARIMO_DATA_MASK; | ^~~~~~~~~~~~~~~~~ -
src/vidhrdw/atarimo.c:541:10: warning: array index -1 is before the beginning of the array [-Warray-bounds] 541 | rect = &mo->rectlist[-1]; | ^ ~~ -
src/machine/vacfdisp.c:613:42: warning: implicit conversion from 'double' to 'int' changes value from 9.5 to 9 [-Wliteral-conversion] 613 | plot_box(bitmap, x+(7*cursor), y+1, 1, 9.5, (vfd_get_segments(vfd)[cursor] & 0x0001) ? col_on : col_off);//0 | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -
src/machine/vacfdisp.c:614:44: warning: implicit conversion from 'double' to 'int' changes value from 9.5 to 9 [-Wliteral-conversion] 614 | plot_box(bitmap, x+4+(7*cursor), y+1, 1, 9.5, (vfd_get_segments(vfd)[cursor] & 0x0002) ? col_on : col_off);//1 | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -
src/machine/vacfdisp.c:616:44: warning: implicit conversion from 'double' to 'int' changes value from 9.5 to 9 [-Wliteral-conversion] 616 | plot_box(bitmap, x+2+(7*cursor), y+1, 1, 9.5, (vfd_get_segments(vfd)[cursor] & 0x0008) ? col_on : col_off);//3 | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -
src/machine/vacfdisp.c:617:47: warning: implicit conversion from 'double' to 'int' changes value from 9.5 to 9 [-Wliteral-conversion] 617 | plot_box(bitmap, x+4+(7*cursor), y+10.5, 1, 9.5, (vfd_get_segments(vfd)[cursor] & 0x0020) ? col_on : col_off);//5 | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -
src/machine/vacfdisp.c:628:47: warning: implicit conversion from 'double' to 'int' changes value from 9.5 to 9 [-Wliteral-conversion] 628 | plot_box(bitmap, x+2+(7*cursor), y+11.5, 1, 9.5, (vfd_get_segments(vfd)[cursor] & 0x0400) ? col_on : col_off);//10 | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -
src/machine/vacfdisp.c:632:45: warning: implicit conversion from 'double' to 'int' changes value from 9.5 to 9 [-Wliteral-conversion] 632 | plot_box(bitmap, x+(7*cursor), y+10.5, 1, 9.5, (vfd_get_segments(vfd)[cursor] & 0x2000) ? col_on : col_off);//13 | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -
src/sndhrdw/cchasm.c:174:12: warning: cast to smaller integer type 'int' from 'void *' [-Wvoid-pointer-to-int-cast] 174 | int num = (int)param; | ^~~~~~~~~~ -
src/drivers/cvs.c:375:21: warning: implicit conversion from 'double' to 'int' changes value from 894886.25 to 894886 [-Wliteral-conversion] 375 | MDRV_CPU_ADD(S2650,894886.25) | ~~~~~~~~~~~~~~~~~~~^~~~~~~~~~ -
src/drivers/cvs.c:380:21: warning: implicit conversion from 'double' to 'int' changes value from 894886.25 to 894886 [-Wliteral-conversion] 380 | MDRV_CPU_ADD(S2650,894886.25) | ~~~~~~~~~~~~~~~~~~~^~~~~~~~~~ -
src/sndhrdw/circus.c:131:67: warning: implicit conversion from 'double' to 'int' changes value from 0.5 to 0 [-Wliteral-conversion] 131 | DISCRETE_MULTADD(CRASH_MUSIC_SND, 1, CRASH_MUSIC_BIT, CRASH_R63, 0.5) | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~ -
src/drivers/gaelco3d.c:379:14: warning: cast to smaller integer type 'int' from 'void *' [-Wvoid-pointer-to-int-cast] 379 | int which = (int)param; | ^~~~~~~~~~ -
src/vidhrdw/megasys1.c:370:13: warning: cast to smaller integer type 'int' from 'void *' [-Wvoid-pointer-to-int-cast] 370 | int tmap = (int)tile_info.user_data; | ^~~~~~~~~~~~~~~~~~~~~~~~ -
src/vidhrdw/megasys1.c:377:13: warning: cast to smaller integer type 'int' from 'void *' [-Wvoid-pointer-to-int-cast] 377 | int tmap = (int)tile_info.user_data; | ^~~~~~~~~~~~~~~~~~~~~~~~ -
src/vidhrdw/megasys1.c:411:61: warning: cast to 'void *' from smaller integer type 'int' [-Wint-to-void-pointer-cast] 411 | tilemap_set_user_data(megasys1_tilemap[layer][i/4][i%4], (void *)layer); | ^~~~~~~~~~~~~ -
src/machine/scramble.c:1424:18: warning: logical not is only applied to the left hand side of this bitwise operator [-Wlogical-not-parentheses] 1424 | if (bits[3] ^ (!bits[0] & bits[2])) xormask ^= 0x08; | ^ ~ -
src/machine/scramble.c:1425:18: warning: logical not is only applied to the left hand side of this bitwise operator [-Wlogical-not-parentheses] 1425 | if (bits[5] ^ (!bits[4] & bits[1])) xormask ^= 0x10; | ^ ~ -
src/machine/scramble.c:1428:18: warning: logical not is only applied to the left hand side of this bitwise operator [-Wlogical-not-parentheses] 1428 | if (bits[7] ^ (!bits[1] & bits[0])) xormask ^= 0x80; | ^ ~ -
src/sndhrdw/8080bw.c:452:39: warning: implicit conversion from 'double' to 'int' changes value from 3.4 to 3 [-Wliteral-conversion] 452 | DISCRETE_DAC_R1(NODE_22, 1, NODE_21, DEFAULT_TTL_V_LOGIC_1, &indianbt_music_dac) | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -
src/sndhrdw/8080bw.c:681:46: warning: implicit conversion from 'double' to 'int' changes value from 800.8 to 800 [-Wliteral-conversion] 681 | DISCRETE_LFSR_NOISE(POLARIS_NOISE_LO, 1, 1, 800.8, (12.0 - OP_AMP_NORTON_VBE), NODE_44, (12.0 - OP_AMP_NORTON_VBE)/2, &polaris_lfsr) // Unfiltered Lo noise. 7K pin 4. | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -
src/sndhrdw/8080bw.c:640:39: warning: implicit conversion from 'double' to 'int' changes value from 3.4 to 3 [-Wliteral-conversion] 640 | DISCRETE_DAC_R1(NODE_31, 1, NODE_30, DEFAULT_TTL_V_LOGIC_1, &polaris_music_dac) | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -
src/sndhrdw/8080bw.c:1050:46: warning: implicit conversion from 'double' to 'int' changes value from 3.4 to 3 [-Wliteral-conversion] 1050 | DISCRETE_SQUAREWFIX(NODE_21, 1, SCHASER_8V, DEFAULT_TTL_V_LOGIC_1, 50, 0, 0) | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -
src/sndhrdw/8080bw.c:1049:46: warning: implicit conversion from 'double' to 'int' changes value from 3.4 to 3 [-Wliteral-conversion] 1049 | DISCRETE_SQUAREWFIX(NODE_20, 1, SCHASER_4V, DEFAULT_TTL_V_LOGIC_1, 50, 0, 0) | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -
src/sndhrdw/snes.c:155:31: warning: array index -1 is before the beginning of the array [-Warray-bounds] 155 | static const int * G4 = &gauss[ -1 ]; | ^ ~~ -
src/sndhrdw/phoenix.c:345:39: warning: implicit conversion from 'double' to 'int' changes value from 3.4 to 3 [-Wliteral-conversion] 345 | DISCRETE_SWITCH(NODE_32, 1, NODE_31, DEFAULT_TTL_V_LOGIC_1, DEFAULT_TTL_V_LOGIC_1/2) | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -
src/sndhrdw/phoenix.c:332:53: warning: implicit conversion from 'double' to 'int' changes value from 3.4 to 3 [-Wliteral-conversion] 332 | DISCRETE_SWITCH(NODE_23, 1, PHOENIX_EFFECT_1_FILT, DEFAULT_TTL_V_LOGIC_1, DEFAULT_TTL_V_LOGIC_1 * RES_K(100) / (RES_K(10) + RES_K(100))) // R20, R19 | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -
src/sndhrdw/hitme.c:56:45: warning: implicit conversion from 'double' to 'int' changes value from 0.5 to 0 [-Wliteral-conversion] 56 | DISCRETE_SQUAREWAVE(NODE_17,1,NODE_16,1,50,0.5,0) | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~ -
src/sndhrdw/blockade.c:31:34: warning: implicit conversion from 'double' to 'int' changes value from 93681.5 to 93681 [-Wliteral-conversion] 31 | DISCRETE_NOTE(BLOCKADE_NOTE, 1, 93681.5, BLOCKADE_NOTE_DATA, 255, 1, DISC_CLK_IS_FREQ | DISC_OUT_IS_ENERGY) | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -
src/drivers/stv.c:509:14: warning: equality comparison with extraneous parentheses [-Wparentheses-equality] 509 | if ((offset == 0x61)) // ?? many games need this or the controls don't work | ~~~~~~~^~~~~~~ -
src/sndhrdw/vicdual.c:91:47: warning: implicit conversion from 'double' to 'int' changes value from 0.5 to 0 [-Wliteral-conversion] 91 | DISCRETE_TRANSFORM5(NODE_31, 1, 12, NODE_30, .5, RES_K(22)/RES_K(39), 0, "012-P4>*3*-") | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -
src/sndhrdw/spiders.c:141:49: warning: implicit conversion from 'double' to 'int' changes value from 2.75 to 2 [-Wliteral-conversion] 141 | DISCRETE_ASWITCH(NODE_64, 1, NODE_61, NODE_63, DISC_CD4066_THRESHOLD) | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~ -
src/sndhrdw/spiders.c:139:32: warning: implicit conversion from 'double' to 'int' changes value from 3.4 to 3 [-Wliteral-conversion] 139 | DISCRETE_MULTIPLY(NODE_62, 1, DEFAULT_TTL_V_LOGIC_1, SPIDERS_SUPER_WEB_EXPL_EN) | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -
src/sndhrdw/spiders.c:137:42: warning: implicit conversion from 'double' to 'int' changes value from 3.4 to 3 [-Wliteral-conversion] 137 | DISCRETE_DAC_R1(NODE_60, 1, NODE_32, DEFAULT_TTL_V_LOGIC_1, &spiders_web_exp_dac) | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -
src/sndhrdw/spiders.c:134:52: warning: implicit conversion from 'double' to 'int' changes value from 2.75 to 2 [-Wliteral-conversion] 134 | DISCRETE_ASWITCH(NODE_53, 1, NODE_52, NODE_51, DISC_CD4066_THRESHOLD) | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~ -
src/sndhrdw/spiders.c:133:32: warning: implicit conversion from 'double' to 'int' changes value from 3.4 to 3 [-Wliteral-conversion] 133 | DISCRETE_MULTIPLY(NODE_52, 1, DEFAULT_TTL_V_LOGIC_1, NODE_32) // Noise 0/1 -> TTL | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -
src/sndhrdw/spiders.c:131:32: warning: implicit conversion from 'double' to 'int' changes value from 3.4 to 3 [-Wliteral-conversion] 131 | DISCRETE_MULTIPLY(NODE_50, 1, DEFAULT_TTL_V_LOGIC_1, SPIDERS_EXP_EN) | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -
src/sndhrdw/spiders.c:128:48: warning: implicit conversion from 'double' to 'int' changes value from 2.75 to 2 [-Wliteral-conversion] 128 | DISCRETE_ASWITCH(NODE_46,1, NODE_44, NODE_45, DISC_CD4066_THRESHOLD) | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~ -
src/sndhrdw/spiders.c:124:56: warning: implicit conversion from 'double' to 'int' changes value from 24.5 to 24 [-Wliteral-conversion] 124 | DISCRETE_TRANSFORM4(NODE_43,1, NODE_40, NODE_42, 2.5, 24.5,"012*3/-") | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~ -
src/sndhrdw/spiders.c:124:51: warning: implicit conversion from 'double' to 'int' changes value from 2.5 to 2 [-Wliteral-conversion] 124 | DISCRETE_TRANSFORM4(NODE_43,1, NODE_40, NODE_42, 2.5, 24.5,"012*3/-") | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~ -
src/sndhrdw/spiders.c:122:32: warning: implicit conversion from 'double' to 'int' changes value from 3.4 to 3 [-Wliteral-conversion] 122 | DISCRETE_MULTIPLY(NODE_41, 1, DEFAULT_TTL_V_LOGIC_1, SPIDERS_FIRE_EN) | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -
src/sndhrdw/spiders.c:119:39: warning: implicit conversion from 'double' to 'int' changes value from 3.4 to 3 [-Wliteral-conversion] 119 | DISCRETE_DAC_R1(NODE_40, 1, NODE_32, DEFAULT_TTL_V_LOGIC_1, &spiders_fire_dac) | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -
src/sndhrdw/spiders.c:115:75: warning: implicit conversion from 'double' to 'int' changes value from 0.5 to 0 [-Wliteral-conversion] 115 | DISCRETE_SQUAREWFIX(NODE_31, 1, SPIDERS_SOUND_CLK/(10*10*16),1, 50.0, 0.5, 0) /* 3.75 kHz */ | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~ -
src/sndhrdw/spiders.c:114:69: warning: implicit conversion from 'double' to 'int' changes value from 0.5 to 0 [-Wliteral-conversion] 114 | DISCRETE_LFSR_NOISE(NODE_30, 1, 1, SPIDERS_SOUND_CLK/(1000), 1, 0, 0.5, &spiders_lfsr) | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~ -
src/sndhrdw/spiders.c:109:39: warning: implicit conversion from 'double' to 'int' changes value from 3.4 to 3 [-Wliteral-conversion] 109 | DISCRETE_DAC_R1(NODE_22, 1, NODE_21, DEFAULT_TTL_V_LOGIC_1, &spiders_sound_dac) | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -
src/vidhrdw/arabian.c:95:24: warning: logical not is only applied to the left hand side of this bitwise operator [-Wlogical-not-parentheses] 95 | int rlo = planea ? ((!arhf & az) ? 0 : ar) : enb ? br : 0; | ^ ~ -
src/vidhrdw/arabian.c:126:24: warning: logical not is only applied to the left hand side of this bitwise operator [-Wlogical-not-parentheses] 126 | int glo = planea ? ((!aghf & az) ? 0 : ag) : enb ? bg : 0; | ^ ~ -
src/vidhrdw/arabian.c:147:16: warning: logical not is only applied to the left hand side of this bitwise operator [-Wlogical-not-parentheses] 147 | int bbase = (!abhf & az) ? 0 : ab; | ^ ~ -
src/drivers/changela.c:618:8: warning: logical not is only applied to the left hand side of this bitwise operator [-Wlogical-not-parentheses] 618 | if (!pSource[1]&0x10) /* D4=0 enables latch at U32 */ | ^ ~ -
src/sndhrdw/crbaloon.c:67:55: warning: implicit conversion from 'double' to 'int' changes value from 3.4 to 3 [-Wliteral-conversion] 67 | DISCRETE_DAC_R1(NODE_21, CRBALOON_MUSIC_EN, NODE_20, DEFAULT_TTL_V_LOGIC_1, &desc_crbaloon_music_dac) | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -
src/sndhrdw/grchamp.c:55:46: warning: implicit conversion from 'double' to 'int' changes value from 3.4 to 3 [-Wliteral-conversion] 55 | DISCRETE_DAC_R1(NODE_21, 1, GRCHAMP_B_DATA, DEFAULT_TTL_V_LOGIC_1, &grchamp_sound_dac2) | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -
src/sndhrdw/grchamp.c:53:46: warning: implicit conversion from 'double' to 'int' changes value from 3.4 to 3 [-Wliteral-conversion] 53 | DISCRETE_DAC_R1(NODE_20, 1, GRCHAMP_A_DATA, DEFAULT_TTL_V_LOGIC_1, &grchamp_sound_dac1) | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -
src/vidhrdw/taito_f3.c:1904:48: warning: shifting a negative signed value is undefined [-Wshift-negative-value] 1904 | if (f3_game_config->extend) sx=-sx+((188-512)<<16); else sx=-sx+(188<<16); /* Adjust for flipped scroll position */ | ~~~~~~~~~^ -
src/vidhrdw/toaplan1.c:185:36: warning: format specifies type 'unsigned int' but the argument has type 'size_t' (aka 'unsigned long') [-Wformat] 185 | logerror("colorram_size: %08x\n", toaplan1_colorram1_size + toaplan1_colorram2_size); | ~~~~ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | %08zx -
src/vidhrdw/twincobr.c:352:17: warning: shift count >= width of type [-Wshift-count-overflow] 352 | case 01: data <<= 8; | ^ ~ -
src/vidhrdw/twincobr.c:354:17: warning: shift count >= width of type [-Wshift-count-overflow] 354 | case 03: data <<= 8; | ^ ~ -
src/vidhrdw/cosmic.c:377:9: warning: logical not is only applied to the left hand side of this bitwise operator [-Wlogical-not-parentheses] 377 | if ((!(hc & va) & (vb ^ hb_)) && /* right network */ | ^ ~ -
src/vidhrdw/cosmic.c:535:9: warning: logical not is only applied to the left hand side of this bitwise operator [-Wlogical-not-parentheses] 535 | if ((!vb_ & vc_ & !vd_) ^ (vb_ & !vc_ & vd_)) | ^ ~ -
src/vidhrdw/cosmic.c:538:9: warning: logical not is only applied to the left hand side of this bitwise operator [-Wlogical-not-parentheses] 538 | if (!hd_ & hc_ & !hb_) | ^ ~ -
src/vidhrdw/cosmic.c:569:15: warning: logical not is only applied to the left hand side of this bitwise operator [-Wlogical-not-parentheses] 569 | (!plane1 & hd) << 2; // B - see above | ^ ~ -
src/drivers/nmg5.c:704:2: warning: 'sizeof (nmg5_bitmap)' will return the size of the pointer, not the array itself [-Wsizeof-pointer-div] 704 | state_save_register_item_array("nmg5", 0, nmg5_bitmap); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -
src/drivers/micro3d.c:628:19: warning: array index 8 is past the end of the array (that has type 'UINT8[8]' (aka 'unsigned char[8]')) [-Warray-bounds] 628 | case 0x3: ti_uart[COMMAND] = data; | ^ ~~~~~~~ -
src/drivers/micro3d.c:657:26: warning: array index 8 is past the end of the array (that has type 'UINT8[8]' (aka 'unsigned char[8]')) [-Warray-bounds] 657 | return ti_uart[COMMAND]; | ^ ~~~~~~~ -
src/drivers/micro3d.c:797:28: warning: cast to smaller integer type 'int' from 'UINT8 (*)(offs_t)' (aka 'unsigned char (*)(unsigned int)') [-Wpointer-to-int-cast] 797 | case 0x03: return (int)(upd7759_0_busy_r)<<3; | ^~~~~~~~~~~~~~~~~~~~~~~ -
src/machine/6840ptm.c:103:23: warning: if statement has empty body [-Wempty-body] 103 | if ( ptm[i].timer1 );// mame_timer_remove( ptm[i].timer1 ); | ^ -
src/machine/6840ptm.c:107:23: warning: if statement has empty body [-Wempty-body] 107 | if ( ptm[i].timer2 );// mame_timer_remove( ptm[i].timer2 ); | ^ -
src/machine/6840ptm.c:111:23: warning: if statement has empty body [-Wempty-body] 111 | if ( ptm[i].timer3 );// mame_timer_remove( ptm[i].timer3 ); | ^ -
src/machine/74148.c:84:13: warning: logical not is only applied to the left hand side of this bitwise operator [-Wlogical-not-parentheses] 84 | bit0 = !((!chips[which].input_lines[1] & | ^ ~ -
src/machine/74148.c:88:13: warning: logical not is only applied to the left hand side of this bitwise operator [-Wlogical-not-parentheses] 88 | (!chips[which].input_lines[3] & | ^ ~ -
src/machine/74148.c:91:13: warning: logical not is only applied to the left hand side of this bitwise operator [-Wlogical-not-parentheses] 91 | (!chips[which].input_lines[5] & | ^ ~ -
src/machine/74148.c:95:13: warning: logical not is only applied to the left hand side of this bitwise operator [-Wlogical-not-parentheses] 95 | bit1 = !((!chips[which].input_lines[2] & | ^ ~ -
src/machine/74148.c:98:13: warning: logical not is only applied to the left hand side of this bitwise operator [-Wlogical-not-parentheses] 98 | (!chips[which].input_lines[3] & | ^ ~ -
advance/osd/glue.c:1001:25: warning: illegal character encoding in string literal [-Winvalid-source-encoding] 1001 | KR2("pound", "pound", "<A3>") | ^~~~ -
advance/lib/crtc.c:368:50: warning: taking the absolute value of unsigned type 'unsigned int' has no effect [-Wabsolute-value] 368 | if (!best_found || abs(try_vtotal - vtoobj/mess/linux/blend/advance/lib/joyall.o
-
srcmess/cheat.c:2100:6: warning: cast to smaller integer type 'int' from 'const char **' [-Wpointer-to-int-cast] 2100 | (int)menuStrings.mainList, | ^~~~~~~~~~~~~~~~~~~~~~~~~ -
srcmess/cheat.c:2101:6: warning: cast to smaller integer type 'int' from 'const char **' [-Wpointer-to-int-cast] 2101 | (int)menuStrings.subList, | ^~~~~~~~~~~~~~~~~~~~~~~~ -
srcmess/cheat.c:2102:6: warning: cast to smaller integer type 'int' from 'char *' [-Wpointer-to-int-cast] 2102 | (int)menuStrings.flagList, | ^~~~~~~~~~~~~~~~~~~~~~~~~ -
srcmess/cheat.c:2103:6: warning: cast to smaller integer type 'int' from 'char **' [-Wpointer-to-int-cast] 2103 | (int)menuStrings.mainStrings, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ -
srcmess/cheat.c:2104:6: warning: cast to smaller integer type 'int' from 'char **' [-Wpointer-to-int-cast] 2104 | (int)menuStrings.subStrings, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~ -
srcmess/cheat.c:2105:6: warning: cast to smaller integer type 'int' from 'char *' [-Wpointer-to-int-cast] 2105 | (int)menuStrings.buf); | ^~~~~~~~~~~~~~~~~~~~ -
srcmess/info.c:438:12: warning: cast to smaller integer type 'UINT32' (aka 'unsigned int') from 'const char *' [-Wpointer-to-int-cast] 438 | switch (ROMREGION_GETTYPE(region)) | ^~~~~~~~~~~~~~~~~~~~~~~~~ -
srcmess/info.c:474:47: warning: cast to smaller integer type 'UINT32' (aka 'unsigned int') from 'const char *' [-Wpointer-to-int-cast] 474 | default: fprintf(out, " region=\"0x%x\"", ROMREGION_GETTYPE(region)); | ^~~~~~~~~~~~~~~~~~~~~~~~~ -
srcmess/cheat.c:7947:29: warning: cast to smaller integer type 'UINT32' (aka 'unsigned int') from 'write8_handler' (aka 'void (*)(unsigned int, unsigned char)') [-Wpointer-to-int-cast] 7947 | UINT32 handlerAddress = (UINT32)handler; | ^~~~~~~~~~~~~~~ -
srcmess/cheat.c:8003:28: warning: cast to smaller integer type 'UINT32' (aka 'unsigned int') from 'write8_handler' (aka 'void (*)(unsigned int, unsigned char)') [-Wpointer-to-int-cast] 8003 | if( (handlerAddress >= ((UINT32)MWA8_BANK1)) && | ^~~~~~~~~~~~~~~~~~ -
srcmess/cheat.c:8004:25: warning: cast to smaller integer type 'UINT32' (aka 'unsigned int') from 'write8_handler' (aka 'void (*)(unsigned int, unsigned char)') [-Wpointer-to-int-cast] 8004 | (handlerAddress <= ((UINT32)MWA8_BANK24))) | ^~~~~~~~~~~~~~~~~~~ -
srcmess/cheat.c:8045:32: warning: cast to smaller integer type 'UINT32' (aka 'unsigned int') from 'genf *' (aka 'void (*)(void)') [-Wpointer-to-int-cast] 8045 | UINT32 handlerAddress = (UINT32)handler; | ^~~~~~~~~~~~~~~ -
srcmess/cheat.c:8047:29: warning: cast to smaller integer type 'UINT32' (aka 'unsigned int') from 'write8_handler' (aka 'void (*)(unsigned int, unsigned char)') [-Wpointer-to-int-cast] 8047 | if( (handlerAddress >= ((UINT32)MWA8_BANK1)) && | ^~~~~~~~~~~~~~~~~~ -
srcmess/cheat.c:8048:26: warning: cast to smaller integer type 'UINT32' (aka 'unsigned int') from 'write8_handler' (aka 'void (*)(unsigned int, unsigned char)') [-Wpointer-to-int-cast] 8048 | (handlerAddress <= ((UINT32)MWA8_BANK24))) | ^~~~~~~~~~~~~~~~~~~ -
srcmess/cheat.c:8050:51: warning: cast to smaller integer type 'UINT32' (aka 'unsigned int') from 'write8_handler' (aka 'void (*)(unsigned int, unsigned char)') [-Wpointer-to-int-cast] 8050 | sprintf(desc, "BANK%.2d", (handlerAddress - ((UINT32)MWA8_BANK1)) + 1); | ^~~~~~~~~~~~~~~~~~ -
srcmess/cheat.c:8056:12: warning: cast to smaller integer type 'UINT32' (aka 'unsigned int') from 'write8_handler' (aka 'void (*)(unsigned int, unsigned char)') [-Wpointer-to-int-cast] 8056 | case (UINT32)MWA8_NOP: strcpy(desc, "NOP "); break; | ^~~~~~~~~~~~~~~~ -
srcmess/cheat.c:8057:12: warning: cast to smaller integer type 'UINT32' (aka 'unsigned int') from 'write8_handler' (aka 'void (*)(unsigned int, unsigned char)') [-Wpointer-to-int-cast] 8057 | case (UINT32)MWA8_RAM: strcpy(desc, "RAM "); break; | ^~~~~~~~~~~~~~~~ -
srcmess/cheat.c:8058:12: warning: cast to smaller integer type 'UINT32' (aka 'unsigned int') from 'write8_handler' (aka 'void (*)(unsigned int, unsigned char)') [-Wpointer-to-int-cast] 8058 | case (UINT32)MWA8_ROM: strcpy(desc, "ROM "); break; | ^~~~~~~~~~~~~~~~ -
src/vidhrdw/voodoo.c:4781:5: warning: cast to smaller integer type 'UINT32' (aka 'unsigned int') from 'void (*)(voodoo_state *, UINT16 *)' (aka 'void (*)(struct _voodoo_state *, unsigned short *)') [-Wpointer-to-int-cast] 4781 | (UINT32)info->callback, | ^~~~~~~~~~~~~~~~~~~~~~ -
srcmess/cheat.c:9242:5: warning: logical not is only applied to the left hand side of this bitwise operator [-Wlogical-not-parentheses] 9242 | !region->flags & kRegionFlag_Enabled) | ^ ~ -
srcmess/cheat.c:9285:5: warning: logical not is only applied to the left hand side of this bitwise operator [-Wlogical-not-parentheses] 9285 | !region->flags & kRegionFlag_Enabled) | ^ ~ -
srcmess/cheat.c:10396:24: warning: cast to smaller integer type 'UINT32' (aka 'unsigned int') from 'const char *' [-Wpointer-to-int-cast]
-
srcmess/memory.c:941:75: warning: cast to 'genf *' (aka 'void (*)(void)') from smaller integer type 'int' [-Wint-to-pointer-cast] 941 | install_mem_handler(space, 0, space->dbits, 0, start, end, mask, mirror, (genf *)handler, 0, handler_name); | ^~~~~~~~~~~~~~~ -
srcmess/memory.c:989:75: warning: cast to 'genf *' (aka 'void (*)(void)') from smaller integer type 'int' [-Wint-to-pointer-cast] 989 | install_mem_handler(space, 1, space->dbits, 0, start, end, mask, mirror, (genf *)handler, 0, handler_name); | ^~~~~~~~~~~~~~~ -
srcmess/memory.c:1038:82: warning: cast to 'genf *' (aka 'void (*)(void)') from smaller integer type 'int' [-Wint-to-pointer-cast] 1038 | install_mem_handler(space, 0, space->dbits, 1, matchval, maskval, mask, mirror, (genf *)handler, 0, handler_name); | ^~~~~~~~~~~~~~~ -
srcmess/memory.c:1087:82: warning: cast to 'genf *' (aka 'void (*)(void)') from smaller integer type 'int' [-Wint-to-pointer-cast] 1087 | install_mem_handler(space, 1, space->dbits, 1, matchval, maskval, mask, mirror, (genf *)handler, 0, handler_name); | ^~~~~~~~~~~~~~~ -
srcmess/memory.c:1625:11: warning: cast to 'genf *' (aka 'void (*)(void)') from smaller integer type 'int' [-Wint-to-pointer-cast] 1625 | return BANK_TO_HANDLER(bank); | ^~~~~~~~~~~~~~~~~~~~~ -
srcmess/memory.c:1998:12: warning: cast to smaller integer type 'int' from 'genf *' (aka 'void (*)(void)') [-Wpointer-to-int-cast] 1998 | handler = (int)map->write.handler; | ^~~~~~~~~~~~~~~~~~~~~~~ -
srcmess/memory.c:2008:12: warning: cast to smaller integer type 'int' from 'genf *' (aka 'void (*)(void)') [-Wpointer-to-int-cast] 2008 | handler = (int)map->read.handler; | ^~~~~~~~~~~~~~~~~~~~~~ -
srcmess/romload.c:416:13: warning: cast to smaller integer type 'UINT32' (aka 'unsigned int') from 'const char *' [-Wpointer-to-int-cast] 416 | int type = ROMREGION_GETTYPE(regiondata); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -
srcmess/romload.c:567:36: warning: cast to smaller integer type 'int' from 'UINT8 *' (aka 'unsigned char *') [-Wpointer-to-int-cast] 567 | debugload(" Copying to %08X\n", (int)base); | ^~~~~~~~~ -
srcmess/romload.c:652:15: warning: cast to smaller integer type 'UINT32' (aka 'unsigned int') from 'const char *' [-Wpointer-to-int-cast] 652 | memset(base, (UINT32)ROM_GETHASHDATA(romp) & 0xff, numbytes); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -
srcmess/romload.c:666:19: warning: cast to smaller integer type 'UINT32' (aka 'unsigned int') from 'const char *' [-Wpointer-to-int-cast] 666 | UINT32 srcoffs = (UINT32)ROM_GETHASHDATA(romp); /* srcoffset in place of hashdata */ | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -
srcmess/sound.c:183:85: warning: for loop has empty body [-Wempty-body] 183 | for (totalspeakers = 0; Machine->drv->speaker[totalspeakers].tag; totalspeakers++) ; | ^ -
srcmess/romload.c:959:20: warning: cast to smaller integer type 'UINT32' (aka 'unsigned int') from 'const char *' [-Wpointer-to-int-cast] 959 | int regiontype = ROMREGION_GETTYPE(region); | ^~~~~~~~~~~~~~~~~~~~~~~~~ -
srcmess/romload.c:980:66: warning: cast to smaller integer type 'int' from 'UINT8 *' (aka 'unsigned char *') [-Wpointer-to-int-cast] 980 | debugload("Allocated %X bytes @ %08X\n", romdata.regionlength, (int)romdata.regionbase); | ^~~~~~~~~~~~~~~~~~~~~~~ -
srcmess/state.c:396:86: warning: cast to smaller integer type 'int' from 'void (*)(int)' [-Wpointer-to-int-cast] 396 | fatalerror("Duplicate save state function (%d, %d, 0x%x)", ss_current_tag, param, (int)func); | ^~~~~~~~~ -
srcmess/state.c:439:86: warning: cast to smaller integer type 'int' from 'void (*)(void *)' [-Wpointer-to-int-cast] 439 | fatalerror("Duplicate save state function (%d, %p, 0x%x)", ss_current_tag, param, (int)func); | ^~~~~~~~~ -
srcmess/validity.c:192:38: warning: cast to smaller integer type 'UINT32' (aka 'unsigned int') from 'const rom_entry *' (aka 'const struct _rom_entry *') [-Wpointer-to-int-cast] 192 | add_quark(roms_table, drivnum, (UINT32)driver->rom); | ^~~~~~~~~~~~~~~~~~~ -
srcmess/validity.c:343:15: warning: cast to smaller integer type 'UINT32' (aka 'unsigned int') from 'const char *' [-Wpointer-to-int-cast] 343 | int type = ROMREGION_GETTYPE(romp); | ^~~~~~~~~~~~~~~~~~~~~~~ -
srcmess/validity.c:694:8: warning: cast to smaller integer type 'UINT32' (aka 'unsigned int') from 'void (*)(input_port_init_params *)' (aka 'void (*)(struct _input_port_init_params *)') [-Wpointer-to-int-cast] 694 | crc = (UINT32)driver->construct_ipt; | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -
mess/artworkx.c:195:60: warning: 'sscanf' may overflow; destination buffer in argument 3 has size 64, but the corresponding specifier may require size 65 [-Wfortify-source] 195 | if (!enabled || sscanf(buffer, "%64s (%d,%d)-(%d,%d)", ipt_name, &x1, &y1, &x2, &y2) != 5) | ^ -
mess/compcfg.c:132:28: warning: cast to 'read8_handler' (aka 'unsigned char (*)(unsigned int)') from smaller integer type 'int' [-Wint-to-pointer-cast] 132 | read8_handler read_bank = (read8_handler) (STATIC_BANK1 + bank - 1); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -
mess/compcfg.c:133:30: warning: cast to 'write8_handler' (aka 'void (*)(unsigned int, unsigned char)') from smaller integer type 'int' [-Wint-to-pointer-cast] 133 | write8_handler write_bank = (write8_handler) (STATIC_BANK1 + bank - 1); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -
mess/formats/flopimg.c:242:21: warning: address of array 'floppy_option_guide' will always evaluate to 'true' [-Wpointer-bool-conversion] 242 | if (!parameters && floppy_option_guide && format->param_guidelines) | ~~ ^~~~~~~~~~~~~~~~~~~ -
mess/devices/cartslot.c:42:11: warning: cast to smaller integer type 'UINT32' (aka 'unsigned int') from 'const char *' [-Wpointer-to-int-cast] 42 | region = ROMREGION_GETTYPE(romrgn); | ^~~~~~~~~~~~~~~~~~~~~~~~~ -
mess/devices/cartslot.c:72:10: warning: cast to smaller integer type 'UINT32' (aka 'unsigned int') from 'const char *' [-Wpointer-to-int-cast] 72 | type = ROMREGION_GETTYPE(romrgn); | ^~~~~~~~~~~~~~~~~~~~~~~~~ -
mess/devices/snapquik.c:33:7: warning: cast to 'struct snapquick_info *' from smaller integer type 'int' [-Wint-to-pointer-cast] 33 | si = (struct snapquick_info *) arg; | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -
mess/devices/snapquik.c:69:19: warning: cast to smaller integer type 'int' from 'struct snapquick_info *' [-Wpointer-to-int-cast] 69 | timer_set(delay, (int) si, snapquick_processsnapshot); | ^~~~~~~~ -
mess/devices/flopdrv.c:67:20: warning: cast to 'mess_image *' (aka 'struct _mess_image *') from smaller integer type 'int' [-Wint-to-pointer-cast] 67 | mess_image *img = (mess_image *) image_ptr; | ^~~~~~~~~~~~~~~~~~~~~~~~ -
mess/devices/flopdrv.c:205:42: warning: cast to smaller integer type 'int' from 'mess_image *' (aka 'struct _mess_image *') [-Wpointer-to-int-cast] 205 | timer_adjust(pDrive->index_timer, 0, (int) img, newpulse); | ^~~~~~~~~ -
mess/devices/harddriv.c:110:3: warning: cast to smaller integer type 'unsigned int' from 'void *' [-Wvoid-pointer-to-int-cast] 110 | (unsigned int) ptr); | ^~~~~~~~~~~~~~~~~~ -
mess/devices/harddriv.c:148:10: warning: cast to 'mess_image *' (aka 'struct _mess_image *') from smaller integer type 'unsigned int' [-Wint-to-pointer-cast] 148 | return (mess_image *) ptr; | ^~~~~~~~~~~~~~~~~~ -
mess/devices/chd_cd.c:96:3: warning: cast to smaller integer type 'unsigned int' from 'void *' [-Wvoid-pointer-to-int-cast] 96 | (unsigned int) ptr); | ^~~~~~~~~~~~~~~~~~ -
mess/devices/chd_cd.c:134:10: warning: cast to 'mess_image *' (aka 'struct _mess_image *') from smaller integer type 'unsigned int' [-Wint-to-pointer-cast] 134 | return (mess_image *) ptr; | ^~~~~~~~~~~~~~~~~~ -
mess/machine/nec765.c:1202:35: warning: equality comparison with extraneous parentheses [-Wparentheses-equality] 1202 | if ((fdc.nec765_command_bytes[4]==fdc.nec765_command_bytes[6])) | ~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -
mess/machine/wd17xx.c:291:14: warning: cast to 'WD179X *' from smaller integer type 'int' [-Wint-to-pointer-cast] 291 | WD179X *w = (WD179X *)dummy; | ^~~~~~~~~~~~~~~ -
srcmess/cpu/i386/i386ops.c:422:12: warning: equality comparison with extraneous parentheses [-Wparentheses-equality] 422 | if( (I.SF == I.OF) ) { | ~~~~~^~~~~~~ -
srcmess/cpu/i386/i386ops.c:1283:12: warning: equality comparison with extraneous parentheses [-Wparentheses-equality] 1283 | if( (I.SF == I.OF) ) { | ~~~~~^~~~~~~ -
srcmess/cpu/i386/i386op16.c:854:12: warning: equality comparison with extraneous parentheses [-Wparentheses-equality] 854 | if( (I.SF == I.OF) ) { | ~~~~~^~~~~~~ -
srcmess/cpu/hd6309/6309ops.c:2819:13: warning: taking the absolute value of unsigned type 'UINT16' (aka 'unsigned short') has no effect [-Wabsolute-value] 2819 | t.w.l = abs( t.w.l ); | ^ -
srcmess/cpu/m68000/m68kmake.c:673:36: warning: comparison of array 'op->name' not equal to a null pointer is always true [-Wtautological-pointer-compare] 673 | for(op = g_opcode_input_table;op->name != NULL;op++) | ~~~~^~~~ ~~~~ -
srcmess/cpu/m68000/m68kmake.c:689:36: warning: comparison of array 'op->name' not equal to a null pointer is always true [-Wtautological-pointer-compare] 689 | for(op = g_opcode_input_table;op->name != NULL;op++) | ~~~~^~~~ ~~~~ -
srcmess/cpu/hd6309/6309ops.c:3153:13: warning: taking the absolute value of unsigned type 'UINT16' (aka 'unsigned short') has no effect [-Wabsolute-value] 3153 | t.w.l = abs( t.w.l ); | ^ -
srcmess/cpu/hd6309/6309ops.c:3555:13: warning: taking the absolute value of unsigned type 'UINT16' (aka 'unsigned short') has no effect [-Wabsolute-value] 3555 | t.w.l = abs( t.w.l ); | ^ -
srcmess/cpu/hd6309/6309ops.c:3943:13: warning: taking the absolute value of unsigned type 'UINT16' (aka 'unsigned short') has no effect [-Wabsolute-value] 3943 | t.w.l = abs( t.w.l ); | ^ -
srcmess/cpu/i386/i386op32.c:811:12: warning: equality comparison with extraneous parentheses [-Wparentheses-equality] 811 | if( (I.SF == I.OF) ) { | ~~~~~^~~~~~~ -
srcmess/cpu/i86/i286.c:553:97: warning: cast to smaller integer type 'unsigned int' from 'UINT32 *' (aka 'unsigned int *') [-Wpointer-to-int-cast] 553 | case CPUINFO_STR_REGISTER + I286_IDTR: sprintf(info->s = cpuintrf_temp_str(), "IDTR: %06X", (unsigned) I.base); break; | ^~~~~~~~~~~~~~~~~ -
srcmess/cpu/i86/i286.c:554:92: warning: cast to smaller integer type 'unsigned int' from 'UINT16 *' (aka 'unsigned short *') [-Wpointer-to-int-cast] 554 | case CPUINFO_STR_REGISTER + I286_IDTR_2: sprintf(info->s = cpuintrf_temp_str(), "%04X", (unsigned) I.limit); break; | ^~~~~~~~~~~~~~~~~~ -
srcmess/cpu/z180/z180op.c:510:18: warning: array index 74 is past the end of the array (that has type 'UINT8[64]' (aka 'unsigned char[64]')) [-Warray-bounds] 510 | irq_vector = (Z180.io[Z180_IL] & Z180_IL_IL) + (irq - Z180_INT1) * 2; | ^ ~~~~~~~ -
mess/cpu/saturn/satops.c:313:23: warning: logical not is only applied to the left hand side of this bitwise operator [-Wlogical-not-parentheses] 313 | case 0: saturn.carry=!saturn.st&1;break; | ^ ~ -
mess/cpu/saturn/satops.c:314:23: warning: logical not is only applied to the left hand side of this bitwise operator [-Wlogical-not-parentheses] 314 | case 1: saturn.carry=!saturn.st&2;break; | ^ ~ -
mess/cpu/saturn/satops.c:315:23: warning: logical not is only applied to the left hand side of this bitwise operator [-Wlogical-not-parentheses] 315 | case 2: saturn.carry=!saturn.st&4;break; | ^ ~ -
mess/cpu/saturn/satops.c:316:23: warning: logical not is only applied to the left hand side of this bitwise operator [-Wlogical-not-parentheses] 316 | case 3: saturn.carry=!saturn.st&8;break; | ^ ~ -
mess/cpu/saturn/satops.c:317:23: warning: logical not is only applied to the left hand side of this bitwise operator [-Wlogical-not-parentheses] 317 | case 4: saturn.carry=!saturn.st&0x10;break; | ^ ~ -
mess/cpu/saturn/satops.c:318:23: warning: logical not is only applied to the left hand side of this bitwise operator [-Wlogical-not-parentheses] 318 | case 5: saturn.carry=!saturn.st&0x20;break; | ^ ~ -
mess/cpu/saturn/satops.c:319:23: warning: logical not is only applied to the left hand side of this bitwise operator [-Wlogical-not-parentheses] 319 | case 6: saturn.carry=!saturn.st&0x40;break; | ^ ~ -
mess/cpu/saturn/satops.c:320:23: warning: logical not is only applied to the left hand side of this bitwise operator [-Wlogical-not-parentheses] 320 | case 7: saturn.carry=!saturn.st&0x80;break; | ^ ~ -
mess/cpu/saturn/satops.c:321:23: warning: logical not is only applied to the left hand side of this bitwise operator [-Wlogical-not-parentheses] 321 | case 8: saturn.carry=!saturn.st&0x100;break; | ^ ~ -
mess/cpu/saturn/satops.c:322:23: warning: logical not is only applied to the left hand side of this bitwise operator [-Wlogical-not-parentheses] 322 | case 9: saturn.carry=!saturn.st&0x200;break; | ^ ~ -
mess/cpu/saturn/satops.c:323:25: warning: logical not is only applied to the left hand side of this bitwise operator [-Wlogical-not-parentheses] 323 | case 0xa: saturn.carry=!saturn.st&0x400;break; | ^ ~ -
mess/cpu/saturn/satops.c:324:25: warning: logical not is only applied to the left hand side of this bitwise operator [-Wlogical-not-parentheses] 324 | case 0xb: saturn.carry=!saturn.st&0x800;break; | ^ ~ -
mess/cpu/saturn/satops.c:325:25: warning: logical not is only applied to the left hand side of this bitwise operator [-Wlogical-not-parentheses] 325 | case 0xc: saturn.carry=!saturn.st&0x1000;break; | ^ ~ -
mess/cpu/saturn/satops.c:326:25: warning: logical not is only applied to the left hand side of this bitwise operator [-Wlogical-not-parentheses] 326 | case 0xd: saturn.carry=!saturn.st&0x2000;break; | ^ ~ -
mess/cpu/saturn/satops.c:327:25: warning: logical not is only applied to the left hand side of this bitwise operator [-Wlogical-not-parentheses] 327 | case 0xe: saturn.carry=!saturn.st&0x4000;break; | ^ ~ -
mess/cpu/saturn/satops.c:328:25: warning: logical not is only applied to the left hand side of this bitwise operator [-Wlogical-not-parentheses] 328 | case 0xf: saturn.carry=!saturn.st&0x8000;break; | ^ ~ -
mess/sound/wave.c:28:13: warning: cast to smaller integer type 'int' from 'void *' [-Wvoid-pointer-to-int-cast] 28 | int num = ((int) param) & ~WAVE_TOKEN_MASK; | ^~~~~~~~~~~ -
mess/sound/wave.c:57:44: warning: cast to 'void *' from smaller integer type 'int' [-Wint-to-void-pointer-cast] 57 | stream_create(0, 1, Machine->sample_rate, (void *) sndindex, wave_sound_update); | ^~~~~~~~~~~~~~~~~ -
mess/sound/wave.c:58:12: warning: cast to 'void *' from smaller integer type 'unsigned int' [-Wint-to-void-pointer-cast] 58 | return (void *) (sndindex | WAVE_TOKEN_MASK); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -
srcmess/sound/disc_wav.c:763:79: warning: operator '?:' has lower precedence than '-'; '-' will be evaluated first [-Wparentheses] 763 | node->output = (info->vP - (context->type == DISC_OP_AMP_OSCILLATOR_VCO_1) ? OP_AMP_VP_RAIL_OFFSET : OP_AMP_NORTON_VBE) * context->flip_flop; | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ^ -
srcmess/sound/disc_mth.c:1234:55: warning: using integer absolute value function 'abs' when argument is of floating point type [-Wabsolute-value] 1234 | context->dir = ((DST_RAMP__END - DST_RAMP__START) == abs(DST_RAMP__END - DST_RAMP__START)); | ^ -
srcmess/sound/psx.c:339:2: warning: 'sizeof (chip->m_p_n_spuram)' will return the size of the pointer, not the array itself [-Wsizeof-pointer-div] 339 | state_save_register_item_array( "psx", sndindex, chip->m_p_n_spuram ); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -
srcmess/sound/tms5110.c:494:37: warning: shifting a negative signed value is undefined [-Wshift-negative-value] 494 | buffer[buf_count] = -128<<8; | ~~~~^ -
srcmess/sound/tms5220.c:660:37: warning: shifting a negative signed value is undefined [-Wshift-negative-value] 660 | buffer[buf_count] = -128<<8; | ~~~~^ -
mess/formats/coco_dsk.c:919:17: warning: equality comparison with extraneous parentheses [-Wparentheses-equality] 919 | if ((sector == dmk_idam_sector(&track_data[idam_offset])) | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -
mess/machine/apple2.c:154:9: warning: cast to 'read8_handler' (aka 'unsigned char (*)(unsigned int)') from smaller integer type 'int' [-Wint-to-pointer-cast] 154 | rh = (read8_handler) (STATIC_BANK1 + rbank - 1); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -
mess/machine/apple2.c:234:9: warning: cast to 'write8_handler' (aka 'void (*)(unsigned int, unsigned char)') from smaller integer type 'int' [-Wint-to-pointer-cast] 234 | wh = (write8_handler) (STATIC_BANK1 + wbank - 1); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -
mess/formats/ap2_dsk.c:144:11: warning: taking the absolute value of unsigned type 'UINT64' (aka 'unsigned long long') has no effect [-Wabsolute-value] 144 | else if (abs(size - expected_size) < 8) | ^ -
mess/machine/mac.c:115:7: warning: cast to 'read16_handler' (aka 'unsigned short (*)(unsigned int, unsigned short)') from smaller integer type 'int' [-Wint-to-pointer-cast] 115 | rh = (read16_handler) bank; | ^~~~~~~~~~~~~~~~~~~~~ -
mess/machine/mac.c:116:28: warning: cast to 'write16_handler' (aka 'void (*)(unsigned int, unsigned short, unsigned short)') from smaller integer type 'int' [-Wint-to-pointer-cast] 116 | wh = is_rom ? MWA16_ROM : (write16_handler) bank; | ^~~~~~~~~~~~~~~~~~~~~~ -
mess/machine/apple3.c:290:98: warning: format specifies type 'unsigned int' but the argument has type 'long' [-Wformat] 290 | logerror("\tbank #%d --> %02x/%04x [0x%08x]\n", mame_bank, (unsigned) bank, (unsigned) offset, ptr - mess_ram); | ~~~~ ^~~~~~~~~~~~~~ | %08lx -
mess/vidhrdw/nes.c:66:22: warning: implicit conversion from 'double' to 'int' changes value from 262.5 to 262 [-Wliteral-conversion] 66 | return nes_vh_start(NTSC_SCANLINES_PER_FRAME); | ~~~~~~~~~~~~ ^~~~~~~~~~~~~~~~~~~~~~~~ -
mess/vidhrdw/nes.c:71:22: warning: implicit conversion from 'double' to 'int' changes value from 312.5 to 312 [-Wliteral-conversion] 71 | return nes_vh_start(PAL_SCANLINES_PER_FRAME); | ~~~~~~~~~~~~ ^~~~~~~~~~~~~~~~~~~~~~~ -
mess/machine/nes.c:265:15: warning: array index 3 is past the end of the array (that has type 'UINT32[3]' (aka 'unsigned int[3]')) [-Warray-bounds] 265 | retVal |= ((in_1[3] << in_1_shift) & 0x80) >> 3; | ^ ~ -
srcmess/sndhrdw/snes.c:155:31: warning: array index -1 is before the beginning of the array [-Warray-bounds] 155 | static const int * G4 = &gauss[ -1 ]; | ^ ~~ -
mess/machine/pc_turbo.c:30:7: warning: cast to 'struct pc_turbo_info *' from smaller integer type 'int' [-Wint-to-pointer-cast] 30 | ti = (struct pc_turbo_info *) param; | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -
mess/machine/pc_turbo.c:53:32: warning: cast to smaller integer type 'int' from 'struct pc_turbo_info *' [-Wpointer-to-int-cast] 53 | timer_pulse(TIME_IN_SEC(0.1), (int) ti, pc_turbo_callback); | ^~~~~~~~ -
mess/systems/pc.c:713:32: warning: illegal character encoding in string literal [-Winvalid-source-encoding] 713 | PORT_DIPSETTING( 0x02, "V.g. v<E4>nta" ) | ^~~~ -
mess/systems/pc.c:801:32: warning: illegal character encoding in string literal [-Winvalid-source-encoding] 801 | PORT_DIPSETTING( 0x02, "V.g. v<E4>nta" ) | ^~~~ -
mess/systems/pc.c:897:32: warning: illegal character encoding in string literal [-Winvalid-source-encoding] 897 | PORT_DIPSETTING( 0x02, "V.g. v<E4>nta" ) | ^~~~ -
mess/vidhrdw/pc_vga.c:564:21: warning: cast to 'read8_handler' (aka 'unsigned char (*)(unsigned int)') from smaller integer type 'int' [-Wint-to-pointer-cast] 564 | read_handler = (read8_handler) vga.vga_intf.vga_memory_bank; | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -
mess/vidhrdw/pc_vga.c:565:22: warning: cast to 'write8_handler' (aka 'void (*)(unsigned int, unsigned char)') from smaller integer type 'int' [-Wint-to-pointer-cast] 565 | write_handler = (write8_handler) vga.vga_intf.vga_memory_bank; | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -
mess/machine/ti99_4x.h:101:5: warning: macro expansion producing 'defined' has undefined behavior [-Wexpansion-to-defined] 101 | #if HAS_99CCFDC | ^ -
mess/machine/99_dsk.h:4:5: warning: macro expansion producing 'defined' has undefined behavior [-Wexpansion-to-defined] 4 | #if HAS_99CCFDC | ^ -
mess/machine/ti99_4x.c:796:5: warning: macro expansion producing 'defined' has undefined behavior [-Wexpansion-to-defined] 796 | #if HAS_99CCFDC | ^ -
mess/machine/ti99_4x.c:1001:27: warning: cast to 'UINT16 *' (aka 'unsigned short *') from smaller integer type 'int' [-Wint-to-pointer-cast] 1001 | ti99_4p_internal_ROM6 = (UINT16 *) (memory_region(REGION_CPU1) + (offset & 1) ? offset_rom6b_4p : offset_rom6_4p); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -
mess/machine/ti99_4x.c:2126:48: warning: equality comparison with extraneous parentheses [-Wparentheses-equality] 2126 | if (/*(ti99_model == model_99_4) &&*/ (KeyCol == 7)) | ~~~~~~~^~~~ -
mess/machine/99_dsk.c:604:5: warning: macro expansion producing 'defined' has undefined behavior [-Wexpansion-to-defined] 604 | #if HAS_99CCFDC | ^ -
mess/machine/strata.c:243:18: warning: use of logical '&&' with constant operand [-Wconstant-logical-operand] 243 | if (((offset && BYTE_ADDRESS_MASK) >> 1) == 2) | ^ ~~~~~~~~~~~~~~~~~ -
mess/machine/strata.c:267:17: warning: use of logical '&&' with constant operand [-Wconstant-logical-operand] 267 | if (((offset && BYTE_ADDRESS_MASK) >> 1) == 2) | ^ ~~~~~~~~~~~~~~~~~ -
mess/machine/geneve.c:264:5: warning: macro expansion producing 'defined' has undefined behavior [-Wexpansion-to-defined] 264 | #if HAS_99CCFDC | ^ -
./mess/machine/ti99_4x.h:101:5: warning: macro expansion producing 'defined' has undefined behavior [-Wexpansion-to-defined] 101 | #if HAS_99CCFDC | ^ -
./mess/machine/99_dsk.h:4:5: warning: macro expansion producing 'defined' has undefined behavior [-Wexpansion-to-defined] 4 | #if HAS_99CCFDC | ^ -
mess/systems/ti99_4x.c:124:5: warning: macro expansion producing 'defined' has undefined behavior [-Wexpansion-to-defined] 124 | #if HAS_99CCFDC | ^ -
mess/systems/ti99_4p.c:104:5: warning: macro expansion producing 'defined' has undefined behavior [-Wexpansion-to-defined] 104 | #if HAS_99CCFDC | ^ -
mess/systems/geneve.c:265:5: warning: macro expansion producing 'defined' has undefined behavior [-Wexpansion-to-defined] 265 | #if HAS_99CCFDC | ^ -
mess/systems/ti99_4x.c:265:5: warning: macro expansion producing 'defined' has undefined behavior [-Wexpansion-to-defined] 265 | #if HAS_99CCFDC | ^ -
mess/systems/ti99_4p.c:302:5: warning: macro expansion producing 'defined' has undefined behavior [-Wexpansion-to-defined] 302 | #if HAS_99CCFDC | ^ -
mess/systems/ti99_8.c:205:5: warning: macro expansion producing 'defined' has undefined behavior [-Wexpansion-to-defined] 205 | #if HAS_99CCFDC | ^ -
mess/systems/geneve.c:509:5: warning: macro expansion producing 'defined' has undefined behavior [-Wexpansion-to-defined] 509 | #if HAS_99CCFDC | ^ -
mess/systems/geneve.c:529:5: warning: macro expansion producing 'defined' has undefined behavior [-Wexpansion-to-defined] 529 | #if HAS_99CCFDC | ^ -
mess/systems/ti99_8.c:467:5: warning: macro expansion producing 'defined' has undefined behavior [-Wexpansion-to-defined] 467 | #if HAS_99CCFDC | ^ -
mess/systems/ti99_4x.c:724:5: warning: macro expansion producing 'defined' has undefined behavior [-Wexpansion-to-defined] 724 | #if HAS_99CCFDC | ^ -
mess/systems/ti99_4x.c:751:5: warning: macro expansion producing 'defined' has undefined behavior [-Wexpansion-to-defined] 751 | #if HAS_99CCFDC | ^ -
mess/systems/ti99_4x.c:778:5: warning: macro expansion producing 'defined' has undefined behavior [-Wexpansion-to-defined] 778 | #if HAS_99CCFDC | ^ -
mess/systems/pcw.c:277:4: warning: cast to 'read8_handler' (aka 'unsigned char (*)(unsigned int)') from smaller integer type 'int' [-Wint-to-pointer-cast] 275 | memory_install_read8_handler(0, ADDRESS_SPACE_PROGRAM, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 276 | block * 0x04000 + 0x0000, block * 0x04000 + 0x3fff, 0, 0, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 277 | (read8_handler) (STATIC_BANK1 + block)); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -
mess/systems/pcw.c:840:59: warning: illegal character encoding in string literal [-Winvalid-source-encoding] 840 | PORT_BIT(0x010, IP_ACTIVE_HIGH, IPT_KEYBOARD) PORT_NAME("<A7>") PORT_CODE(KEYCODE_QUOTE) | ^~~~ -
mess/systems/saturn.c:469:14: warning: equality comparison with extraneous parentheses [-Wparentheses-equality] 469 | if ((offset == 0x61)) | obj/mess/linux/blend/mess/systems/a310.o -
mess/systems/z88.c:182:31: warning: cast to 'read8_handler' (aka 'unsigned char (*)(unsigned int)') from smaller integer type 'int' [-Wint-to-pointer-cast] 182 | read_handler = read_addr ? (read8_handler) (STATIC_BANK1 + (bank_base - 1 + 0)) : MRA8_ROM; | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -
mess/systems/z88.c:183:31: warning: cast to 'write8_handler' (aka 'void (*)(unsigned int, unsigned char)') from smaller integer type 'int' [-Wint-to-pointer-cast] 183 | write_handler = write_addr ? (write8_handler) (STATIC_BANK1 + (bank_base - 1 + 1)) : MWA8_ROM; | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -
mess/systems/z88.c:706:58: warning: illegal character encoding in string literal [-Winvalid-source-encoding] 706 | PORT_BIT(0x001, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("<A3>") PORT_CODE(KEYCODE_TILDE) | ^~~~ -
mess/formats/uef_cas.c:182:23: warning: expression result unused [-Wunused-value] 182 | *buffer = WAVE_NULL; *buffer++; | ^~~~~~~~~ -
mess/formats/uef_cas.c:183:23: warning: expression result unused [-Wunused-value] 183 | *buffer = WAVE_NULL; *buffer++; | ^~~~~~~~~ -
mess/systems/vtech2.c:314:57: warning: illegal character encoding in string literal [-Winvalid-source-encoding] 314 | PORT_BIT(0x04, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("<E6>") PORT_CODE(KEYCODE_ASTERISK) | ^~~~ -
mess/machine/jupiter.c:122:39: warning: cast to smaller integer type 'int' from 'UINT8 *' (aka 'unsigned char *') [-Wpointer-to-int-cast] 122 | logerror("data: %08X. type: %d.\n", (int) jupiter_data, | ^~~~~~~~~~~~~~~~~~ -
mess/machine/jupiter.c:203:27: warning: cast to smaller integer type 'int' from 'UINT8 *' (aka 'unsigned char *') [-Wpointer-to-int-cast] 203 | logerror("data: %08X\n", (int) jupiter_data); | ^~~~~~~~~~~~~~~~~~ -
mess/systems/oric.c:333:2: warning: illegal character encoding in string literal [-Winvalid-source-encoding] 333 | INPUT_PORT_ORIC | ^~~~~~~~~~~~~~~ -
mess/systems/oric.c:353:2: warning: illegal character encoding in string literal [-Winvalid-source-encoding] 353 | INPUT_PORT_ORICA | ^~~~~~~~~~~~~~~~ -
mess/machine/coupe.c:48:34: warning: cast to 'read8_handler' (aka 'unsigned char (*)(unsigned int)') from smaller integer type 'int' [-Wint-to-pointer-cast] 48 | rh = !memory ? MRA8_NOP : (read8_handler) (STATIC_BANK1 + bank - 1); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -
mess/machine/coupe.c:49:54: warning: cast to 'write8_handler' (aka 'void (*)(unsigned int, unsigned char)') from smaller integer type 'int' [-Wint-to-pointer-cast] 49 | wh = !memory ? MWA8_NOP : (is_readonly ? MWA8_ROM : (write8_handler) (STATIC_BANK1 + bank - 1)); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -
mess/systems/oric.c:387:2: warning: illegal character encoding in string literal [-Winvalid-source-encoding] 387 | INPUT_PORT_ORICA | ^~~~~~~~~~~~~~~~ -
mess/sndhrdw/osi.c:16:39: warning: implicit conversion from 'double' to 'int' changes value from 3.4 to 3 [-Wliteral-conversion] 16 | DISCRETE_DAC_R1(NODE_02, 1, NODE_01, DEFAULT_TTL_V_LOGIC_1, &sb2m600_dac) | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -
mess/vidhrdw/epnick.c:712:27: warning: equality comparison with extraneous parentheses [-Wparentheses-equality] 712 | if ((Nick.ScanLineCount == 0)) // || | ~~~~~~~~~~~~~~~~~~~^~~~ -
mess/machine/kc.c:1871:2: warning: implicit conversion from 'double' to 'int' changes value from 1379310.344828 to 1379310 [-Wliteral-conversion] 1870 | { | ~ 1871 | 1379310.344828, | ^~~~~~~~~~~~~~ -
mess/vidhrdw/vc4000.c:373:6: warning: logical not is only applied to the left hand side of this bitwise operator [-Wlogical-not-parentheses] 373 | if (!vc4000_video.reg.d.background&8) return; | ^ ~ -
mess/systems/zx.c:116:64: warning: illegal character encoding in string literal [-Winvalid-source-encoding] 116 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("SPACE <A3>") PORT_CODE(KEYCODE_SPACE) PORT_CHAR(' ') PORT_CHAR('<A3>') | ^~~~ -
mess/systems/zx.c:116:118: warning: illegal character encoding in character literal [-Winvalid-source-encoding] 116 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("SPACE <A3>") PORT_CODE(KEYCODE_SPACE) PORT_CHAR(' ') PORT_CHAR('<A3>') | ^ -
mess/machine/spectrum.c:205:9: warning: logical not is only applied to the left hand side of this bitwise operator [-Wlogical-not-parentheses] 205 | if (!spectrum_plus3_port_1ffd_data & 0x04) | ^ ~ -
mess/machine/spectrum.c:208:8: warning: logical not is only applied to the left hand side of this bitwise operator [-Wlogical-not-parentheses] 208 | if (!spectrum_128_port_7ffd_data & 0x10) | ^ ~ -
mess/machine/spectrum.c:217:8: warning: logical not is only applied to the left hand side of this bitwise operator [-Wlogical-not-parentheses] 217 | if ((!ts2068_port_f4_data & 0x01) || (!ts2068_port_ff_data & 0x80)) | ^ ~ -
mess/machine/spectrum.c:217:41: warning: logical not is only applied to the left hand side of this bitwise operator [-Wlogical-not-parentheses] 217 | if ((!ts2068_port_f4_data & 0x01) || (!ts2068_port_ff_data & 0x80)) | ^ ~ -
mess/systems/zx.c:201:64: warning: illegal character encoding in string literal [-Winvalid-source-encoding] 201 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("SPACE <A3>") PORT_CODE(KEYCODE_SPACE) PORT_CHAR(' ') PORT_CHAR('<A3>') | ^~~~ -
mess/systems/zx.c:201:118: warning: illegal character encoding in character literal [-Winvalid-source-encoding] 201 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("SPACE <A3>") PORT_CODE(KEYCODE_SPACE) PORT_CHAR(' ') PORT_CHAR('<A3>') | ^ -
mess/systems/ql.c:303:83: warning: illegal character encoding in character literal [-Winvalid-source-encoding] 303 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_KEYBOARD ) PORT_CODE(KEYCODE_TILDE) PORT_CHAR('<A3>') PORT_CHAR('~') | ^ -
mess/systems/ql.c:317:116: warning: illegal character encoding in string literal [-Winvalid-source-encoding] 317 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_KEYBOARD ) PORT_CODE(KEYCODE_ESC) PORT_CHAR(UCHAR_MAMEKEY(ESC)) PORT_NAME("ESC <A9>") | ^~~~ -
mess/machine/lynx.c:913:37: warning: format specifies type 'int' but the argument has type 'long' [-Wformat] 913 | logerror("timer %d read %x %.2x\n",This-lynx_timer,offset,data); | ~~ ^~~~~~~~~~~~~~~ | %ld -
mess/machine/lynx.c:920:38: warning: format specifies type 'int' but the argument has type 'long' [-Wformat] 920 | logerror("timer %d write %x %.2x\n",This-lynx_timer,offset,data); | ~~ ^~~~~~~~~~~~~~~ | %ld -
mess/machine/adam.c:661:56: warning: operator '?:' has lower precedence than '+'; '+' will be evaluated first [-Wparentheses] 661 | sectorCount = (byteCount/512)+(byteCount%512==0)? 0:1; | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ -
mess/systems/cpschngr.c:30:10: warning: cast to smaller integer type 'int' from 'void (*)(machine_config *)' (aka 'void (*)(struct _machine_config *)') [-Wpointer-to-int-cast] 30 | return ((int) construct_forgottn) | ((int) construct_sf2) | ((int) construct_qsound); | ^~~~~~~~~~~~~~~~~~~~~~~~ -
mess/systems/cpschngr.c:30:39: warning: cast to smaller integer type 'int' from 'void (*)(machine_config *)' (aka 'void (*)(struct _machine_config *)') [-Wpointer-to-int-cast] 30 | return ((int) construct_forgottn) | ((int) construct_sf2) | ((int) construct_qsound); | ^~~~~~~~~~~~~~~~~~~ -
mess/systems/cpschngr.c:30:63: warning: cast to smaller integer type 'int' from 'void (*)(machine_config *)' (aka 'void (*)(struct _machine_config *)') [-Wpointer-to-int-cast] 30 | return ((int) construct_forgottn) | ((int) construct_sf2) | ((int) construct_qsound); | ^~~~~~~~~~~~~~~~~~~~~~ -
mess/machine/vc1541.c:677:19: warning: equality comparison with extraneous parentheses [-Wparentheses-equality] 677 | if ((vc1541->type==TypeC1551)) { | ~~~~~~~~~~~~^~~~~~~~~~~ -
mess/systems/compis.c:98:60: warning: illegal character encoding in string literal [-Winvalid-source-encoding] 98 | PORT_BIT( 0x1000, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("<B4> `") PORT_CODE(KEYCODE_EQUALS) | ^~~~ -
mess/systems/compis.c:113:60: warning: illegal character encoding in string literal [-Winvalid-source-encoding] 113 | PORT_BIT( 0x0200, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("<E5> <C5>") PORT_CODE(KEYCODE_OPENBRACE) | ^~~~ ~~~~ -
mess/systems/compis.c:114:60: warning: illegal character encoding in string literal [-Winvalid-source-encoding] 114 | PORT_BIT( 0x0400, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("<FC> <DC>") PORT_CODE(KEYCODE_CLOSEBRACE) | ^~~~ ~~~~ -
mess/systems/compis.c:128:60: warning: illegal character encoding in string literal [-Winvalid-source-encoding] 128 | PORT_BIT( 0x0040, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("<F6> <D6>") PORT_CODE(KEYCODE_COLON) | ^~~~ ~~~~ -
mess/systems/compis.c:129:60: warning: illegal character encoding in string literal [-Winvalid-source-encoding] 129 | PORT_BIT( 0x0080, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("<E4> <C4>") PORT_CODE(KEYCODE_QUOTE) | ^~~~ ~~~~ -
mess/systems/compis.c:152:61: warning: illegal character encoding in string literal [-Winvalid-source-encoding] 152 | PORT_BIT( 0x1000, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("S<D6>K") PORT_CODE(KEYCODE_PRTSCR) | ^~~~ -
mess/systems/compis.c:153:64: warning: illegal character encoding in string literal [-Winvalid-source-encoding] 153 | PORT_BIT( 0x2clang0: 00, Iwarning: Pargument unused during compilation: '-fstack-clash-protection' [-Wunused-command-line-argument]_
-
mess/systems/telmac.c:488:87: warning: illegal character encoding in character literal [-Winvalid-source-encoding] 488 | PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_KEYBOARD ) PORT_CODE(KEYCODE_OPENBRACE) PORT_CHAR('<C5>') | ^ -
mess/systems/telmac.c:489:83: warning: illegal character encoding in character literal [-Winvalid-source-encoding] 489 | PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_KEYBOARD ) PORT_CODE(KEYCODE_QUOTE) PORT_CHAR('<C4>') | ^ -
mess/systems/telmac.c:490:83: warning: illegal character encoding in character literal [-Winvalid-source-encoding] 490 | PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_KEYBOARD ) PORT_CODE(KEYCODE_COLON) PORT_CHAR('<D6>') | ^ -
mess/systems/abc80.c:849:62: warning: illegal character encoding in string literal [-Winvalid-source-encoding] 849 | PORT_BIT (0x08, IP_ACTIVE_HIGH, IPT_KEYBOARD) PORT_NAME("4 <A4>") PORT_CODE(KEYCODE_4) | ^~~~ -
mess/systems/abc80.c:858:60: warning: illegal character encoding in string literal [-Winvalid-source-encoding] 858 | PORT_BIT (0x08, IP_ACTIVE_HIGH, IPT_KEYBOARD) PORT_NAME("<E9> <C9>") PORT_CODE(KEYCODE_EQUALS) | ^~~~ ~~~~ -
mess/systems/abc80.c:871:60: warning: illegal character encoding in string literal [-Winvalid-source-encoding] 871 | PORT_BIT (0x80, IP_ACTIVE_HIGH, IPT_KEYBOARD) PORT_NAME("<E5> <C5>") PORT_CODE(KEYCODE_OPENBRACE) | ^~~~ ~~~~ -
mess/systems/abc80.c:873:60: warning: illegal character encoding in string literal [-Winvalid-source-encoding] 873 | PORT_BIT (0x01, IP_ACTIVE_HIGH, IPT_KEYBOARD) PORT_NAME("<FC> <DC>") PORT_CODE(KEYCODE_CLOSEBRACE) | ^~~~ ~~~~ -
mess/systems/abc80.c:884:60: warning: illegal character encoding in string literal [-Winvalid-source-encoding] 884 | PORT_BIT (0x04, IP_ACTIVE_HIGH, IPT_KEYBOARD) PORT_NAME("<F6> <D6>") PORT_CODE(KEYCODE_COLON) | ^~~~ ~~~~ -
mess/systems/abc80.c:885:60: warning: illegal character encoding in string literal [-Winvalid-source-encoding] 885 | PORT_BIT (0x08, IP_ACTIVE_HIGH, IPT_KEYBOARD) PORT_NAME("<E4> <C4>") PORT_CODE(KEYCODE_QUOTE) | ^~~~ ~~~~ -
mess/formats/primoptp.c:161:38: warning: format specifies type 'int' but the argument has type 'long' [-Wformat] 161 | logerror ("Samples (pause): %d\n", p-buffer); | ~~ ^~~~~~~~ | %ld -
mess/formats/primoptp.c:167:43: warning: format specifies type 'int' but the argument has type 'long' [-Wformat] 167 | logerror ("Samples (file pilot): %d\n", p-buffer); | ~~ ^~~~~~~~ | %ld -
mess/formats/primoptp.c:188:45: warning: format specifies type 'int' but the argument has type 'long' [-Wformat] 188 | logerror ("Samples (block pilot): %d\n", p-buffer); | ~~ ^~~~~~~~ | %ld -
mess/formats/primoptp.c:197:44: warning: format specifies type 'int' but the argument has type 'long' [-Wformat] 197 | logerror ("Samples (block data): %d\n", p-buffer); | ~~ ^~~~~~~~ | %ld -
mess/systems/primo.c:197:63: warning: illegal character encoding in string literal [-Winvalid-source-encoding] 197 | PORT_BIT( 0x0001, IP_ACTIVE_HIGH, IPT_KEYBOARD ) PORT_NAME("<81>") PORT_CODE(KEYCODE_EQUALS) PORT_CHAR(UCHAR_MAMEKEY(F2)) | ^~~~ -
mess/systems/primo.c:200:63: warning: illegal character encoding in string literal [-Winvalid-source-encoding] 200 | PORT_BIT( 0x0008, IP_ACTIVE_HIGH, IPT_KEYBOARD ) PORT_NAME("<A3>") PORT_CODE(KEYCODE_END) PORT_CHAR(UCHAR_MAMEKEY(F3)) | ^~~~ -
mess/systems/primo.c:207:63: warning: illegal character encoding in string literal [-Winvalid-source-encoding] 207 | PORT_BIT( 0x0400, IP_ACTIVE_HIGH, IPT_KEYBOARD ) PORT_NAME("<82>") PORT_CODE(KEYCODE_COLON) PORT_CHAR(UCHAR_MAMEKEY(F4)) | ^~~~ -
mess/systems/primo.c:208:63: warning: illegal character encoding in string literal [-Winvalid-source-encoding] 208 | PORT_BIT( 0x0800, IP_ACTIVE_HIGH, IPT_KEYBOARD ) PORT_NAME("<A2>") PORT_CODE(KEYCODE_CLOSEBRACE) PORT_CHAR(UCHAR_MAMEKEY(F5)) | ^~~~ -
mess/systems/primo.c:209:63: warning: illegal character encoding in string literal [-Winvalid-source-encoding] 209 | PORT_BIT( 0x1000, IP_ACTIVE_HIGH, IPT_KEYBOARD ) PORT_NAME("<A0>") PORT_CODE(KEYCODE_QUOTE) PORT_CHAR(UCHAR_MAMEKEY(F6)) | ^~~~ -
mess/systems/primo.c:211:63: warning: illegal character encoding in string literal [-Winvalid-source-encoding] 211 | PORT_BIT( 0x4000, IP_ACTIVE_HIGH, IPT_KEYBOARD ) PORT_NAME("<94>") PORT_CODE(KEYCODE_OPENBRACE) PORT_CHAR(UCHAR_MAMEKEY(F7)) | ^~~~ -
mess/machine/mpc105.c:66:14: warning: cast to 'read64_handler' (aka 'unsigned long long (*)(unsigned int, unsigned long long)') from smaller integer type 'int' [-Wint-to-pointer-cast] 66 | 0, 0, (read64_handler) (bank + mpc105->bank_base)); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -
mess/machine/mpc105.c:68:14: warning: cast to 'write64_handler' (aka 'void (*)(unsigned int, unsigned long long, unsigned long long)') from smaller integer type 'int' [-Wint-to-pointer-cast] 68 | 0, 0, (write64_handler) (bank + mpc105->bank_base)); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -
mess/vidhrdw/gamecom.c:19:7: warning: logical not is only applied to the left hand side of this bitwise operator [-Wlogical-not-parentheses] 19 | if ( ! internal_registers[SM8521_LCDC] & 0x80 ) { | ^ ~ -
advance/lib/crtc.c:368:50: warning: taking the absolute value of unsigned type 'unsigned int' has no effect [-Wabsolute-value] 368 | if (!best_found || abs(try_vtotal - vtotal) < advance/lib/generate.c:abs289(:b6e:s tnote: _remove the call to 'abs' since unsigned values cannot be negativev
-
advance/menu/game.h:294:33: warning: 'binary_function<game, game, bool>' is deprecated [-Wdeprecated-declarations] 294 | struct game_by_name_less : std::binary_function<game, game, bool> { | ^ -
advance/menu/game.h:301:33: warning: 'binary_function<game, game, bool>' is deprecated [-Wdeprecated-declarations] 301 | struct game_by_play_less : std::binary_function<game, game, bool> { | ^ -
advance/menu/category.h:73:30: warning: 'binary_function<const category *, const category *, bool>' is deprecated [-Wdeprecated-declarations] 73 | struct pcategory_less : std::binary_function<const category*, const category*, bool> { | ^ -
advance/menu/game.h:294:33: warning: 'binary_function<game, game, bool>' is deprecated [-Wdeprecated-declarations]
-
advance/lib/crtc.c:490:24: warning: taking the absolute value of unsigned type 'unsigned int' has no effect [-Wabsolute-value] 490 | advance/lib/gtf.c : 85i:f29 :( !warning: btaking the absolute value of unsigned type 'unsigned int' has no effect [-Wabsolute-value]e
-
advance/v/draw.c:120:11: warning: taking the absolute value of unsigned type 'unsigned int' has no effect [-Wabsolute-value] 120 | int bd = abs(bs - 640 * 480); | ^ -
advance/v/draw.c:868:37: warning: illegal character encoding in character literal [-Winvalid-source-encoding] 868 | video_put_char(i, text_size_y(), '<DB>', DRAW_COLOR_RED); | ^ -
advance/v/draw.c:871:37: warning: illegal character encoding in character literal [-Winvalid-source-encoding] 871 | video_put_char(text_size_x(), j, '<DB>', DRAW_COLOR_RED); | ^ -
advance/v/draw.c:876:25: warning: illegal character encoding in character literal [-Winvalid-source-encoding] 876 | video_put_char(i, 0, '<DB>', DRAW_COLOR_GRAY); | ^ -
advance/v/draw.c:877:41: warning: illegal character encoding in character literal [-Winvalid-source-encoding] 877 | video_put_char(i, text_size_y() - 1, '<DB>', DRAW_COLOR_GRAY); | ^ -
advance/v/draw.c:880:25: warning: illegal character encoding in character literal [-Winvalid-source-encoding] 880 | video_put_char(0, j, '<DB>', DRAW_COLOR_GRAY); | ^ -
advance/v/draw.c:881:41: warning: illegal character encoding in character literal [-Winvalid-source-encoding] 881 | video_put_char(text_size_x() - 1, j, '<DB>', DRAW_COLOR_GRAY); | ^ -
advance/v/draw.c:887:26: warning: illegal character encoding in character literal [-Winvalid-source-encoding] 887 | video_put_char(i, j, '<FA>', DRAW_COLOR_GRAY); | ^ -
advance/lib/generate.c:464:6: warning: taking the absolute value of unsigned type 'unsigned int' has no effect [-Wabsolute-value] 464 | if (abs(crtc->vde - vsize) <= Cobj/v/linux/blend/blit/clear.o
-
advance/lib/gtf.c:85:29: warning: taking the absolute value of unsigned type 'unsigned int' has no effect [-Wabsolute-value] 85 | if (crtc->vde != vsize && abs(crtc->vde - vsize) <= CRTC_VSTEP) | ^ -
advance/v/v.c:225:11: warning: illegal character encoding in character literal [-Winvalid-source-encoding] 225 | tag = '<FE>'; | ^ -
advance/v/v.c:235:11: warning: illegal character encoding in character literal [-Winvalid-source-encoding] 235 | tag = '<FE>'; | ^ -
advance/v/draw.c:119:11: warning: taking the absolute value of unsigned type 'unsigned int' has no effect [-Wabsolute-value] 119 | int ad = abs(as - 640 * 480); | ^ -
advance/v/draw.c:876:25: warning: illegal character encoding in character literal [-Winvalid-source-encoding] 876 | video_putobj/s/linux/blend/lib/mixer.o
-
src/cpu/m68000/m68kcpu.c:989:2: warning: 'sizeof ((m68ki_cpu.dar + 8))' will return the size of the pointer, not the array itself [-Wsizeof-pointer-div] 989 | state_save_register_item_array(type, index, REG_A); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -
srcmess/cpu/m68000/m68kcpu.c:989:46: warning: sizeof on pointer operation will return size of 'unsigned int *' instead of 'unsigned int[16]' [-Wsizeof-array-decay] 989 | state_save_register_item_array(type, index, REG_A); | ^~~~~ -
srcmess/cpu/m68000/m68kcpu.c:989:2: warning: 'sizeof ((m68ki_cpu.dar + 8))' will return the size of the pointer, not the array itself [-Wsizeof-pointer-div] 989 | state_save_register_item_array(type, index, REG_A); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~