Remove gcc compiler warnings from various files.

This commit is contained in:
Ken Hughes
2007-03-11 17:31:27 +00:00
parent e0c77c0f14
commit d60b05254d
6 changed files with 17 additions and 20 deletions

View File

@@ -213,7 +213,6 @@ static PyObject *M_Camera_New( PyObject * self, PyObject * args,
static char *kwlist[] = { "type_str", "name_str", NULL };
PyObject *pycam; /* for Camera Data object wrapper in Python */
Camera *blcam; /* for actual Camera Data we create in Blender */
char buf[21];
/* Parse the arguments passed in by the Python interpreter */
if( !PyArg_ParseTupleAndKeywords( args, kwords, "|ss", kwlist,

View File

@@ -352,7 +352,6 @@ PyTypeObject Group_Type = {
PyObject *M_Group_New( PyObject * self, PyObject * args )
{
char *name = "Group";
char buf[21];
BPy_Group *py_group; /* for Group Data object wrapper in Python */
struct Group *bl_group;

View File

@@ -7857,7 +7857,6 @@ static PyObject *M_Mesh_New( PyObject * self_unused, PyObject * args )
char *name = "Mesh";
Mesh *mesh;
BPy_Mesh *obj;
char buf[21];
if( !PyArg_ParseTuple( args, "|s", &name ) )
return EXPP_ReturnPyObjError( PyExc_TypeError,

View File

@@ -77,6 +77,7 @@
#include "IDProp.h"
#include "constant.h"
#include "gen_utils.h"
#include "gen_library.h"
extern void countall(void);

View File

@@ -144,7 +144,6 @@ static PyObject *Text_repr( BPy_Text * self );
static PyObject *M_Text_New( PyObject * self, PyObject * args)
{
char *name = "Text";
char buf[21];
int follow = 0;
Text *bl_text; /* blender text object */
PyObject *py_text; /* python wrapper */