mirror of
https://github.com/matrix-construct/construct
synced 2024-11-25 16:22:35 +01:00
ircd::db: Dressing for C99 array on stack here.
This commit is contained in:
parent
b31432aae1
commit
b45b25bdcd
2 changed files with 5 additions and 2 deletions
|
@ -57,7 +57,8 @@ struct ircd::db::row
|
|||
const string_view &key = {},
|
||||
const vector_view<const string_view> &columns = {},
|
||||
const vector_view<cell> &buf = {},
|
||||
gopts opts = {});
|
||||
gopts opts = {})
|
||||
__attribute__((stack_protect));
|
||||
|
||||
friend size_t seek(row &, const string_view &);
|
||||
};
|
||||
|
|
|
@ -8388,7 +8388,8 @@ ircd::db::seek(row &r,
|
|||
//
|
||||
// row
|
||||
//
|
||||
|
||||
#pragma GCC diagnostic push
|
||||
#pragma GCC diagnostic ignored "-Wstack-usage"
|
||||
ircd::db::row::row(database &d,
|
||||
const string_view &key,
|
||||
const vector_view<const string_view> &colnames,
|
||||
|
@ -8470,6 +8471,7 @@ ircd::db::row::row(database &d,
|
|||
if(key)
|
||||
seek(*this, key);
|
||||
}
|
||||
#pragma GCC diagnostic pop
|
||||
|
||||
void
|
||||
ircd::db::row::operator()(const op &op,
|
||||
|
|
Loading…
Reference in a new issue