aboutsummaryrefslogtreecommitdiffstats
path: root/core/helpers.cpp
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2022-02-23 02:39:17 -0800
committerChris Robinson <[email protected]>2022-02-23 02:39:17 -0800
commit42bacc399ba799c840a3be6986b3008ece2561d7 (patch)
tree9253550bfdfa7d5a935d024ca6262182f3d0346c /core/helpers.cpp
parent357fb467fe7ffe5d4898ef4333dac9f679a79762 (diff)
Fix an unused parameter warning
... when either pthread_setschedparam or RTKit aren't available.
Diffstat (limited to 'core/helpers.cpp')
-rw-r--r--core/helpers.cpp7
1 files changed, 6 insertions, 1 deletions
diff --git a/core/helpers.cpp b/core/helpers.cpp
index 754e66c1..e4a94fe5 100644
--- a/core/helpers.cpp
+++ b/core/helpers.cpp
@@ -12,6 +12,7 @@
#include <mutex>
#include <limits>
#include <string>
+#include <tuple>
#include "almalloc.h"
#include "alfstream.h"
@@ -432,8 +433,11 @@ bool SetRTPriorityPthread(int prio)
#endif
err = pthread_setschedparam(pthread_self(), SCHED_RR, &param);
if(err == 0) return true;
-#endif
+#else
+
+ std::ignore = prio;
+#endif
WARN("pthread_setschedparam failed: %s (%d)\n", std::strerror(err), err);
return false;
}
@@ -531,6 +535,7 @@ bool SetRTPriorityRTKit(int prio)
#else
+ std::ignore = prio;
WARN("D-Bus not supported\n");
#endif
return false;