You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@subversion.apache.org by Shlomi Fish <sh...@shlomifish.org> on 2012/07/08 12:44:14 UTC
[BUG REPORT + PATCH] kdewallet.cpp does not compile with g++-4.7.x
Hi all,
compiling kdewallet.cpp in the Subversion 1.7.5 distribution generates the
following errors with g++-4.7.x:
[QUOTE]
subversion/libsvn_auth_kwallet/kwallet.cpp: In function 'svn_boolean_t kwallet_password_get(const char**, apr_hash_t*, const char*, const char*, apr_hash_t*, svn_boolean_t, apr_pool_t*)':
subversion/libsvn_auth_kwallet/kwallet.cpp:207:68: error: taking address of temporary array
subversion/libsvn_auth_kwallet/kwallet.cpp:217:49: error: taking address of temporary array
subversion/libsvn_auth_kwallet/kwallet.cpp: In function 'svn_boolean_t kwallet_password_set(apr_hash_t*, const char*, const char*, const char*, apr_hash_t*, svn_boolean_t, apr_pool_t*)':
subversion/libsvn_auth_kwallet/kwallet.cpp:277:68: error: taking address of temporary array
subversion/libsvn_auth_kwallet/kwallet.cpp:287:49: error: taking address of temporary array
[/QUOTE]
I'm attaching a patch to correct the problem after it was reported here:
https://bugs.mageia.org/show_bug.cgi?id=6717
The patch is somewhat crude, so feel free to improve it.
Regards,
Shlomi Fish
--
-----------------------------------------------------------------
Shlomi Fish http://www.shlomifish.org/
My Aphorisms - http://www.shlomifish.org/humour.html
:)-<
+--
— Moses the Smiley by Shlomi Fish
Please reply to list if it's a mailing list post - http://shlom.in/reply .