diff options
author | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2017-07-28 11:57:31 +0200 |
---|---|---|
committer | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2017-07-31 09:48:11 +0200 |
commit | af97ba8f295e61f84d147cdc59b3d1d0e6209b4c (patch) | |
tree | f54b6416e5633c41f389b2e390b867bda5f9e2fa /cpukit/score/include/rtems/score/threadqimpl.h | |
parent | psximfs02/init.c: Increase size of buffer to avoid overwrite (diff) | |
download | rtems-af97ba8f295e61f84d147cdc59b3d1d0e6209b4c.tar.bz2 |
score: Add RTEMS_HAVE_MEMBER_SAME_TYPE()
This fixes some "variably modified" warnings and a clang compile error.
Diffstat (limited to '')
-rw-r--r-- | cpukit/score/include/rtems/score/threadqimpl.h | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/cpukit/score/include/rtems/score/threadqimpl.h b/cpukit/score/include/rtems/score/threadqimpl.h index 574221ca9c..c4a22a5def 100644 --- a/cpukit/score/include/rtems/score/threadqimpl.h +++ b/cpukit/score/include/rtems/score/threadqimpl.h @@ -1141,8 +1141,12 @@ typedef struct { RTEMS_STATIC_ASSERT( \ offsetof( object_type, wait_queue_member ) \ == offsetof( Thread_queue_Object, Wait_queue ) \ - && ( &( ( (object_type *) 0 )->wait_queue_member ) \ - == ( &( (Thread_queue_Object *) 0 )->Wait_queue ) ), \ + && RTEMS_HAVE_MEMBER_SAME_TYPE( \ + object_type, \ + wait_queue_member, \ + Thread_queue_Object, \ + Wait_queue \ + ), \ object_type \ ) |