Previous 199869 Revisions Next

r32309 Tuesday 23rd September, 2014 at 10:13:12 UTC by Oliver Stöneberg
"properly fixed" clang -Wconstant-logical-operand warnings and enabled it (nw)
[src/build]flags_clang.mak
[src/emu/cpu/h8]h8_timer16.c
[src/emu/video]stvvdp2.c
[src/mame/video]jagblit.inc

trunk/src/build/flags_clang.mak
r32308r32309
99# caused by src/emu/cpu/tms34010/34010gfx.c
1010CCOMFLAGS += -Wno-shift-count-overflow
1111
12# caused by src/emu/video/stvvdp2.c
13CCOMFLAGS += -Wno-constant-logical-operand
14
1512# TODO: needs to use $(CC)
1613TEST_CLANG := $(shell clang --version)
1714
trunk/src/mame/video/jagblit.inc
r32308r32309
344344   }
345345
346346   /* check for unhandled command bits */
347   if (LOG_UNHANDLED_BLITS)
348   {
349      if (COMMAND & 0x24003000)
350         logerror("Blitter unhandled: these command bits: %08X\n", COMMAND & 0x24003000);
351   }
347   if ((COMMAND & 0x24003000) && LOG_UNHANDLED_BLITS)
348      logerror("Blitter unhandled: these command bits: %08X\n", COMMAND & 0x24003000);
352349
353350   /* top of the outer loop */
354351   outer = outer_count;
trunk/src/emu/video/stvvdp2.c
r32308r32309
22
33#define DEBUG_MODE 0
44#define TEST_FUNCTIONS 0
5#define POPMESSAGE_DEBUG 0
56
67/*
78
r32308r32309
44314432      //  popmessage("Sprite Window enabled");
44324433
44334434      /* Capcom Collection Dai 2 - Choh Makaimura (Duh!) */
4434      if(STV_VDP2_MZCTL & 0x1f && 0)
4435      if(STV_VDP2_MZCTL & 0x1f && POPMESSAGE_DEBUG)
44354436         popmessage("Mosaic control enabled = %04x\n",STV_VDP2_MZCTL);
44364437
44374438      /* Bio Hazard bit 1 */
44384439      /* Airs Adventure 0x3e */
44394440      /* Bakuretsu Hunter */
4440      if(STV_VDP2_LNCLEN & ~2 && 0)
4441      if(STV_VDP2_LNCLEN & ~2 && POPMESSAGE_DEBUG)
44414442         popmessage("Line Colour screen enabled %04x %08x, contact MAMEdev",STV_VDP2_LNCLEN,STV_VDP2_LCTAU<<16|STV_VDP2_LCTAL);
44424443
44434444      /* Bio Hazard 0x400 = extended color calculation enabled */
r32308r32309
44484449         popmessage("Gradation enabled %04x, contact MAMEdev",STV_VDP2_CCCR);
44494450
44504451      /* Advanced VG, Shining Force III */
4451      if(STV_VDP2_SFCCMD && 0)
4452      if(STV_VDP2_SFCCMD && POPMESSAGE_DEBUG)
44524453         popmessage("Special Color Calculation enable %04x, contact MAMEdev",STV_VDP2_SFCCMD);
44534454
44544455      /* Cleopatra Fortune Transparent Shadow */
r32308r32309
44704471         popmessage("Reduction enable %04x, contact MAMEdev",STV_VDP2_ZMCTL);
44714472
44724473      /* Burning Rangers and friends FMV, J.League Pro Soccer Club Wo Tsukurou!! backgrounds */
4473      if(STV_VDP2_SCRCTL & 0x0101 && 0)
4474      if(STV_VDP2_SCRCTL & 0x0101 && POPMESSAGE_DEBUG)
44744475         popmessage("Vertical cell scroll enable %04x, contact MAMEdev",STV_VDP2_SCRCTL);
44754476
44764477      /* Magical Drop III 0x200 -> color calculation window */
trunk/src/emu/cpu/h8/h8_timer16.c
r32308r32309
298298      else
299299         event_time = 0;
300300
301      if(LOG_EVENT_TIME && event_time)
301      if(event_time && LOG_EVENT_TIME)
302302         logerror("%s: next event in %d cycles (%ld)\n", tag(), int(event_time - cpu->total_cycles()), long(event_time));
303303
304304   } else {

Previous 199869 Revisions Next


© 1997-2024 The MAME Team