Merge branch 'gcc5' of git://github.com/neheb/MPD into master
This commit is contained in:
commit
7552f70c8d
|
@ -69,9 +69,7 @@ ContentDirectoryService::getSearchCapabilities(UpnpClient_Handle hdl) const
|
|||
const char *s = ixmlwrap::getFirstElementValue(response.get(),
|
||||
"SearchCaps");
|
||||
if (s == nullptr || *s == 0)
|
||||
/* we could just "return {}" here, but GCC 5 doesn't
|
||||
understand that */
|
||||
return std::forward_list<std::string>();
|
||||
return {};
|
||||
|
||||
std::forward_list<std::string> result;
|
||||
for (const auto &i : IterableSplitString(s, ','))
|
||||
|
|
|
@ -178,7 +178,7 @@ public:
|
|||
/**
|
||||
* Is this an IPv4 address mapped inside struct sockaddr_in6?
|
||||
*/
|
||||
#if defined(__linux__) && !GCC_OLDER_THAN(5,0)
|
||||
#if defined(__linux__)
|
||||
constexpr
|
||||
#endif
|
||||
bool IsV4Mapped() const noexcept {
|
||||
|
|
Loading…
Reference in New Issue