Author: rhuijben Date: Wed Oct 12 10:52:42 2016 New Revision: 1764437 URL: http://svn.apache.org/viewvc?rev=1764437&view=rev Log: Resolve two warnings in libsvn_fs_x on non-posix systems.
* subversion/libsvn_fs_x/batch_fsync.c (internal_open_file): Reduce scope of one variable and conditionally define another one. Modified: subversion/trunk/subversion/libsvn_fs_x/batch_fsync.c Modified: subversion/trunk/subversion/libsvn_fs_x/batch_fsync.c URL: http://svn.apache.org/viewvc/subversion/trunk/subversion/libsvn_fs_x/batch_fsync.c?rev=1764437&r1=1764436&r2=1764437&view=diff ============================================================================== --- subversion/trunk/subversion/libsvn_fs_x/batch_fsync.c (original) +++ subversion/trunk/subversion/libsvn_fs_x/batch_fsync.c Wed Oct 12 10:52:42 2016 @@ -332,8 +332,9 @@ internal_open_file(apr_file_t **file, svn_error_t *err; apr_pool_t *pool; to_sync_t *to_sync; - svn_node_kind_t kind; +#ifdef SVN_ON_POSIX svn_boolean_t is_new_file; +#endif /* If we already have a handle for PATH, return that. */ to_sync = svn_hash_gets(batch->files, path); @@ -356,6 +357,7 @@ internal_open_file(apr_file_t **file, is_new_file = FALSE; if (flags & APR_CREATE) { + svn_node_kind_t kind; /* We might actually be about to create a new file. * Check whether the file already exists. */ SVN_ERR(svn_io_check_path(path, &kind, scratch_pool));