[Bf-blender-cvs] [5991c5c9289] master: Cleanup: unused warning building as a Python module

Campbell Barton noreply at git.blender.org
Wed Mar 10 13:13:46 CET 2021


Commit: 5991c5c9289792e8f9d14375b254ba81306680ac
Author: Campbell Barton
Date:   Wed Mar 10 23:13:03 2021 +1100
Branches: master
https://developer.blender.org/rB5991c5c9289792e8f9d14375b254ba81306680ac

Cleanup: unused warning building as a Python module

===================================================================

M	source/blender/python/intern/bpy_interface.c

===================================================================

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)



More information about the Bf-blender-cvs mailing list