mirror of
https://github.com/matrix-construct/construct
synced 2024-11-12 04:51:08 +01:00
ircd: Clang-7 related misc fixes.
This commit is contained in:
parent
df5f00d145
commit
431eff54d9
3 changed files with 20 additions and 9 deletions
|
@ -12,7 +12,7 @@
|
||||||
#include <boost/archive/iterators/binary_from_base64.hpp>
|
#include <boost/archive/iterators/binary_from_base64.hpp>
|
||||||
#include <boost/archive/iterators/transform_width.hpp>
|
#include <boost/archive/iterators/transform_width.hpp>
|
||||||
|
|
||||||
namespace __attribute__((visibility("internal"))) ircd
|
namespace [[gnu::visibility("hidden")]] ircd
|
||||||
{
|
{
|
||||||
thread_local char base_conv_tmp_buf[64_KiB];
|
thread_local char base_conv_tmp_buf[64_KiB];
|
||||||
}
|
}
|
||||||
|
|
|
@ -91,7 +91,8 @@ ircd::ctx::ole::offload::offload(const opts &opts,
|
||||||
// we don't care about eptr anyway.
|
// we don't care about eptr anyway.
|
||||||
const uninterruptible uninterruptible;
|
const uninterruptible uninterruptible;
|
||||||
|
|
||||||
push(std::move(closure)); do
|
// scope address required for clang-7
|
||||||
|
ole::push(std::move(closure)); do
|
||||||
{
|
{
|
||||||
wait();
|
wait();
|
||||||
}
|
}
|
||||||
|
|
|
@ -2288,9 +2288,12 @@ noexcept try
|
||||||
}
|
}
|
||||||
catch(const std::exception &e)
|
catch(const std::exception &e)
|
||||||
{
|
{
|
||||||
log::critical("OpenSSL thread id callback (tid=%p): %s",
|
log::critical
|
||||||
(const void *)tid,
|
{
|
||||||
e.what());
|
"OpenSSL thread id callback (tid=%p): %s",
|
||||||
|
(const void *)tid,
|
||||||
|
e.what()
|
||||||
|
};
|
||||||
|
|
||||||
ircd::terminate();
|
ircd::terminate();
|
||||||
}
|
}
|
||||||
|
@ -2302,7 +2305,11 @@ ircd::openssl::locking::callback(const int mode,
|
||||||
const int line)
|
const int line)
|
||||||
noexcept try
|
noexcept try
|
||||||
{
|
{
|
||||||
log::debug("OpenSSL: %s", debug(mode, num, file, line));
|
log::debug
|
||||||
|
{
|
||||||
|
"OpenSSL: %s",
|
||||||
|
debug(mode, num, file, line)
|
||||||
|
};
|
||||||
|
|
||||||
auto &mutex
|
auto &mutex
|
||||||
{
|
{
|
||||||
|
@ -2321,9 +2328,12 @@ noexcept try
|
||||||
}
|
}
|
||||||
catch(const std::exception &e)
|
catch(const std::exception &e)
|
||||||
{
|
{
|
||||||
log::critical("OpenSSL locking callback (%s): %s",
|
log::critical
|
||||||
debug(mode, num, file, line),
|
{
|
||||||
e.what());
|
"OpenSSL locking callback (%s): %s",
|
||||||
|
debug(mode, num, file, line),
|
||||||
|
e.what()
|
||||||
|
};
|
||||||
|
|
||||||
ircd::terminate();
|
ircd::terminate();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue