Clean-up: remove unused _trace_abi field from the CTF2 trace class visitor
authorJérémie Galarneau <jeremie.galarneau@efficios.com>
Fri, 13 Jan 2023 16:41:32 +0000 (11:41 -0500)
committerJérémie Galarneau <jeremie.galarneau@efficios.com>
Fri, 13 Jan 2023 16:43:03 +0000 (11:43 -0500)
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

src/bin/lttng-sessiond/ctf2-trace-class-visitor.cpp
src/bin/lttng-sessiond/ctf2-trace-class-visitor.hpp

index b7ab303a17294198d89662bca7eb4f7b4affe454..6a6248504d8a86152ab3c14973ebe0ded438959c 100644 (file)
@@ -368,9 +368,9 @@ private:
 
 }; /* 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)
 {
 }
 
index 0d28961236bcb661027cfc186933c0cafc828711..b709a029465ee695450ccf0f4fef53612f01ae76 100644 (file)
@@ -25,8 +25,7 @@ using append_metadata_fragment_function = std::function<void(const std::string&
 
 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;
@@ -36,7 +35,6 @@ public:
 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;
 };
 
This page took 0.027073 seconds and 4 git commands to generate.