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:
@@ -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};
|
||||
|
||||
Reference in New Issue
Block a user