code cleanup: remove unused macros, commet some which may be useful later - or good to keep for completeness. quieted some warnings and add flags -Wmissing-include-dirs and -Wno-div-by-zero to cmake/gcc
This commit is contained in:
@@ -77,8 +77,10 @@ static PyObject *make_ffmpeg_info(void)
|
||||
return NULL;
|
||||
}
|
||||
|
||||
#if 0 // UNUSED
|
||||
#define SetIntItem(flag) \
|
||||
PyStructSequence_SET_ITEM(ffmpeg_info, pos++, PyLong_FromLong(flag))
|
||||
#endif
|
||||
#define SetStrItem(str) \
|
||||
PyStructSequence_SET_ITEM(ffmpeg_info, pos++, PyUnicode_FromString(str))
|
||||
#define SetObjItem(obj) \
|
||||
@@ -118,7 +120,7 @@ static PyObject *make_ffmpeg_info(void)
|
||||
return NULL;
|
||||
}
|
||||
|
||||
#undef SetIntItem
|
||||
// #undef SetIntItem
|
||||
#undef SetStrItem
|
||||
#undef SetObjItem
|
||||
|
||||
|
@@ -52,9 +52,6 @@
|
||||
#include "bpy_util.h"
|
||||
#include "bpy_rna_anim.h"
|
||||
|
||||
#define TRUE 1
|
||||
#define FALSE 0
|
||||
|
||||
/* for keyframes and drivers */
|
||||
static int pyrna_struct_anim_args_parse(
|
||||
PointerRNA *ptr, const char *error_prefix, const char *path,
|
||||
|
@@ -46,8 +46,6 @@
|
||||
#include "BLI_math.h"
|
||||
#include "BLI_utildefines.h"
|
||||
|
||||
#define SWAP_FLOAT(a, b, tmp) tmp = a; a = b; b = tmp
|
||||
|
||||
/*-------------------------DOC STRINGS ---------------------------*/
|
||||
PyDoc_STRVAR(M_Geometry_doc,
|
||||
"The Blender geometry module"
|
||||
|
Reference in New Issue
Block a user