http://rapidsvn.tigris.org/issues/show_bug.cgi?id=588
Issue #|588
Summary|compilation with strict aliasing
rules is broken
Component|rapidsvn
Version|0.9.6
Platform|PC
OS/Version|Linux
URL|
Status|NEW
Status whiteboard|
Keywords|
Resolution|
Issue type|PATCH
Priority|P3
Subcomponent|svncpp
Assigned to|issues rapidsvn
Reported by|rion
------- Additional comments from rion tigris.org Sat Apr 12
21:38:16 -0700 2008 -------
here is patch
--- src/svncpp/client_status.cpp.orig 2008-03-08
03:05:30.000000000 +0500
+++ src/svncpp/client_status.cpp 2008-04-08
00:48:41.000000000 +0600
 -66,14
+66,18 
hi != NULL;
hi = apr_hash_next (hi))
{
- char *path;
+ typedef union {
+ char *cpath;
+ void *vpath;
+ } upath;
+ upath path;
void *val;
- apr_hash_this (hi, (const void **)&path, NULL,
&val);
+ apr_hash_this (hi, (const void **)&path.vpath,
NULL, &val);
svn_log_changed_path_t *log_item =
reinterpret_cast<svn_log_changed_path_t *> (val);
entry.changedPaths.push_back (
- LogChangePathEntry (path,
+ LogChangePathEntry (path.cpath,
log_item->action,
log_item->copyfrom_path,
log_item->copyfrom_rev) );
------------------------------------------------------------
---------
To unsubscribe, e-mail: issues-unsubscribe rapidsvn.tigris.org
For additional commands, e-mail: issues-help rapidsvn.tigris.org
|