From 9017c368840f5ff6cf551493a6c5ade1b0661db4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?G=C3=BCnter=20Obiltschnig?= Date: Wed, 23 Jun 2021 08:52:41 +0200 Subject: [PATCH] #3322: remove useless struct --- Foundation/src/Thread_POSIX.cpp | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/Foundation/src/Thread_POSIX.cpp b/Foundation/src/Thread_POSIX.cpp index ac3eefdeb..08d0bea7c 100644 --- a/Foundation/src/Thread_POSIX.cpp +++ b/Foundation/src/Thread_POSIX.cpp @@ -107,10 +107,7 @@ void ThreadImpl::setPriorityImpl(int prio) _pData->policy = SCHED_OTHER; if (isRunningImpl()) { - struct sched_param par; struct MyStruct - { - - }; + struct sched_param par; par.sched_priority = mapPrio(_pData->prio, SCHED_OTHER); if (pthread_setschedparam(_pData->thread, SCHED_OTHER, &par)) throw SystemException("cannot set thread priority");