Overview

Request 848986 accepted

Fix error when building with gcc10 (Tumbleweed)

Loading...

Avindra Goolcharan's avatar

@kujiu unfortunately, the build is erroring, here is the fatal cause:

[  226s] ./mpdpp.h: In constructor 'MPD::Playlist::Playlist(std::string, time_t)':
[  226s] ./mpdpp.h:182:15: error: 'runtime_error' is not a member of 'std'
[  226s]   182 |    throw std::runtime_error("empty path");
[  226s]       |               ^~~~~~~~~~~~~
[  226s] ./mpdpp.h: In constructor 'MPD::Item::Item(mpd_entity*)':
[  226s] ./mpdpp.h:231:16: error: 'runtime_error' is not a member of 'std'
[  226s]   231 |     throw std::runtime_error("unknown mpd_entity type");
[  226s]       |                ^~~~~~~~~~~~~
[  226s] ./mpdpp.h: In member function 'ObjectT& MPD::Iterator<ObjectT>::operator*() const':
[  226s] ./mpdpp.h:438:15: error: 'runtime_error' is not a member of 'std'
[  226s]   438 |    throw std::runtime_error("no object associated with the iterator");

If you have any ideas feel free to submit another patch!

Request History
Christophe Buffenoir's avatar

kujiu created request

Fix error when building with gcc10 (Tumbleweed)


Avindra Goolcharan's avatar

avindra accepted request

LGTM. Thank you!

openSUSE Build Service is sponsored by