subversion-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Shlomi Fish <shlo...@shlomifish.org>
Subject [BUG REPORT + PATCH] kdewallet.cpp does not compile with g++-4.7.x
Date Sun, 08 Jul 2012 10:44:14 GMT
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 .

Mime
View raw message