subvertpy-users team mailing list archive
-
subvertpy-users team
-
Mailing list archive
-
Message #00003
[PATCH 1 of 4] wc: fix compilation against Subversion versions prior to 1.6
# HG changeset patch
# User Dan Villiom Podlaski Christiansen <danchr@xxxxxxxxx>
# Date 1279989821 -7200
# Node ID 01de7597264e0b4ac4446781dae5d8dd7bdd768f
# Parent 533b1e2ef81ccc02f40fad6ecc721553b483cb97
wc: fix compilation against Subversion versions prior to 1.6.
The the `ret' local variable was referenced regardless of the version
of Subversion use, but only declared for 1.6 or later. Declaring it as
a PyObject in the pre-1.6 code allows compilation to proceed.
diff --git a/subvertpy/wc.c b/subvertpy/wc.c
--- a/subvertpy/wc.c
+++ b/subvertpy/wc.c
@@ -980,6 +980,7 @@ static PyObject *get_pristine_contents(P
StreamObject *ret;
svn_stream_t *stream;
#else
+ PyObject *ret;
char *pristine_path;
#endif
References