subversion-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From br...@apache.org
Subject svn commit: r1619118 - /subversion/trunk/subversion/tests/libsvn_fs_fs/fs-fs-pack-test.c
Date Wed, 20 Aug 2014 14:32:27 GMT
Author: brane
Date: Wed Aug 20 14:32:27 2014
New Revision: 1619118

URL: http://svn.apache.org/r1619118
Log:
Fix a new compiler warning.

* subversion/tests/libsvn_fs_fs/fs-fs-pack-test.c
  (revprop_caching_on_off): Use an intermediate value to avoid a warning
   when passing a pointer-to-non-const-svn_string_t to the
   svn_fs_change_rev_prop2.

Modified:
    subversion/trunk/subversion/tests/libsvn_fs_fs/fs-fs-pack-test.c

Modified: subversion/trunk/subversion/tests/libsvn_fs_fs/fs-fs-pack-test.c
URL: http://svn.apache.org/viewvc/subversion/trunk/subversion/tests/libsvn_fs_fs/fs-fs-pack-test.c?rev=1619118&r1=1619117&r2=1619118&view=diff
==============================================================================
--- subversion/trunk/subversion/tests/libsvn_fs_fs/fs-fs-pack-test.c (original)
+++ subversion/trunk/subversion/tests/libsvn_fs_fs/fs-fs-pack-test.c Wed Aug 20 14:32:27 2014
@@ -1178,6 +1178,7 @@ revprop_caching_on_off(const svn_test_op
   svn_fs_t *fs2;
   apr_hash_t *fs_config;
   svn_string_t *value;
+  const svn_string_t *another_value_for_avoiding_warnings_from_a_broken_api;
   const svn_string_t *new_value = svn_string_create("new", pool);
 
   if (strcmp(opts->fs_type, "fsfs") != 0)
@@ -1197,8 +1198,11 @@ revprop_caching_on_off(const svn_test_op
   SVN_ERR(svn_fs_open2(&fs2, svn_fs_path(fs1, pool), fs_config, pool, pool));
 
   SVN_ERR(svn_fs_revision_prop(&value, fs2, 0, "svn:date", pool));
-  SVN_ERR(svn_fs_change_rev_prop2(fs1, 0, "svn:date", &value,
-                                  new_value, pool));
+  another_value_for_avoiding_warnings_from_a_broken_api = value;
+  SVN_ERR(svn_fs_change_rev_prop2(
+              fs1, 0, "svn:date",
+              &another_value_for_avoiding_warnings_from_a_broken_api,
+              new_value, pool));
 
   /* Expect the change to be visible through both objects.*/
   SVN_ERR(svn_fs_revision_prop(&value, fs1, 0, "svn:date", pool));



Mime
View raw message