1
0
Fork 0
mirror of https://git.rwth-aachen.de/acs/public/villas/node/ synced 2025-03-09 00:00:00 +01:00

fix compiler warning about uninitialized struct fields

This commit is contained in:
Steffen Vogel 2020-11-11 21:23:29 +01:00
parent 00176d5e4b
commit c7a2709d18

View file

@ -125,9 +125,8 @@ void setThreadAffinity(pthread_t thread, int affinity)
void setPriority(int priority)
{
int ret;
struct sched_param param = {
.sched_priority = priority
};
struct sched_param param;
param.sched_priority = priority;
Logger logger = logging.get("kernel:rt");