You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@subversion.apache.org by da...@apache.org on 2013/07/01 22:38:51 UTC

svn commit: r1498676 - /subversion/branches/fsfs-format7/subversion/libsvn_fs_x/string_table.c

Author: danielsh
Date: Mon Jul  1 20:38:51 2013
New Revision: 1498676

URL: http://svn.apache.org/r1498676
Log:
On the fsfs-format7 branch, fix a compiler warning.

* subversion/libsvn_fs_x/string_table.c
  (copy_masks): Hide this file-scope table when it is unused.

Modified:
    subversion/branches/fsfs-format7/subversion/libsvn_fs_x/string_table.c

Modified: subversion/branches/fsfs-format7/subversion/libsvn_fs_x/string_table.c
URL: http://svn.apache.org/viewvc/subversion/branches/fsfs-format7/subversion/libsvn_fs_x/string_table.c?rev=1498676&r1=1498675&r2=1498676&view=diff
==============================================================================
--- subversion/branches/fsfs-format7/subversion/libsvn_fs_x/string_table.c (original)
+++ subversion/branches/fsfs-format7/subversion/libsvn_fs_x/string_table.c Mon Jul  1 20:38:51 2013
@@ -472,6 +472,7 @@ svn_fs_x__string_table_create(const stri
    content to be preserved starts at byte I within the current chunk.
    This is used to work around alignment issues.
  */
+#if SVN_UNALIGNED_ACCESS_IS_OK
 static const char *copy_masks[8] = { "\xff\xff\xff\xff\xff\xff\xff\xff",
                                      "\x00\xff\xff\xff\xff\xff\xff\xff",
                                      "\x00\x00\xff\xff\xff\xff\xff\xff",
@@ -480,6 +481,7 @@ static const char *copy_masks[8] = { "\x
                                      "\x00\x00\x00\x00\x00\xff\xff\xff",
                                      "\x00\x00\x00\x00\x00\x00\xff\xff",
                                      "\x00\x00\x00\x00\x00\x00\x00\xff" };
+#endif
 
 static void
 table_copy_string(char *buffer,