#5735 AMIGAOS4: Compiler error in engines/agi/sound_2gs.cpp

closed-fixed
Max Horn
5
2011-06-04
2011-06-03
No

ScummVM 1.4.0git6287426 (June 03 2011 19:42:07)
Features compiled in: Vorbis FLAC MP3 RGB zLib Theora

C++ engines/agi/sound_2gs.o
engines/agi/sound_2gs.cpp:138: error: prototype for 'uint32 Agi::SoundGen2GS::generateOutput()' does not match any in class 'Agi::SoundGen2GS'
./engines/agi/sound_2gs.h:242: error: candidate is: uint Agi::SoundGen2GS::generateOutput()
engines/agi/sound_2gs.cpp:138: error: 'uint32 Agi::SoundGen2GS::generateOutput()' cannot be overloaded
./engines/agi/sound_2gs.h:242: error: with 'uint Agi::SoundGen2GS::generateOutput()'
engines/agi/sound_2gs.cpp: In constructor 'Agi::IIgsMidi::IIgsMidi(uint8*, uint32, int, Agi::SoundMgr&)':
engines/agi/sound_2gs.cpp:459: warning: format '%d' expects type 'int', but argument 4 has type 'uint32'
engines/agi/sound_2gs.cpp: In constructor 'Agi::IIgsSample::IIgsSample(uint8*, uint32, int, Agi::SoundMgr&)':
engines/agi/sound_2gs.cpp:487: warning: format '%d' expects type 'int', but argument 3 has type 'uint32'
engines/agi/sound_2gs.cpp:510: warning: format '%d' expects type 'int', but argument 4 has type 'uint32'
engines/agi/sound_2gs.cpp: In member function 'bool Agi::SoundGen2GS::loadInstrumentHeaders(Common::String&, const Agi::IIgsExeInfo&)':
engines/agi/sound_2gs.cpp:718: warning: format '%d' expects type 'int', but argument 5 has type 'int32'
gmake: *** [engines/agi/sound_2gs.o] Error 1

AmigaOS4 - PPC - SDL - BE
gcc (GCC) 4.2.4 (adtools build 20090118)

Discussion

  • Max Horn

    Max Horn - 2011-06-03
    • assigned_to: nobody --> fingolfin
     
  • Max Horn

    Max Horn - 2011-06-03

    I just committed a change which should fix this, please try :)

     
  • Hubert Maier

    Hubert Maier - 2011-06-03

    Yes, fixed, thank you very much

     
  • Willem Jan Palenstijn

    • status: open --> closed-fixed