From 5850054098b08aa87501fe464a0e4764916a433b Mon Sep 17 00:00:00 2001 From: Sebastian Huber Date: Thu, 12 Oct 2017 07:18:28 +0200 Subject: posix: Fix const qualifier warning Update #2514. Update #3179. --- cpukit/posix/src/pthreadattrdefault.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/cpukit/posix/src/pthreadattrdefault.c b/cpukit/posix/src/pthreadattrdefault.c index efd6671fe6..ca3c2c11d2 100644 --- a/cpukit/posix/src/pthreadattrdefault.c +++ b/cpukit/posix/src/pthreadattrdefault.c @@ -54,7 +54,9 @@ const pthread_attr_t _POSIX_Threads_Default_attributes = { .detachstate = PTHREAD_CREATE_JOINABLE, /* detachstate */ .affinitysetsize = sizeof( _POSIX_Threads_Default_attributes.affinitysetpreallocated ), - .affinityset = - &_POSIX_Threads_Default_attributes.affinitysetpreallocated, + .affinityset = RTEMS_DECONST( + cpu_set_t *, + &_POSIX_Threads_Default_attributes.affinitysetpreallocated + ), .affinitysetpreallocated = { { -1L } } }; -- cgit v1.2.3