Code: Select all
/home/marisa/.cache/pacaur/zdoom-git/src/zdoom/src/sound/oalsound.cpp: In member function ‘virtual SoundStream* OpenALSoundRenderer::CreateStream(SoundStreamCallback, int, int, int, void*)’:
/home/marisa/.cache/pacaur/zdoom-git/src/zdoom/src/sound/oalsound.cpp:1298:41: error: ‘mem_fn’ is not a member of ‘std’
StreamThread = std::thread(std::mem_fn(&OpenALSoundRenderer::BackgroundProc), this);
^~~~~~
/home/marisa/.cache/pacaur/zdoom-git/src/zdoom/src/sound/oalsound.cpp:1298:41: note: suggested alternative: ‘mem_fun’
StreamThread = std::thread(std::mem_fn(&OpenALSoundRenderer::BackgroundProc), this);
^~~~~~
mem_fun
/home/marisa/.cache/pacaur/zdoom-git/src/zdoom/src/sound/oalsound.cpp:1297:5: warning: this ‘if’ clause does not guard... [-Wmisleading-indentation]
if(StreamThread.get_id() == std::thread::id())
^~
/home/marisa/.cache/pacaur/zdoom-git/src/zdoom/src/sound/oalsound.cpp:1299:2: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘if’
OpenALSoundStream *stream = new OpenALSoundStream(this);
^~~~~~~~~~~~~~~~~
/home/marisa/.cache/pacaur/zdoom-git/src/zdoom/src/sound/oalsound.cpp: In member function ‘virtual SoundStream* OpenALSoundRenderer::OpenStream(FileReader*, int)’:
/home/marisa/.cache/pacaur/zdoom-git/src/zdoom/src/sound/oalsound.cpp:1311:41: error: ‘mem_fn’ is not a member of ‘std’
StreamThread = std::thread(std::mem_fn(&OpenALSoundRenderer::BackgroundProc), this);
^~~~~~
/home/marisa/.cache/pacaur/zdoom-git/src/zdoom/src/sound/oalsound.cpp:1311:41: note: suggested alternative: ‘mem_fun’
StreamThread = std::thread(std::mem_fn(&OpenALSoundRenderer::BackgroundProc), this);
^~~~~~
mem_fun
/home/marisa/.cache/pacaur/zdoom-git/src/zdoom/src/sound/oalsound.cpp:1310:5: warning: this ‘if’ clause does not guard... [-Wmisleading-indentation]
if(StreamThread.get_id() == std::thread::id())
^~
/home/marisa/.cache/pacaur/zdoom-git/src/zdoom/src/sound/oalsound.cpp:1312:2: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘if’
OpenALSoundStream *stream = new OpenALSoundStream(this);
^~~~~~~~~~~~~~~~~