Skip to content
This repository has been archived by the owner on Nov 19, 2021. It is now read-only.

Commit

Permalink
avoid compiler warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
cab788 committed May 27, 2020
1 parent b36ce85 commit c9d4d38
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion giraffez/src/_compat.h
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,9 @@
#endif

#if PY_MAJOR_VERSION >= 3 && PY_MINOR_VERSION >= 6
#define _PyObject_GC_UNTRACK PyObject_GC_UnTrack
#define _PyObject_GC_UnTrack PyObject_GC_UnTrack
#else
#define _PyObject_GC_UnTrack _PyObject_GC_UNTRACK
#endif

#if defined(WIN32) || defined(WIN64)
Expand Down
2 changes: 1 addition & 1 deletion giraffez/src/errors.c
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ static int TeradataError_clear(TeradataErrorObject *self) {
}

static void TeradataError_dealloc(TeradataErrorObject *self) {
_PyObject_GC_UNTRACK(self);
_PyObject_GC_UnTrack(self);
TeradataError_clear(self);
Py_TYPE(self)->tp_free((PyObject*)self);
}
Expand Down

0 comments on commit c9d4d38

Please sign in to comment.