Skip to content

[lldb][NFC] Make SubsystemRAII a struct to avoid compiler warnings - #245337

Merged
Teemperor merged 1 commit into
llvm:mainfrom
Teemperor:LLDB_SubsystemPublic
Nov 24, 2026
Merged

Teemperor merged 1 commit into
llvm:mainfrom
Teemperor:LLDB_SubsystemPublic

Conversation

@Teemperor

Copy link
Copy Markdown
Contributor

See #244396 which makes unused private fields a warning.

See llvm#244396 which makes unused
private fields a warning.
@llvmorg-github-actions

Copy link
Copy Markdown

@llvm/pr-subscribers-lldb

Author: Raphael Isemann (Teemperor)

Changes

See #244396 which makes unused private fields a warning.


Full diff: https://github.com/llvm/llvm-project/pull/245337.diff

1 Files Affected:

  • (modified) lldb/unittests/TestingSupport/SubsystemRAII.h (+2-2)
diff --git a/lldb/unittests/TestingSupport/SubsystemRAII.h b/lldb/unittests/TestingSupport/SubsystemRAII.h
index 3df104b8af2263..52b407df0e2db9 100644
--- a/lldb/unittests/TestingSupport/SubsystemRAII.h
+++ b/lldb/unittests/TestingSupport/SubsystemRAII.h
@@ -43,7 +43,7 @@ template <typename T> struct SubsystemRAIICase {
 };
 } // namespace detail
 
-template <typename... T> class SubsystemRAII {};
+template <typename... T> struct SubsystemRAII {};
 
 /// RAII for initializing and deinitializing LLDB subsystems.
 ///
@@ -81,7 +81,7 @@ template <typename... T> class SubsystemRAII {};
 ///     HostInfo::Terminate();
 ///   }
 ///   @endcode
-template <typename T, typename... Ts> class SubsystemRAII<T, Ts...> {
+template <typename T, typename... Ts> struct SubsystemRAII<T, Ts...> {
   detail::SubsystemRAIICase<T> CurrentSubsystem;
   SubsystemRAII<Ts...> RemainingSubsystems;
 };

@Teemperor Teemperor changed the title [lldb][NFC] Make SubsystemRAII a struct to avoid compiler warning [lldb][NFC] Make SubsystemRAII a struct to avoid compiler warnings Nov 23, 2026
@Teemperor
Teemperor merged commit ea0154c into llvm:main Nov 24, 2026
12 checks passed
@Teemperor
Teemperor deleted the LLDB_SubsystemPublic branch November 24, 2026 12:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants