aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2023-10-22 20:05:00 -0700
committerChris Robinson <[email protected]>2023-10-22 20:05:00 -0700
commit6435744f7a1f7995a80309eb8b66468c0c7e732b (patch)
tree20bf07a2f45e1438b24c610a46e2851b5399ea1f
parent197691365d112e170a8478fbbdcb38fd3826e418 (diff)
Don't inline a destructor
-rw-r--r--al/debug.cpp5
-rw-r--r--al/debug.h1
2 files changed, 6 insertions, 0 deletions
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 */