diff options
author | 2013-07-08 23:32:47 +0000 | |
---|---|---|
committer | 2013-07-08 23:32:47 +0000 | |
commit | bd549978c53bb1181d34eadb00578e69c1fbae20 (patch) | |
tree | c1f81a34ed45ff1e9824f5e136d0fb828d09d7df /src | |
parent | 11416b9d26309850c23f8cd152e2a51b2ebdf1fb (diff) |
Initial support for Fedora 19 / GCC 4.8.1 [R. Belmont]
Diffstat (limited to 'src')
-rw-r--r-- | src/lib/formats/td0_dsk.c | 2 | ||||
-rw-r--r-- | src/mame/drivers/cobra.c | 4 | ||||
-rw-r--r-- | src/osd/sdl/sdl.mak | 4 |
3 files changed, 6 insertions, 4 deletions
diff --git a/src/lib/formats/td0_dsk.c b/src/lib/formats/td0_dsk.c index 80566dd4f5c..a574021932f 100644 --- a/src/lib/formats/td0_dsk.c +++ b/src/lib/formats/td0_dsk.c @@ -293,7 +293,7 @@ static floperr_t td0_get_sector_length(floppy_image_legacy *floppy, int head, in static floperr_t td0_get_indexed_sector_info(floppy_image_legacy *floppy, int head, int track, int sector_index, int *cylinder, int *side, int *sector, UINT32 *sector_length, unsigned long *flags) { floperr_t retVal; - UINT64 offset; + UINT64 offset = 0; UINT8 *sector_info; retVal = get_offset(floppy, head, track, sector_index, FALSE, &offset); diff --git a/src/mame/drivers/cobra.c b/src/mame/drivers/cobra.c index a50b9599d1d..ddf30ebce24 100644 --- a/src/mame/drivers/cobra.c +++ b/src/mame/drivers/cobra.c @@ -2834,7 +2834,7 @@ READ64_MEMBER(cobra_state::gfx_fifo_r) if (ACCESSING_BITS_32_63) { - UINT64 data; + UINT64 data = 0; m_gfxfifo_out->pop(&space.device(), &data); data &= 0xffffffff; @@ -2843,7 +2843,7 @@ READ64_MEMBER(cobra_state::gfx_fifo_r) } if (ACCESSING_BITS_0_31) { - UINT64 data; + UINT64 data = 0; m_gfxfifo_out->pop(&space.device(), &data); data &= 0xffffffff; diff --git a/src/osd/sdl/sdl.mak b/src/osd/sdl/sdl.mak index 46a21769261..16b6c9e7904 100644 --- a/src/osd/sdl/sdl.mak +++ b/src/osd/sdl/sdl.mak @@ -454,8 +454,10 @@ endif ifeq ($(findstring 4.7.,$(TEST_GCC)),4.7.) CCOMFLAGS += -Wno-narrowing -Wno-attributes endif + +# array bounds checking seems to be buggy in 4.8.1 (try it on video/stvvdp1.c and video/model1.c without -Wno-array-bounds) ifeq ($(findstring 4.8.,$(TEST_GCC)),4.8.) - CCOMFLAGS += -Wno-narrowing -Wno-attributes -Wno-unused-local-typedefs -Wno-unused-variable + CCOMFLAGS += -Wno-narrowing -Wno-attributes -Wno-unused-local-typedefs -Wno-unused-variable -Wno-array-bounds -Wno-strict-overflow endif endif |