id,summary,reporter,owner,description,type,status,priority,component,version,resolution,keywords,cc,game 4540,AMIGAOS4: Compiler error in audiostream.cpp,raziel-,lordhoto,"{{{#!Markdown ScummVM1.0.0r43442 Lately i wasnt able to test build the latest sources until today which brought me to the below error g++ -Wp,-MMD,""sound/.deps/audiostream.d"",-MQ,""sound/audiostream.o"",-MP -Wall -g -mcrt=newlib -mstrict-align -mcpu=750 -mtune=7400 -W -Wno-unused-parameter -Wconversion -pedantic -Wno-long-long -Wno-multichar -Wno-unknown-pragmas -Wno-reorder -Wpointer-arith -Wcast-qual -Wcast-align -Wshadow -Wimplicit -Wnon-virtual-dtor -Wwrite-strings -fno-rtti -fno-exceptions -fcheck-new -DSCUMMVM\_SVN\_REVISION=\""43442\"" -DHAVE\_CONFIG\_H -DDATA\_PATH=\""/usr/local/share/scummvm\"" -DPLUGIN\_DIRECTORY=\""/usr/local/lib/scummvm\"" -DSDL\_BACKEND -DENABLE\_SCUMM=STATIC\_PLUGIN -DENABLE\_SCUMM\_7\_8 -DENABLE\_HE -DENABLE\_AGI=STATIC\_PLUGIN -DENABLE\_AGOS=STATIC\_PLUGIN -DENABLE\_AGOS2 -DENABLE\_CINE=STATIC\_PLUGIN -DENABLE\_CRUISE=STATIC\_PLUGIN -DENABLE\_DRASCULA=STATIC\_PLUGIN -DENABLE\_GOB=STATIC\_PLUGIN -DENABLE\_GROOVIE=STATIC\_PLUGIN -DENABLE\_KYRA=STATIC\_PLUGIN -DENABLE\_LURE=STATIC\_PLUGIN -DENABLE\_MADE=STATIC\_PLUGIN -DENABLE\_PARALLACTION=STATIC\_PLUGIN -DENABLE\_QUEEN=STATIC\_PLUGIN -DENABLE\_SAGA=STATIC\_PLUGIN -DENABLE\_IHNM -DENABLE\_SCI=STATIC\_PLUGIN -DENABLE\_SKY=STATIC\_PLUGIN -DENABLE\_SWORD1=STATIC\_PLUGIN -DENABLE\_SWORD2=STATIC\_PLUGIN -DENABLE\_TINSEL=STATIC\_PLUGIN -DENABLE\_TOUCHE=STATIC\_PLUGIN -DENABLE\_TUCKER=STATIC\_PLUGIN -I. -I. -I./engines -I/SDK/Local/newlib/include/SDL -D\_GNU\_SOURCE=1 -c sound/audiostream.cpp -o sound/audiostream.o sound/audiostream.cpp: In member function 'int Audio::LinearDiskStream<stereo, is16Bit, isUnsigned, isLE>::readBuffer\(int16\*, int\)': sound/audiostream.cpp:280: error: no matching function for call to 'MIN\(int&, int32&\)' sound/audiostream.cpp: In member function 'int Audio::LinearDiskStream<stereo, is16Bit, isUnsigned, isLE>::readBuffer\(int16\*, int\) \[with bool stereo = false, bool is16Bit = false, bool isUnsigned = false, bool isLE = false\]': sound/audiostream.cpp:591: instantiated from here sound/audiostream.cpp:280: error: no matching function for call to 'MIN\(int&, int32&\)' sound/audiostream.cpp: In member function 'int Audio::LinearDiskStream<stereo, is16Bit, isUnsigned, isLE>::readBuffer\(int16\*, int\) \[with bool stereo = false, bool is16Bit = true, bool isUnsigned = false, bool isLE = false\]': sound/audiostream.cpp:591: instantiated from here sound/audiostream.cpp:280: error: no matching function for call to 'MIN\(int&, int32&\)' sound/audiostream.cpp: In member function 'int Audio::LinearDiskStream<stereo, is16Bit, isUnsigned, isLE>::readBuffer\(int16\*, int\) \[with bool stereo = false, bool is16Bit = true, bool isUnsigned = false, bool isLE = true\]': sound/audiostream.cpp:591: instantiated from here sound/audiostream.cpp:280: error: no matching function for call to 'MIN\(int&, int32&\)' sound/audiostream.cpp: In member function 'int Audio::LinearDiskStream<stereo, is16Bit, isUnsigned, isLE>::readBuffer\(int16\*, int\) \[with bool stereo = false, bool is16Bit = false, bool isUnsigned = true, bool isLE = false\]': sound/audiostream.cpp:591: instantiated from here sound/audiostream.cpp:280: error: no matching function for call to 'MIN\(int&, int32&\)' sound/audiostream.cpp: In member function 'int Audio::LinearDiskStream<stereo, is16Bit, isUnsigned, isLE>::readBuffer\(int16\*, int\) \[with bool stereo = false, bool is16Bit = true, bool isUnsigned = true, bool isLE = false\]': sound/audiostream.cpp:591: instantiated from here sound/audiostream.cpp:280: error: no matching function for call to 'MIN\(int&, int32&\)' sound/audiostream.cpp: In member function 'int Audio::LinearDiskStream<stereo, is16Bit, isUnsigned, isLE>::readBuffer\(int16\*, int\) \[with bool stereo = false, bool is16Bit = true, bool isUnsigned = true, bool isLE = true\]': sound/audiostream.cpp:591: instantiated from here sound/audiostream.cpp:280: error: no matching function for call to 'MIN\(int&, int32&\)' sound/audiostream.cpp: In member function 'int Audio::LinearDiskStream<stereo, is16Bit, isUnsigned, isLE>::readBuffer\(int16\*, int\) \[with bool stereo = true, bool is16Bit = false, bool isUnsigned = false, bool isLE = false\]': sound/audiostream.cpp:591: instantiated from here sound/audiostream.cpp:280: error: no matching function for call to 'MIN\(int&, int32&\)' sound/audiostream.cpp: In member function 'int Audio::LinearDiskStream<stereo, is16Bit, isUnsigned, isLE>::readBuffer\(int16\*, int\) \[with bool stereo = true, bool is16Bit = true, bool isUnsigned = false, bool isLE = false\]': sound/audiostream.cpp:591: instantiated from here sound/audiostream.cpp:280: error: no matching function for call to 'MIN\(int&, int32&\)' sound/audiostream.cpp: In member function 'int Audio::LinearDiskStream<stereo, is16Bit, isUnsigned, isLE>::readBuffer\(int16\*, int\) \[with bool stereo = true, bool is16Bit = true, bool isUnsigned = false, bool isLE = true\]': sound/audiostream.cpp:591: instantiated from here sound/audiostream.cpp:280: error: no matching function for call to 'MIN\(int&, int32&\)' sound/audiostream.cpp: In member function 'int Audio::LinearDiskStream<stereo, is16Bit, isUnsigned, isLE>::readBuffer\(int16\*, int\) \[with bool stereo = true, bool is16Bit = false, bool isUnsigned = true, bool isLE = false\]': sound/audiostream.cpp:591: instantiated from here sound/audiostream.cpp:280: error: no matching function for call to 'MIN\(int&, int32&\)' sound/audiostream.cpp: In member function 'int Audio::LinearDiskStream<stereo, is16Bit, isUnsigned, isLE>::readBuffer\(int16\*, int\) \[with bool stereo = true, bool is16Bit = true, bool isUnsigned = true, bool isLE = false\]': sound/audiostream.cpp:591: instantiated from here sound/audiostream.cpp:280: error: no matching function for call to 'MIN\(int&, int32&\)' sound/audiostream.cpp: In member function 'int Audio::LinearDiskStream<stereo, is16Bit, isUnsigned, isLE>::readBuffer\(int16\*, int\) \[with bool stereo = true, bool is16Bit = true, bool isUnsigned = true, bool isLE = true\]': sound/audiostream.cpp:591: instantiated from here sound/audiostream.cpp:280: error: no matching function for call to 'MIN\(int&, int32&\)' gmake: \*\*\* \[sound/audiostream.o\] Error 1 AmigaOS4 gcc version 4.2.4 \(adtools build 20090118\) }}} {{{#!div style=""font-size: 75%"" Ticket imported from: !#2838568. Ticket imported from: bugs/4540. }}}",defect,closed,normal,Port: AmigaOS4,,fixed,build,,