idl-compiler: mark captured this used

sometime the captured `this` is used in the generated C++ code,
while some time it is not. to reenable `-Wunused-lambda-capture`
warning, let's mark this `this` as used.

Signed-off-by: Kefu Chai <kefu.chai@scylladb.com>
This commit is contained in:
Kefu Chai
2023-02-15 15:18:13 +08:00
parent b926105eae
commit 2caf9b4e1c

View File

@@ -1477,6 +1477,7 @@ def add_view(cout, cls):
fprintln(cout, reindent(4, """
auto {name}() const {{
return seastar::with_serialized_stream(v, [this] (auto& v) -> decltype({f}(std::declval<utils::input_stream&>(), boost::type<{full_type}>())) {{
std::ignore = this;
auto in = v;
{skip}
return {deser};