From 5991c5c9289792e8f9d14375b254ba81306680ac Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Wed, 10 Mar 2021 23:13:03 +1100 Subject: Cleanup: unused warning building as a Python module --- source/blender/python/intern/bpy_interface.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'source/blender/python') diff --git a/source/blender/python/intern/bpy_interface.c b/source/blender/python/intern/bpy_interface.c index c5f5e9c71b8..331884c0bd2 100644 --- a/source/blender/python/intern/bpy_interface.c +++ b/source/blender/python/intern/bpy_interface.c @@ -304,6 +304,7 @@ static struct _inittab bpy_internal_modules[] = { {NULL, NULL}, }; +#ifndef WITH_PYTHON_MODULE /** * Convenience function for #BPY_python_start. * @@ -321,6 +322,7 @@ static void pystatus_exit_on_error(PyStatus status) Py_ExitStatusException(status); } } +#endif /* call BPY_context_set first */ void BPY_python_start(bContext *C, int argc, const char **argv) -- cgit v1.2.3