diff options
author | Christoph Reiter <reiter.christoph@gmail.com> | 2018-08-15 21:51:42 +0200 |
---|---|---|
committer | Christoph Reiter <reiter.christoph@gmail.com> | 2018-08-16 09:16:39 +0200 |
commit | f3d1dc70f1cb0d18738bb293cc7b1bd3a2731c86 (patch) | |
tree | 479ae37475771afd7dc4dc3ac81044dc139a5334 /gi/pygobject-object.c | |
parent | a7dec0cc0e3b4bb07555581ed9d0f5b6752c3056 (diff) | |
download | pygobject-f3d1dc70f1cb0d18738bb293cc7b1bd3a2731c86.tar.gz |
ci: build python 2.7 and 3.7 in debug mode. Fixes #243ci-debug-build
It contains more strict checks which might be useful for finding potential bugs.
Initialize PyGILState_STATE because gcc can't figure out that state is always
defined in the release case when Py_DEBUG is enabled..
Remove -Winline which is triggerd for pygobject_init() with the debug build.
Not sure what to do when inlining fails, so just remove the warning for now.
Diffstat (limited to 'gi/pygobject-object.c')
-rw-r--r-- | gi/pygobject-object.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gi/pygobject-object.c b/gi/pygobject-object.c index 02f2478b..dbf46e1e 100644 --- a/gi/pygobject-object.c +++ b/gi/pygobject-object.c @@ -106,7 +106,7 @@ pygobject_data_free(PyGObjectData *data) /* This function may be called after the python interpreter has already * been shut down. If this happens, we cannot do any python calls, so just * free the memory. */ - PyGILState_STATE state; + PyGILState_STATE state = 0; PyThreadState *_save = NULL; gboolean state_saved; GSList *closures, *tmp; |