diff options
Diffstat (limited to '')
-rw-r--r-- | src/threading.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/threading.cpp b/src/threading.cpp index d278bb1..259693a 100644 --- a/src/threading.cpp +++ b/src/threading.cpp | |||
@@ -209,7 +209,7 @@ void THREAD_SETNAME(char const* _name) | |||
209 | // general its implementation is pretty much trivial, as on Win32 target | 209 | // general its implementation is pretty much trivial, as on Win32 target |
210 | // just SCHED_OTHER can be supported. | 210 | // just SCHED_OTHER can be supported. |
211 | #undef pthread_attr_setschedpolicy | 211 | #undef pthread_attr_setschedpolicy |
212 | static int pthread_attr_setschedpolicy(pthread_attr_t* attr, int policy) | 212 | [[nodiscard]] static int pthread_attr_setschedpolicy(pthread_attr_t* attr, int policy) |
213 | { | 213 | { |
214 | if (policy != SCHED_OTHER) | 214 | if (policy != SCHED_OTHER) |
215 | { | 215 | { |
@@ -348,7 +348,7 @@ static int const gs_prio_remap[] = | |||
348 | #endif // _PRIO_0 | 348 | #endif // _PRIO_0 |
349 | }; | 349 | }; |
350 | 350 | ||
351 | static int select_prio(int prio /* -3..+3 */) | 351 | [[nodiscard]] static int select_prio(int prio /* -3..+3 */) |
352 | { | 352 | { |
353 | if (prio == THREAD_PRIO_DEFAULT) | 353 | if (prio == THREAD_PRIO_DEFAULT) |
354 | prio = 0; | 354 | prio = 0; |