This unused field results in a build failure when using clang++ 14.0.6
with Werror.
./ctf2-trace-class-visitor.hpp:39:37: error: private field '_trace_abi' is not used [-Werror,-Wunused-private-field]
const lttng::sessiond::trace::abi& _trace_abi;
Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
Change-Id: Ib85ad5c9c5affce123ee6300b8549f884a55df31
}; /* namespace */
-lsc::trace_class_visitor::trace_class_visitor(const lst::abi& trace_abi,
+lsc::trace_class_visitor::trace_class_visitor(
lsc::append_metadata_fragment_function append_metadata_fragment) :
- _trace_abi{trace_abi}, _append_metadata_fragment(append_metadata_fragment)
+ _append_metadata_fragment(append_metadata_fragment)
{
}
class trace_class_visitor : public lttng::sessiond::trace::trace_class_visitor {
public:
- trace_class_visitor(const lttng::sessiond::trace::abi& trace_abi,
- append_metadata_fragment_function append_metadata);
+ trace_class_visitor(append_metadata_fragment_function append_metadata);
virtual void visit(const lttng::sessiond::trace::trace_class& trace_class) override final;
virtual void visit(const lttng::sessiond::trace::clock_class& clock_class) override final;
private:
void append_metadata_fragment(const nlohmann::json& fragment) const;
- const lttng::sessiond::trace::abi& _trace_abi;
const append_metadata_fragment_function _append_metadata_fragment;
};