Cleanup: declare vars or make static
authorCampbell Barton <ideasman42@gmail.com>
Tue, 31 Jul 2018 22:57:31 +0000 (08:57 +1000)
committerCampbell Barton <ideasman42@gmail.com>
Tue, 31 Jul 2018 22:57:31 +0000 (08:57 +1000)
source/blender/makesrna/intern/rna_rigidbody.c
source/blender/python/generic/imbuf_py_api.h
source/blender/python/intern/bpy_driver.c

index 853b1d9978c77a8b9f27da5d17625ac75e65ed0a..5b86ec6b10db16be9f917d0b290964d506643956 100644 (file)
@@ -77,7 +77,7 @@ const EnumPropertyItem rna_enum_rigidbody_constraint_type_items[] = {
        {0, NULL, 0, NULL, NULL}};
 
 /* bullet spring type */
-const EnumPropertyItem rna_enum_rigidbody_constraint_spring_type_items[] = {
+static const EnumPropertyItem rna_enum_rigidbody_constraint_spring_type_items[] = {
        {RBC_SPRING_TYPE1, "SPRING1", ICON_NONE, "Blender 2.7", "Spring implementation used in blender 2.7. Damping is capped at 1.0"},
        {RBC_SPRING_TYPE2, "SPRING2", ICON_NONE, "Blender 2.8", "New implementation available since 2.8"},
        {0, NULL, 0, NULL, NULL}};
index 92c1732a9c995d30de2ab8d656e87f98f6b346b0..35adc541bfc2e6ddcca1e61e75bf52037f9b272b 100644 (file)
@@ -27,4 +27,6 @@
 
 PyObject *BPyInit_imbuf(void);
 
+extern PyTypeObject Py_ImBuf_Type;
+
 #endif  /* __IMBUF_PY_API_H__ */
index f6ff1b3f36b224abd4a00154697d28beed576cba..e7608e93f58a3ae42fe879163243805325db6eba 100644 (file)
@@ -252,7 +252,7 @@ static void pydriver_error(ChannelDriver *driver)
 
 #define OK_OP(op) [op] = 1
 
-const char secure_opcodes[255] = {
+static const char secure_opcodes[255] = {
        OK_OP(POP_TOP),
        OK_OP(ROT_TWO),
        OK_OP(ROT_THREE),