0
0
Fork 0
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:
Jason Volk 2020-02-07 12:53:02 -08:00
parent a7e97f124e
commit b899a1dc24

View file

@ -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
{