Previous 15994 Revisions Next

r12212 Wednesday 13th July, 2011 at 07:04:03 UTC by Firewave
fixed some clang warnings in MESS code (no whatsnew)
[src/mess/drivers]dectalk.c
[src/mess/machine]at45dbxx.c coco.c dccons.c sst39vfx.c upd765.c
[src/mess/tools/imgtool]main.c

src/mess/tools/imgtool/main.c
r12211r12212
793793
794794         for (i = 0; range[i].max >= 0; i++)
795795         {
796            snprintf(buf, ARRAY_LENGTH(buf),
797               (range[i].min == range[i].max) ? "%i" : "%i-%i",
798               range[i].min,
799               range[i].max);
796            if (range[i].min == range[i].max)
797               snprintf(buf, ARRAY_LENGTH(buf), "%i", range[i].min);   
798            else
799               snprintf(buf, ARRAY_LENGTH(buf), "%i-%i", range[i].min, range[i].max);   
800800
801801            if (i > 0)
802802               strncatz(range_buffer, "/", sizeof(range_buffer));
src/mess/machine/upd765.c
r12211r12212
12641264   else
12651265   {
12661266      /* sector id == EOT? */
1267      if ((fdc->upd765_command_bytes[4]==fdc->upd765_command_bytes[6]))
1267      if (fdc->upd765_command_bytes[4]==fdc->upd765_command_bytes[6])
12681268      {
12691269
12701270         /* completed */
src/mess/machine/at45dbxx.c
r12211r12212
9494   at45dbxx_t *flash = get_token(device);
9595
9696   _logerror( 0, ("at45dbxx_init (%d)\n", device_type));
97   memset( flash, 0, sizeof( flash));
97   memset(flash, 0, sizeof(at45dbxx_t));
9898   switch (device_type)
9999   {
100100      case TYPE_AT45DB041 : flash->pages = 2048; flash->page_size = 264; flash->devid = 0x18; break;
src/mess/machine/coco.c
r12211r12212
13791379         if ((dac >> 2) <= dclg_table[(joystick_axis ? state->m_dclg_output_h : state->m_dclg_output_v) & 0x03])
13801380            porta |= 0x80;
13811381
1382         if ((state->m_dclg_state == 7))
1382         if (state->m_dclg_state == 7)
13831383         {
13841384            /* While in state 7, prepare to chech next video frame for a hit */
13851385            dclg_time = machine.primary_screen->time_until_pos(input_port_read_safe(machine, portnames[joystick][ctrl][1], 0), 0);
src/mess/machine/sst39vfx.c
r12211r12212
6363   const sst39vfx_config *config = get_config(device);
6464
6565   _logerror( 0, ("sst39vfx_init (%d)\n", device_type));
66   memset( flash, 0, sizeof( flash));
66   memset(flash, 0, sizeof(sst39vfx_t));
6767   switch (device_type)
6868   {
6969      case TYPE_SST39VF020  : flash->size = 256 * 1024; break;
src/mess/machine/dccons.c
r12211r12212
533533
534534void dreamcast_atapi_init(running_machine &machine)
535535{
536   atapi_regs = auto_alloc_array(machine, UINT8,  ATAPI_REG_MAX );
537   memset(atapi_regs, 0, sizeof(atapi_regs));
536   atapi_regs = auto_alloc_array_clear(machine, UINT8, ATAPI_REG_MAX);
538537
539538   atapi_regs[ATAPI_REG_CMDSTATUS] = 0;
540539   atapi_regs[ATAPI_REG_ERROR] = 1;
src/mess/drivers/dectalk.c
r12211r12212
447447#ifdef SPC_LOG_68K
448448      logerror(" | 0x40: speech int enabled\n");
449449#endif
450      if ((state->m_infifo_semaphore == 1))
450      if (state->m_infifo_semaphore == 1)
451451      {
452452#ifdef SPC_LOG_68K
453453         logerror("    speech int fired!\n");
r12211r12212
489489#ifdef TLC_LOG
490490      logerror(" | 0x40: tone detect int enabled\n");
491491#endif
492      if ((state->m_tlc_tonedetect == 1))
492      if (state->m_tlc_tonedetect == 1)
493493      {
494494#ifdef TLC_LOG
495495         logerror("    TLC int fired!\n");
r12211r12212
522522#ifdef TLC_LOG
523523      logerror(" | 0x4000: ring detect int enabled\n");
524524#endif
525      if ((state->m_tlc_ringdetect == 1))
525      if (state->m_tlc_ringdetect == 1)
526526      {
527527#ifdef TLC_LOG
528528         logerror("    TLC int fired!\n");

Previous 15994 Revisions Next


© 1998-2018 The MESS Team