From f96dd8ff8a82a334759cc77c0c8aec126b44fa91 Mon Sep 17 00:00:00 2001 From: Randy Heit Date: Fri, 11 Mar 2011 00:44:38 +0000 Subject: [PATCH] - Make GCC happy. SVN r3164 (trunk) --- game-music-emu/gme/Gbs_Emu.cpp | 6 +++--- game-music-emu/gme/Music_Emu.cpp | 2 +- game-music-emu/gme/Nsf_Emu.cpp | 4 ++-- game-music-emu/gme/Vgm_Emu.cpp | 2 +- game-music-emu/gme/gme.cpp | 2 +- src/m_argv.cpp | 1 + src/nodebuild_utility.cpp | 4 ++-- src/p_mobj.cpp | 1 + src/tempfiles.h | 2 +- src/w_wad.cpp | 1 + 10 files changed, 14 insertions(+), 11 deletions(-) diff --git a/game-music-emu/gme/Gbs_Emu.cpp b/game-music-emu/gme/Gbs_Emu.cpp index a2b1d613f..83aefb424 100644 --- a/game-music-emu/gme/Gbs_Emu.cpp +++ b/game-music-emu/gme/Gbs_Emu.cpp @@ -18,8 +18,8 @@ Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA */ #include "blargg_source.h" -Gbs_Emu::equalizer_t const Gbs_Emu::handheld_eq = { -47.0, 2000 }; -Gbs_Emu::equalizer_t const Gbs_Emu::headphones_eq = { 0.0, 300 }; +Gbs_Emu::equalizer_t const Gbs_Emu::handheld_eq = { -47.0, 2000, 0, 0, 0, 0, 0, 0, 0, 0 }; +Gbs_Emu::equalizer_t const Gbs_Emu::headphones_eq = { 0.0, 300, 0, 0, 0, 0, 0, 0, 0, 0 }; Gbs_Emu::Gbs_Emu() { @@ -39,7 +39,7 @@ Gbs_Emu::Gbs_Emu() set_max_initial_silence( 21 ); set_gain( 1.2 ); - static equalizer_t const eq = { -1.0, 120 }; + static equalizer_t const eq = { -1.0, 120, 0, 0, 0, 0, 0, 0, 0, 0 }; set_equalizer( eq ); } diff --git a/game-music-emu/gme/Music_Emu.cpp b/game-music-emu/gme/Music_Emu.cpp index f01024ce3..b0f3f71d5 100644 --- a/game-music-emu/gme/Music_Emu.cpp +++ b/game-music-emu/gme/Music_Emu.cpp @@ -24,7 +24,7 @@ int const silence_threshold = 0x10; long const fade_block_size = 512; int const fade_shift = 8; // fade ends with gain at 1.0 / (1 << fade_shift) -Music_Emu::equalizer_t const Music_Emu::tv_eq = { -8.0, 180 }; +Music_Emu::equalizer_t const Music_Emu::tv_eq = { -8.0, 180, 0, 0, 0, 0, 0, 0, 0, 0 }; void Music_Emu::clear_track_vars() { diff --git a/game-music-emu/gme/Nsf_Emu.cpp b/game-music-emu/gme/Nsf_Emu.cpp index 15f9e0b46..59d9b98cf 100644 --- a/game-music-emu/gme/Nsf_Emu.cpp +++ b/game-music-emu/gme/Nsf_Emu.cpp @@ -31,8 +31,8 @@ int const fme7_flag = 0x20; long const clock_divisor = 12; -Nsf_Emu::equalizer_t const Nsf_Emu::nes_eq = { -1.0, 80 }; -Nsf_Emu::equalizer_t const Nsf_Emu::famicom_eq = { -15.0, 80 }; +Nsf_Emu::equalizer_t const Nsf_Emu::nes_eq = { -1.0, 80, 0, 0, 0, 0, 0, 0, 0, 0 }; +Nsf_Emu::equalizer_t const Nsf_Emu::famicom_eq = { -15.0, 80, 0, 0, 0, 0, 0, 0, 0, 0 }; int Nsf_Emu::pcm_read( void* emu, nes_addr_t addr ) { diff --git a/game-music-emu/gme/Vgm_Emu.cpp b/game-music-emu/gme/Vgm_Emu.cpp index fc5394480..fe4be10a5 100644 --- a/game-music-emu/gme/Vgm_Emu.cpp +++ b/game-music-emu/gme/Vgm_Emu.cpp @@ -36,7 +36,7 @@ Vgm_Emu::Vgm_Emu() set_silence_lookahead( 1 ); // tracks should already be trimmed - static equalizer_t const eq = { -14.0, 80 }; + static equalizer_t const eq = { -14.0, 80, 0, 0, 0, 0, 0, 0, 0, 0 }; set_equalizer( eq ); } diff --git a/game-music-emu/gme/gme.cpp b/game-music-emu/gme/gme.cpp index 23e7198d3..c9154c7a4 100644 --- a/game-music-emu/gme/gme.cpp +++ b/game-music-emu/gme/gme.cpp @@ -337,7 +337,7 @@ void GMEAPI gme_set_equalizer ( Music_Emu* me, gme_equalizer_t const* eq ) void GMEAPI gme_equalizer( Music_Emu const* me, gme_equalizer_t* out ) { - gme_equalizer_t e = { }; + gme_equalizer_t e = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }; e.treble = me->equalizer().treble; e.bass = me->equalizer().bass; *out = e; diff --git a/src/m_argv.cpp b/src/m_argv.cpp index 457a1b337..54d9ffda4 100644 --- a/src/m_argv.cpp +++ b/src/m_argv.cpp @@ -55,6 +55,7 @@ DArgs::DArgs() //=========================================================================== DArgs::DArgs(const DArgs &other) +: DObject() { Argv = other.Argv; } diff --git a/src/nodebuild_utility.cpp b/src/nodebuild_utility.cpp index ef79ac4d9..35842f76a 100644 --- a/src/nodebuild_utility.cpp +++ b/src/nodebuild_utility.cpp @@ -417,7 +417,7 @@ void FNodeBuilder::FindPolyContainers (TArray &spots, TArrayx>>16, spot->y>>16, center.x>>16, center.y>>16)); @@ -452,7 +452,7 @@ void FNodeBuilder::FindPolyContainers (TArray &spots, TArray= 0) + if (closestseg != UINT_MAX) { loop = MarkLoop (closestseg, loop); P(Printf ("Found polyobj in sector %d (loop %d)\n", Segs[closestseg].frontsector, diff --git a/src/p_mobj.cpp b/src/p_mobj.cpp index 49c1d026c..a034e9d47 100644 --- a/src/p_mobj.cpp +++ b/src/p_mobj.cpp @@ -364,6 +364,7 @@ AActor::AActor () throw() } AActor::AActor (const AActor &other) throw() + : DThinker() { memcpy (&x, &other.x, (BYTE *)&this[1] - (BYTE *)&x); } diff --git a/src/tempfiles.h b/src/tempfiles.h index 799014c16..beeb2bc1d 100644 --- a/src/tempfiles.h +++ b/src/tempfiles.h @@ -49,7 +49,7 @@ public: FTempFileName (const char *prefix=NULL); ~FTempFileName (); - operator const char * const () { return Name; } + operator const char * () { return Name; } const char * GetName () const { return Name; } private: diff --git a/src/w_wad.cpp b/src/w_wad.cpp index 13e7ff14a..84da1c474 100644 --- a/src/w_wad.cpp +++ b/src/w_wad.cpp @@ -1212,6 +1212,7 @@ FWadLump::FWadLump () } FWadLump::FWadLump (const FWadLump ©) +: FileReader() { // This must be defined isn't called. File = copy.File;