diff options
author | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2017-10-12 07:18:28 +0200 |
---|---|---|
committer | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2017-10-12 07:18:28 +0200 |
commit | 5850054098b08aa87501fe464a0e4764916a433b (patch) | |
tree | a0df1bd377a89f517580efc8961847208f5b1175 /cpukit/posix | |
parent | confdefs: Add warnings for obsolete options (diff) | |
download | rtems-5850054098b08aa87501fe464a0e4764916a433b.tar.bz2 |
posix: Fix const qualifier warning
Update #2514.
Update #3179.
Diffstat (limited to 'cpukit/posix')
-rw-r--r-- | cpukit/posix/src/pthreadattrdefault.c | 6 |
1 files 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 } } }; |