apr-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bo...@apache.org
Subject svn commit: r662299 - /apr/apr/trunk/include/apr_ring.h
Date Mon, 02 Jun 2008 00:12:00 GMT
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



Mime
View raw message