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

[BUG REPORT + PATCH] kdewallet.cpp does not compile with g++-4.7.x

From: Shlomi Fish <shlomif_at_shlomifish.org>
Date: Sun, 8 Jul 2012 13:44:14 +0300

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 .

Received on 2012-07-08 12:44:58 CEST

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

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.