svn commit: r1931400 - subversion/trunk/subversion/libsvn_subr

[email protected]
Newsgroups gmane.comp.version-control.subversion.svn
Message-ID <176872398710.3344661.13039700407897904834@svn02-us-east.apache.org>
Author: brane
Date: Sun Jan 18 08:13:06 2026
New Revision: 1931400

Log:
Fix a warning about an unused function when debug mode is disabled.

* subversion/libsvn_subr/mergeinfo.c
  (rangelist_to_string_debug): Define this function only #ifdef SVN_DEBUG.

Modified:
   subversion/trunk/subversion/libsvn_subr/mergeinfo.c

Modified: subversion/trunk/subversion/libsvn_subr/mergeinfo.c
==============================================================================
--- subversion/trunk/subversion/libsvn_subr/mergeinfo.c	Sun Jan 18 04:20:02 2026	(r1931399)
+++ subversion/trunk/subversion/libsvn_subr/mergeinfo.c	Sun Jan 18 08:13:06 2026	(r1931400)
@@ -816,6 +816,7 @@ svn_mergeinfo_parse(svn_mergeinfo_t *mer
   return err;
 }
 
+#ifdef SVN_DEBUG
 static const char *
 rangelist_to_string_debug(const svn_rangelist_t *rl,
                           apr_pool_t *pool)
@@ -833,6 +834,7 @@ rangelist_to_string_debug(const svn_rang
     }
   return rls->data;
 }
+#endif  /* SVN_DEBUG */
 
 static svn_boolean_t
 rangelist_is_sorted(const svn_rangelist_t *rangelist)
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.