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:
2012-09-20 01:02:39 +00:00
parent 5d56a901a8
commit 25c96bc9f3
72 changed files with 109 additions and 198 deletions

View File

@@ -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

View File

@@ -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,

View File

@@ -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"