Author: rinrab Date: Tue Oct 22 13:53:08 2024 New Revision: 1921479 URL: http://svn.apache.org/viewvc?rev=1921479&view=rev Log: Follow-up to r1921455: fix a compiler warning that tells `ISO C90 forbids mixed declarations and code'.
For more info, see GitHub Actions logs at [1]. * subversion/include/private/svn_diff_tree: (svn_diff__tree_processor_debug_create): Separate declarations from the code. [1] https://github.com/apache/subversion/actions/runs/11448300297/job/31851504586#step:7:340 Modified: subversion/trunk/subversion/libsvn_diff/diff_tree_debug.c Modified: subversion/trunk/subversion/libsvn_diff/diff_tree_debug.c URL: http://svn.apache.org/viewvc/subversion/trunk/subversion/libsvn_diff/diff_tree_debug.c?rev=1921479&r1=1921478&r2=1921479&view=diff ============================================================================== --- subversion/trunk/subversion/libsvn_diff/diff_tree_debug.c (original) +++ subversion/trunk/subversion/libsvn_diff/diff_tree_debug.c Tue Oct 22 13:53:08 2024 @@ -345,14 +345,15 @@ const svn_diff_tree_processor_t * svn_diff__tree_processor_debug_create(svn_stream_t *out_stream, apr_pool_t *result_pool) { - debug_diff_tree_baton_t *b = apr_pcalloc(result_pool, sizeof(*b)); + debug_diff_tree_baton_t *b; + svn_diff_tree_processor_t *debug; + b = apr_pcalloc(result_pool, sizeof(*b)); b->indent_level = 0; b->out = out_stream; b->prefix = "DBG: "; - svn_diff_tree_processor_t *debug = - svn_diff__tree_processor_create(b, result_pool); + debug = svn_diff__tree_processor_create(b, result_pool); debug->dir_opened = debug_dir_opened; debug->dir_added = debug_dir_added;
