mirror of
https://github.com/matrix-construct/construct
synced 2024-11-17 07:20:55 +01:00
ircd::json: Emit specific attributes for GCC only.
This commit is contained in:
parent
a7e97f124e
commit
b899a1dc24
1 changed files with 6 additions and 0 deletions
|
@ -1143,7 +1143,9 @@ ircd::json::stack::object::append(const json::object &object)
|
|||
};
|
||||
}
|
||||
|
||||
#if defined(__GNUC__) && !defined(__clang__)
|
||||
__attribute__((optimize("no-lifetime-dse")))
|
||||
#endif
|
||||
ircd::json::stack::object::~object()
|
||||
noexcept
|
||||
{
|
||||
|
@ -1352,7 +1354,9 @@ ircd::json::stack::array::array(member &pm)
|
|||
s->level++;
|
||||
}
|
||||
|
||||
#if defined(__GNUC__) && !defined(__clang__)
|
||||
__attribute__((optimize("no-lifetime-dse")))
|
||||
#endif
|
||||
ircd::json::stack::array::~array()
|
||||
noexcept
|
||||
{
|
||||
|
@ -1558,7 +1562,9 @@ ircd::json::stack::member::member(object &po,
|
|||
append(value);
|
||||
}
|
||||
|
||||
#if defined(__GNUC__) && !defined(__clang__)
|
||||
__attribute__((optimize("no-lifetime-dse")))
|
||||
#endif
|
||||
ircd::json::stack::member::~member()
|
||||
noexcept
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue