subvertpy-users team mailing list archive
-
subvertpy-users team
-
Mailing list archive
-
Message #00004
[PATCH 2 of 4] wc: silence a warning when compiling against Subversion 1.5 or earlier
# HG changeset patch
# User Dan Villiom Podlaski Christiansen <danchr@xxxxxxxxx>
# Date 1279991014 -7200
# Node ID cfa0b33468379f54102479cdc636a6eddfe8676c
# Parent 01de7597264e0b4ac4446781dae5d8dd7bdd768f
wc: silence a warning when compiling against Subversion 1.5 or earlier.
diff --git a/subvertpy/wc.c b/subvertpy/wc.c
--- a/subvertpy/wc.c
+++ b/subvertpy/wc.c
@@ -981,7 +981,7 @@ static PyObject *get_pristine_contents(P
svn_stream_t *stream;
#else
PyObject *ret;
- char *pristine_path;
+ const char *pristine_path;
#endif
if (!PyArg_ParseTuple(args, "s", &path))
@@ -1020,7 +1020,7 @@ static PyObject *get_pristine_contents(P
if (temp_pool == NULL)
return NULL;
RUN_SVN_WITH_POOL(temp_pool, svn_wc_get_pristine_copy_path(svn_path_canonicalize(path, temp_pool), &pristine_path, temp_pool));
- ret = PyFile_FromString(pristine_path, "rb");
+ ret = PyFile_FromString((char *)pristine_path, "rb");
apr_pool_destroy(temp_pool);
return ret;
#endif
References