diff options
author | Sergey Sharybin <sergey@blender.org> | 2022-03-16 12:57:19 +0300 |
---|---|---|
committer | Sergey Sharybin <sergey@blender.org> | 2022-03-18 14:07:08 +0300 |
commit | c3ecfdf40b02f7d12775f1ded2f039d40f1470bb (patch) | |
tree | 1819bfb4c77444a82adfc79a7dbbfd5f2679e62e /source/blender/python | |
parent | 2252bc6a5527cd7360d1ccfe7a2d1bc640a8dfa6 (diff) |
Cleanup: Compilation warnings
Mainly -Wset-but-unused-variable.
Makes default compilation on macOS way less noisy.
Differential Revision: https://developer.blender.org/D14357
Diffstat (limited to 'source/blender/python')
-rw-r--r-- | source/blender/python/intern/bpy_props.c | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/source/blender/python/intern/bpy_props.c b/source/blender/python/intern/bpy_props.c index 85a477599cd..6c58e2e3a30 100644 --- a/source/blender/python/intern/bpy_props.c +++ b/source/blender/python/intern/bpy_props.c @@ -1897,7 +1897,6 @@ static const EnumPropertyItem *enum_items_from_py(PyObject *seq_fast, PyObject *item; const Py_ssize_t seq_len = PySequence_Fast_GET_SIZE(seq_fast); PyObject **seq_fast_items = PySequence_Fast_ITEMS(seq_fast); - Py_ssize_t totbuf = 0; int i; short default_used = 0; const char *default_str_cmp = NULL; @@ -1987,9 +1986,6 @@ static const EnumPropertyItem *enum_items_from_py(PyObject *seq_fast, } items[i] = tmp; - - /* calculate combine string length */ - totbuf += id_str_size + name_str_size + desc_str_size + 3; /* 3 is for '\0's */ } else if (item == Py_None) { /* Only set since the rest is cleared. */ |