Previous 199869 Revisions Next

r32403 Friday 26th September, 2014 at 14:45:59 UTC by Oliver Stöneberg
disabled -Wconstant-logical-operand again for clang / src/emu/cpu/tms34010/34010gfx.c cleanups (nw)
[src/build]flags_clang.mak
[src/emu/cpu/tms34010]34010gfx.c

trunk/src/build/flags_clang.mak
r32402r32403
66# caused by obj/sdl64d/emu/cpu/tms57002/tms57002.inc
77CCOMFLAGS += -Wno-self-assign-field
88
9# caused by src/mame/video/jagblit.inc on older clang versions
10CCOMFLAGS += -Wno-constant-logical-operand
11
912# TODO: needs to use $(CC)
1013TEST_CLANG := $(shell clang --version)
1114
trunk/src/emu/cpu/tms34010/34010gfx.c
r32402r32403
14271427               if (!TRANSPARENCY || pixel != 0)
14281428                  dstword = (dstword & ~dstmask) | pixel;
14291429
1430               #if (BITS_PER_PIXEL<16)
1430#if (BITS_PER_PIXEL<16)
14311431               /* update the source */
1432               srcmask = srcmask >> BITS_PER_PIXEL;
1432               srcmask >>= BITS_PER_PIXEL;
14331433
14341434               /* update the destination */
1435               dstmask = dstmask >> BITS_PER_PIXEL;
1436               #else
1435               dstmask >>= BITS_PER_PIXEL;
1436#else
14371437               srcmask = 0;
14381438               dstmask = 0;
1439               #endif
1439#endif
14401440            }
14411441
14421442            /* write the result */
r32402r32403
14741474               if (!TRANSPARENCY || pixel != 0)
14751475                  dstword = (dstword & ~dstmask) | pixel;
14761476
1477               #if (BITS_PER_PIXEL<16)
1477#if (BITS_PER_PIXEL<16)
14781478               /* update the source */
1479               srcmask = srcmask >> BITS_PER_PIXEL;
1479               srcmask >>= BITS_PER_PIXEL;
14801480
14811481               /* update the destination */
1482               dstmask = dstmask >> BITS_PER_PIXEL;
1483               #else
1482               dstmask >>= BITS_PER_PIXEL;
1483#else
14841484               srcmask = 0;
14851485               dstmask = 0;
1486               #endif
1486#endif
14871487            }
14881488
14891489            /* write the result */
r32402r32403
15171517               if (!TRANSPARENCY || pixel != 0)
15181518                  dstword = (dstword & ~dstmask) | pixel;
15191519
1520               #if (BITS_PER_PIXEL<16)
1520#if (BITS_PER_PIXEL<16)
15211521               /* update the source */
1522               srcmask = srcmask >> BITS_PER_PIXEL;
1522               srcmask >>= BITS_PER_PIXEL;
15231523
15241524               /* update the destination */
1525               dstmask = dstmask >> BITS_PER_PIXEL;
1526               #else
1525               dstmask >>= BITS_PER_PIXEL;
1526#else
15271527               srcmask = 0;
15281528               dstmask = 0;
1529               #endif
1529#endif
15301530            }
15311531
15321532            /* write the result */

Previous 199869 Revisions Next


© 1997-2024 The MAME Team