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/transform_width.hpp>
|
||||
|
||||
namespace __attribute__((visibility("internal"))) ircd
|
||||
namespace [[gnu::visibility("hidden")]] ircd
|
||||
{
|
||||
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.
|
||||
const uninterruptible uninterruptible;
|
||||
|
||||
push(std::move(closure)); do
|
||||
// scope address required for clang-7
|
||||
ole::push(std::move(closure)); do
|
||||
{
|
||||
wait();
|
||||
}
|
||||
|
|
|
@ -2288,9 +2288,12 @@ noexcept try
|
|||
}
|
||||
catch(const std::exception &e)
|
||||
{
|
||||
log::critical("OpenSSL thread id callback (tid=%p): %s",
|
||||
log::critical
|
||||
{
|
||||
"OpenSSL thread id callback (tid=%p): %s",
|
||||
(const void *)tid,
|
||||
e.what());
|
||||
e.what()
|
||||
};
|
||||
|
||||
ircd::terminate();
|
||||
}
|
||||
|
@ -2302,7 +2305,11 @@ ircd::openssl::locking::callback(const int mode,
|
|||
const int line)
|
||||
noexcept try
|
||||
{
|
||||
log::debug("OpenSSL: %s", debug(mode, num, file, line));
|
||||
log::debug
|
||||
{
|
||||
"OpenSSL: %s",
|
||||
debug(mode, num, file, line)
|
||||
};
|
||||
|
||||
auto &mutex
|
||||
{
|
||||
|
@ -2321,9 +2328,12 @@ noexcept try
|
|||
}
|
||||
catch(const std::exception &e)
|
||||
{
|
||||
log::critical("OpenSSL locking callback (%s): %s",
|
||||
log::critical
|
||||
{
|
||||
"OpenSSL locking callback (%s): %s",
|
||||
debug(mode, num, file, line),
|
||||
e.what());
|
||||
e.what()
|
||||
};
|
||||
|
||||
ircd::terminate();
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue