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 2011/02/07 02:12:54 UTC
svn commit: r1067835 - /subversion/trunk/subversion/libsvn_diff/diff_file.c
Author: danielsh
Date: Mon Feb 7 01:12:54 2011
New Revision: 1067835
URL: http://svn.apache.org/viewvc?rev=1067835&view=rev
Log:
* subversion/libsvn_diff/diff_file.c
(find_identical_suffix, find_identical_prefix):
Fix warnings for -DSVN_UNALIGNED_ACCESS_IS_OK=0 builds.
While at it, /don't/ break the normal build :-)
Modified:
subversion/trunk/subversion/libsvn_diff/diff_file.c
Modified: subversion/trunk/subversion/libsvn_diff/diff_file.c
URL: http://svn.apache.org/viewvc/subversion/trunk/subversion/libsvn_diff/diff_file.c?rev=1067835&r1=1067834&r2=1067835&view=diff
==============================================================================
--- subversion/trunk/subversion/libsvn_diff/diff_file.c (original)
+++ subversion/trunk/subversion/libsvn_diff/diff_file.c Mon Feb 7 01:12:54 2011
@@ -387,7 +387,9 @@ find_identical_prefix(svn_boolean_t *rea
is_match = is_match && *file[0].curp == *file[i].curp;
while (is_match)
{
+#if SVN_UNALIGNED_ACCESS_IS_OK
apr_off_t max_delta, delta;
+#endif /* SVN_UNALIGNED_ACCESS_IS_OK */
/* ### TODO: see if we can take advantage of
diff options like ignore_eol_style or ignore_space. */
@@ -562,7 +564,9 @@ find_identical_suffix(struct file_info f
{
/* Initialize the minimum pointer positions. */
const char *min_curp[4];
+#if SVN_UNALIGNED_ACCESS_IS_OK
svn_boolean_t can_read_word;
+#endif /* SVN_UNALIGNED_ACCESS_IS_OK */
min_curp[0] = file_for_suffix[0].chunk == suffix_min_chunk0
? file_for_suffix[0].buffer + suffix_min_offset0 + 1