summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSebastian Huber <sebastian.huber@embedded-brains.de>2017-10-12 07:18:28 +0200
committerSebastian Huber <sebastian.huber@embedded-brains.de>2017-10-12 07:18:28 +0200
commit5850054098b08aa87501fe464a0e4764916a433b (patch)
treea0df1bd377a89f517580efc8961847208f5b1175
parentconfdefs: Add warnings for obsolete options (diff)
downloadrtems-5850054098b08aa87501fe464a0e4764916a433b.tar.bz2
posix: Fix const qualifier warning
Update #2514. Update #3179.
-rw-r--r--cpukit/posix/src/pthreadattrdefault.c6
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 } }
};