mirror of
https://github.com/matrix-construct/construct
synced 2024-12-25 23:14:13 +01:00
ircd:Ⓜ️ Appease unused-result warning (for array-copy return value) internally.
This commit is contained in:
parent
16db9197ad
commit
1327823d2c
1 changed files with 10 additions and 2 deletions
|
@ -12,7 +12,11 @@ ircd::m::event::id::buf
|
|||
ircd::m::event_id(const event::idx &event_idx)
|
||||
{
|
||||
event::id::buf ret;
|
||||
event_id(event_idx, ret);
|
||||
const auto res
|
||||
{
|
||||
event_id(event_idx, ret)
|
||||
};
|
||||
|
||||
return ret;
|
||||
}
|
||||
|
||||
|
@ -21,7 +25,11 @@ ircd::m::event_id(std::nothrow_t,
|
|||
const event::idx &event_idx)
|
||||
{
|
||||
event::id::buf ret;
|
||||
event_id(std::nothrow, event_idx, ret);
|
||||
const auto res
|
||||
{
|
||||
event_id(std::nothrow, event_idx, ret)
|
||||
};
|
||||
|
||||
return ret;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue