Cleanup: declare vars or make static

This commit is contained in:
Campbell Barton 2018-08-01 08:57:31 +10:00
parent e8d58080df
commit 6a39d72558
Notes: blender-bot 2023-02-14 09:48:23 +01:00
Referenced by issue #56197, OpenCL failed to load kernel_path_init
3 changed files with 4 additions and 2 deletions

View 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}};

View File

@ -27,4 +27,6 @@
PyObject *BPyInit_imbuf(void);
extern PyTypeObject Py_ImBuf_Type;
#endif /* __IMBUF_PY_API_H__ */

View 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),