You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@apr.apache.org by bo...@apache.org on 2008/06/02 02:12:00 UTC
svn commit: r662299 - /apr/apr/trunk/include/apr_ring.h
Author: bojan
Date: Sun Jun 1 17:12:00 2008
New Revision: 662299
URL: http://svn.apache.org/viewvc?rev=662299&view=rev
Log:
Silence GCC strict aliasing warning.
Modified:
apr/apr/trunk/include/apr_ring.h
Modified: apr/apr/trunk/include/apr_ring.h
URL: http://svn.apache.org/viewvc/apr/apr/trunk/include/apr_ring.h?rev=662299&r1=662298&r2=662299&view=diff
==============================================================================
--- apr/apr/trunk/include/apr_ring.h (original)
+++ apr/apr/trunk/include/apr_ring.h Sun Jun 1 17:12:00 2008
@@ -157,7 +157,7 @@
* @param link The name of the APR_RING_ENTRY in the element struct
*/
#define APR_RING_SENTINEL(hp, elem, link) \
- (struct elem *)((char *)(hp) - APR_OFFSETOF(struct elem, link))
+ (struct elem *)((char *)(&(hp)->next) - APR_OFFSETOF(struct elem, link))
/**
* The first element of the ring