Previous 199869 Revisions Next

r32326 Tuesday 23rd September, 2014 at 19:24:20 UTC by Wilbert Pol
34010gfx.c: Work around clang shift overflow warnings; silly fix... (nw)
[src/build]flags_clang.mak
[src/emu/cpu/tms34010]34010gfx.c

trunk/src/build/flags_clang.mak
r32325r32326
66# caused by obj/sdl64d/emu/cpu/tms57002/tms57002.inc
77CCOMFLAGS += -Wno-self-assign-field
88
9# caused by src/emu/cpu/tms34010/34010gfx.c
10CCOMFLAGS += -Wno-shift-count-overflow
11
129# TODO: needs to use $(CC)
1310TEST_CLANG := $(shell clang --version)
1411
trunk/src/emu/cpu/tms34010/34010gfx.c
r32325r32326
14281428                  dstword = (dstword & ~dstmask) | pixel;
14291429
14301430               /* update the source */
1431               srcmask >>= BITS_PER_PIXEL;
1431               srcmask = srcmask >> BITS_PER_PIXEL;
14321432
14331433               /* update the destination */
1434               dstmask >>= BITS_PER_PIXEL;
1434               dstmask = dstmask >> BITS_PER_PIXEL;
14351435            }
14361436
14371437            /* write the result */
r32325r32326
14701470                  dstword = (dstword & ~dstmask) | pixel;
14711471
14721472               /* update the source */
1473               srcmask >>= BITS_PER_PIXEL;
1473               srcmask = srcmask >> BITS_PER_PIXEL;
14741474
14751475               /* update the destination */
1476               dstmask >>= BITS_PER_PIXEL;
1476               dstmask = dstmask >> BITS_PER_PIXEL;
14771477            }
14781478
14791479            /* write the result */
r32325r32326
15081508                  dstword = (dstword & ~dstmask) | pixel;
15091509
15101510               /* update the source */
1511               srcmask >>= BITS_PER_PIXEL;
1511               srcmask = srcmask >> BITS_PER_PIXEL;
15121512
15131513               /* update the destination */
1514               dstmask >>= BITS_PER_PIXEL;
1514               dstmask = dstmask >> BITS_PER_PIXEL;
15151515            }
15161516
15171517            /* write the result */
r32325r32326
16691669               }
16701670
16711671               /* update the destination */
1672               dstmask <<= BITS_PER_PIXEL;
1672               dstmask = dstmask << BITS_PER_PIXEL;
16731673            }
16741674
16751675            /* write the result */
r32325r32326
17051705               }
17061706
17071707               /* update the destination */
1708               dstmask <<= BITS_PER_PIXEL;
1708               dstmask = dstmask << BITS_PER_PIXEL;
17091709            }
17101710
17111711            /* write the result */
r32325r32326
17381738               }
17391739
17401740               /* update the destination */
1741               dstmask <<= BITS_PER_PIXEL;
1741               dstmask = dstmask << BITS_PER_PIXEL;
17421742            }
17431743
17441744            /* write the result */
r32325r32326
18691869                  dstword = (dstword & ~dstmask) | pixel;
18701870
18711871               /* update the destination */
1872               dstmask <<= BITS_PER_PIXEL;
1872               dstmask = dstmask << BITS_PER_PIXEL;
18731873            }
18741874
18751875            /* write the result */
r32325r32326
18961896                  dstword = (dstword & ~dstmask) | pixel;
18971897
18981898               /* update the destination */
1899               dstmask <<= BITS_PER_PIXEL;
1899               dstmask = dstmask << BITS_PER_PIXEL;
19001900            }
19011901
19021902            /* write the result */
r32325r32326
19201920                  dstword = (dstword & ~dstmask) | pixel;
19211921
19221922               /* update the destination */
1923               dstmask <<= BITS_PER_PIXEL;
1923               dstmask = dstmask << BITS_PER_PIXEL;
19241924            }
19251925
19261926            /* write the result */

Previous 199869 Revisions Next


© 1997-2024 The MAME Team