subversion-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From danie...@apache.org
Subject svn commit: r1853761 - /subversion/trunk/subversion/libsvn_subr/error.c
Date Sun, 17 Feb 2019 15:34:46 GMT
Author: danielsh
Date: Sun Feb 17 15:34:46 2019
New Revision: 1853761

URL: http://svn.apache.org/viewvc?rev=1853761&view=rev
Log:
Fix an "unused static function" warning in non-maintainer mode builds.

* subversion/libsvn_subr/error.c
  (err_abort): Define this function only if SVN_DEBUG is defined, so
    an unused function warning is fixed.

Patch by: wuzhouhui
(log message tweaked by me)

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

Modified: subversion/trunk/subversion/libsvn_subr/error.c
URL: http://svn.apache.org/viewvc/subversion/trunk/subversion/libsvn_subr/error.c?rev=1853761&r1=1853760&r2=1853761&view=diff
==============================================================================
--- subversion/trunk/subversion/libsvn_subr/error.c (original)
+++ subversion/trunk/subversion/libsvn_subr/error.c Sun Feb 17 15:34:46 2019
@@ -146,6 +146,7 @@ svn_error__locate(const char *file, long
 
 /* Cleanup function for errors.  svn_error_clear () removes this so
    errors that are properly handled *don't* hit this code. */
+#ifdef SVN_DEBUG
 static apr_status_t err_abort(void *data)
 {
   svn_error_t *err = data;  /* For easy viewing in a debugger */
@@ -155,6 +156,7 @@ static apr_status_t err_abort(void *data
     abort();
   return APR_SUCCESS;
 }
+#endif
 
 
 static svn_error_t *



Mime
View raw message