Author: breser
Date: Tue May 27 23:35:01 2014
New Revision: 1597901

URL: http://svn.apache.org/r1597901
Log:
swig-py: Fix a compiler warning about const-ness.

* subversion/bindings/swig/python/libsvn_swig_py/swigutil_py.c
  (make_string_from_ob): Remove the const from the return type.
    No reason to have this here, we're making a copy of the
    string as given by Python.  So we don't need the caller to
    promise to not modify it.  The alternative to fix this would
    be to just cast everywhere which is just ugly.

Modified:
    
subversion/trunk/subversion/bindings/swig/python/libsvn_swig_py/swigutil_py.c

Modified: 
subversion/trunk/subversion/bindings/swig/python/libsvn_swig_py/swigutil_py.c
URL: 
http://svn.apache.org/viewvc/subversion/trunk/subversion/bindings/swig/python/libsvn_swig_py/swigutil_py.c?rev=1597901&r1=1597900&r2=1597901&view=diff
==============================================================================
--- 
subversion/trunk/subversion/bindings/swig/python/libsvn_swig_py/swigutil_py.c 
(original)
+++ 
subversion/trunk/subversion/bindings/swig/python/libsvn_swig_py/swigutil_py.c 
Tue May 27 23:35:01 2014
@@ -464,7 +464,7 @@ static PyObject *make_ob_wc_adm_access(v
 
 /* Conversion from Python single objects (not hashes/lists/etc.) to
    Subversion types. */
-static const char *make_string_from_ob(PyObject *ob, apr_pool_t *pool)
+static char *make_string_from_ob(PyObject *ob, apr_pool_t *pool)
 {
   if (ob == Py_None)
     return NULL;


Reply via email to