[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: svn commit: r18144 - in trunk/subversion/libsvn_fs_base: . bdb

From: Malcolm Rowe <malcolm-svn-dev_at_farside.org.uk>
Date: 2006-01-18 17:35:36 CET

[brane@tigris.org]
> void *cache_state = apr_atomic_casptr(&bdb_cache_state,
> bdb_cache_start_init, NULL);

Hi Branko,

All four apr_atomic_casptr() calls in bdb/env.c generate the following
warning for me, breaking my '-Wall -Werror' build (gcc 3.4.4 on RHEL4):

../svn-live-trunk-srcdir/subversion/libsvn_fs_base/bdb/env.c: In function `bdb_cache_init':
../svn-live-trunk-srcdir/subversion/libsvn_fs_base/bdb/env.c:340: warning: dereferencing type-punned pointer will break strict-aliasing rules
../svn-live-trunk-srcdir/subversion/libsvn_fs_base/bdb/env.c:357: warning: dereferencing type-punned pointer will break strict-aliasing rules
../svn-live-trunk-srcdir/subversion/libsvn_fs_base/bdb/env.c:365: warning: dereferencing type-punned pointer will break strict-aliasing rules
../svn-live-trunk-srcdir/subversion/libsvn_fs_base/bdb/env.c:382: warning: dereferencing type-punned pointer will break strict-aliasing rules
make: *** [subversion/libsvn_fs_base/bdb/env.lo] Error 1

I'm not sure how best to fix this: the type required seems to be
platform-specific.

Regards,
Malcolm

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Wed Jan 18 21:06:31 2006

This is an archived mail posted to the Subversion Dev mailing list.