From: Jérémie Galarneau Date: Fri, 13 Jan 2023 16:41:32 +0000 (-0500) Subject: Clean-up: remove unused _trace_abi field from the CTF2 trace class visitor X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=4f2da8b8c0f8fad2ae35dbdb9f29769da52a3dc1;p=lttng-tools.git Clean-up: remove unused _trace_abi field from the CTF2 trace class visitor 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 Change-Id: Ib85ad5c9c5affce123ee6300b8549f884a55df31 --- diff --git a/src/bin/lttng-sessiond/ctf2-trace-class-visitor.cpp b/src/bin/lttng-sessiond/ctf2-trace-class-visitor.cpp index b7ab303a1..6a6248504 100644 --- a/src/bin/lttng-sessiond/ctf2-trace-class-visitor.cpp +++ b/src/bin/lttng-sessiond/ctf2-trace-class-visitor.cpp @@ -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) { } diff --git a/src/bin/lttng-sessiond/ctf2-trace-class-visitor.hpp b/src/bin/lttng-sessiond/ctf2-trace-class-visitor.hpp index 0d2896123..b709a0294 100644 --- a/src/bin/lttng-sessiond/ctf2-trace-class-visitor.hpp +++ b/src/bin/lttng-sessiond/ctf2-trace-class-visitor.hpp @@ -25,8 +25,7 @@ using append_metadata_fragment_function = std::function