On Thu, May 11, 2017 at 10:26 AM, Daniel Hellstrom <dan...@gaisler.com> wrote: > From: Jacob Hansen <jacob.han...@gaisler.com> > > --- > cpukit/score/include/rtems/score/threadqimpl.h | 4 +--- > 1 file changed, 1 insertion(+), 3 deletions(-) > > diff --git a/cpukit/score/include/rtems/score/threadqimpl.h > b/cpukit/score/include/rtems/score/threadqimpl.h > index 574221c..975221c 100644 > --- a/cpukit/score/include/rtems/score/threadqimpl.h > +++ b/cpukit/score/include/rtems/score/threadqimpl.h > @@ -1140,9 +1140,7 @@ typedef struct { > #define THREAD_QUEUE_OBJECT_ASSERT( object_type, wait_queue_member ) \ > 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 ) ), \ > + == offsetof( Thread_queue_Object, Wait_queue ), \ > object_type \ > ) > Seems oK although it does lose some check. What was llvm/clangs problem with the second condition?
> -- > 2.7.4 > > _______________________________________________ > devel mailing list > devel@rtems.org > http://lists.rtems.org/mailman/listinfo/devel _______________________________________________ devel mailing list devel@rtems.org http://lists.rtems.org/mailman/listinfo/devel