0
0
Fork 0
mirror of https://github.com/matrix-construct/construct synced 2024-11-04 21:08:57 +01:00

ircd::db: Dressing for C99 array on stack here.

This commit is contained in:
Jason Volk 2018-12-01 17:07:15 -08:00
parent b31432aae1
commit b45b25bdcd
2 changed files with 5 additions and 2 deletions

View file

@ -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 &);
};

View file

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