quiet -Wmissing-prototypes warnings, and enable this warning by default for C with gcc.

helps for finding unused functions and making functions static, also did some minor code cleanup.
This commit is contained in:
Campbell Barton
2012-09-15 01:52:28 +00:00
parent 37748b1e08
commit e75f5c8208
87 changed files with 251 additions and 217 deletions

View File

@@ -42,6 +42,8 @@
#include "bmesh.h"
#include "bmesh_py_ops.h" /* own include */
#include "bmesh_py_types.h"
#include "bmesh_py_utils.h" /* own include */
@@ -69,7 +71,7 @@ typedef struct {
const char *opname;
} BPy_BMeshOpFunc;
PyObject *bpy_bmesh_op_CreatePyObject(const char *opname)
static PyObject *bpy_bmesh_op_CreatePyObject(const char *opname)
{
BPy_BMeshOpFunc *self = PyObject_New(BPy_BMeshOpFunc, &bmesh_op_Type);