From 6435744f7a1f7995a80309eb8b66468c0c7e732b Mon Sep 17 00:00:00 2001 From: Chris Robinson Date: Sun, 22 Oct 2023 20:05:00 -0700 Subject: Don't inline a destructor --- al/debug.cpp | 5 +++++ al/debug.h | 1 + 2 files changed, 6 insertions(+) diff --git a/al/debug.cpp b/al/debug.cpp index f5914767..b76ec9af 100644 --- a/al/debug.cpp +++ b/al/debug.cpp @@ -27,6 +27,11 @@ #include "source.h" +/* Declared here to prevent compilers from thinking it should be inlined, which + * GCC warns about increasing code size. + */ +DebugGroup::~DebugGroup() = default; + namespace { static_assert(DebugSeverityBase+DebugSeverityCount <= 32, "Too many debug bits"); diff --git a/al/debug.h b/al/debug.h index 2764bb7f..351be9c0 100644 --- a/al/debug.h +++ b/al/debug.h @@ -63,6 +63,7 @@ struct DebugGroup { { } DebugGroup(const DebugGroup&) = default; DebugGroup(DebugGroup&&) = default; + ~DebugGroup(); }; #endif /* AL_DEBUG_H */ -- cgit v1.2.3