fixed compiler warnings
This commit is contained in:
parent
33638b66e2
commit
5ed77671b2
@ -69,7 +69,7 @@ PyDoc_STRVAR(init_repository__doc__,
|
|||||||
"Creates a new Git repository in the given path.");
|
"Creates a new Git repository in the given path.");
|
||||||
|
|
||||||
PyObject *
|
PyObject *
|
||||||
init_repository(PyObject *self, PyObject *args, PyObject *kw) {
|
init_repository(PyObject *self, PyObject *args) {
|
||||||
git_repository *repo;
|
git_repository *repo;
|
||||||
const char *path;
|
const char *path;
|
||||||
unsigned int bare;
|
unsigned int bare;
|
||||||
|
@ -839,7 +839,7 @@ Repository_create_direct_reference(Repository *self, PyObject *args,
|
|||||||
{
|
{
|
||||||
PyObject *py_obj;
|
PyObject *py_obj;
|
||||||
git_reference *c_reference;
|
git_reference *c_reference;
|
||||||
char *c_name, *c_target;
|
char *c_name;
|
||||||
git_oid oid;
|
git_oid oid;
|
||||||
int err, force;
|
int err, force;
|
||||||
|
|
||||||
@ -879,7 +879,6 @@ Repository_create_symbolic_reference(Repository *self, PyObject *args,
|
|||||||
PyObject *py_obj;
|
PyObject *py_obj;
|
||||||
git_reference *c_reference;
|
git_reference *c_reference;
|
||||||
char *c_name, *c_target;
|
char *c_name, *c_target;
|
||||||
git_oid oid;
|
|
||||||
int err, force;
|
int err, force;
|
||||||
|
|
||||||
if (!PyArg_ParseTuple(args, "sOi", &c_name, &py_obj, &force))
|
if (!PyArg_ParseTuple(args, "sOi", &c_name, &py_obj, &force))
|
||||||
|
Loading…
Reference in New Issue
Block a user