From 88c1af90c679076162e041a89232f4839eeb0164 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Damian=20H=C3=B6ster?= Date: Sun, 21 Sep 2025 15:34:06 +0200 Subject: [PATCH 1/2] Use system sched_attr struct if provided Fixes compile error on systems using glibc >= 2.41 --- source/tools/scheddl.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/source/tools/scheddl.h b/source/tools/scheddl.h index d443d0f..7d48194 100644 --- a/source/tools/scheddl.h +++ b/source/tools/scheddl.h @@ -1,6 +1,7 @@ #if !defined(SYNTHMARK_SCHEDDL_H) && !defined(__APPLE__) #define SYNTHMARK_SCHEDDL_H +#include #include #include #include @@ -13,6 +14,7 @@ const uint64_t SCHED_GETATTR_FLAGS_DL_ABSOLUTE = 0x01; +#ifndef SCHED_ATTR_SIZE_VER0 // provided by glibc >= 2.41 struct sched_attr { uint32_t size; @@ -36,6 +38,7 @@ struct sched_attr { uint32_t sched_util_min; uint32_t sched_util_max; }; +#endif inline int sched_setattr(pid_t pid, const struct sched_attr *attr, From 0bc8fffc59ec5dda5352097ee628c06e0a2f8b76 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Damian=20H=C3=B6ster?= Date: Sun, 21 Sep 2025 15:36:03 +0200 Subject: [PATCH 2/2] Fix maybe-uninitialized compile error --- source/synth/LookupTable.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/synth/LookupTable.h b/source/synth/LookupTable.h index 8c75b31..28933bd 100644 --- a/source/synth/LookupTable.h +++ b/source/synth/LookupTable.h @@ -63,7 +63,7 @@ class LookupTable { private: int32_t mNumEntries; - synth_float_t *mTable; + synth_float_t *mTable = nullptr; }; #endif // SYNTHMARK_LOOKUP_TABLE_H