diff options
author | Ton Roosendaal <ton@blender.org> | 2006-01-28 23:17:48 +0300 |
---|---|---|
committer | Ton Roosendaal <ton@blender.org> | 2006-01-28 23:17:48 +0300 |
commit | 240e25ab652492ad8e0a713b3907aa490b1a70b3 (patch) | |
tree | 583502a6fb9983056e0b213605cecc202dfee7e7 /source/blender/python | |
parent | 2fbef6f9c9224450f4de567466c5b573dc1ec062 (diff) |
Cleanup of blender/ module; Makefiles now compile this warning free.
Mostly was unused variables, unused functions, missing prototypes and
missing include files.
Diffstat (limited to 'source/blender/python')
-rw-r--r-- | source/blender/python/api2_2x/Bone.c | 4 | ||||
-rw-r--r-- | source/blender/python/api2_2x/Material.c | 4 | ||||
-rw-r--r-- | source/blender/python/api2_2x/NMesh.c | 1 | ||||
-rw-r--r-- | source/blender/python/api2_2x/Object.c | 3 | ||||
-rw-r--r-- | source/blender/python/api2_2x/Pose.c | 6 |
5 files changed, 11 insertions, 7 deletions
diff --git a/source/blender/python/api2_2x/Bone.c b/source/blender/python/api2_2x/Bone.c index 7e233e5f647..c7f65961c71 100644 --- a/source/blender/python/api2_2x/Bone.c +++ b/source/blender/python/api2_2x/Bone.c @@ -48,9 +48,9 @@ extern void mat3_to_vec_roll(float mat[][3], float *vec, float *roll); //------------------------ERROR CODES--------------------------------- //This is here just to make me happy and to have more consistant error strings :) static const char sEditBoneError[] = "EditBone - Error: "; -static const char sEditBoneBadArgs[] = "EditBone - Bad Arguments: "; +// static const char sEditBoneBadArgs[] = "EditBone - Bad Arguments: "; static const char sBoneError[] = "Bone - Error: "; -static const char sBoneBadArgs[] = "Bone - Bad Arguments: "; +// static const char sBoneBadArgs[] = "Bone - Bad Arguments: "; //----------------------(internal) //gets the bone->roll (which is a localspace roll) and puts it in parentspace diff --git a/source/blender/python/api2_2x/Material.c b/source/blender/python/api2_2x/Material.c index aa3c86e30fd..fcd87383d2b 100644 --- a/source/blender/python/api2_2x/Material.c +++ b/source/blender/python/api2_2x/Material.c @@ -522,8 +522,8 @@ static PyObject *Material_getColorComponent( BPy_Material * self, static PyObject *Material_getOopsLoc( BPy_Material * self ); static PyObject *Material_getOopsSel( BPy_Material * self ); static PyObject *Material_getUsers( BPy_Material * self ); -static int Material_setSeptex( BPy_Material * self, PyObject * value ); -static PyObject *Material_getSeptex( BPy_Material * self ); +//static int Material_setSeptex( BPy_Material * self, PyObject * value ); +//static PyObject *Material_getSeptex( BPy_Material * self ); /*****************************************************************************/ /* Python BPy_Material methods declarations: */ diff --git a/source/blender/python/api2_2x/NMesh.c b/source/blender/python/api2_2x/NMesh.c index 293b9a2f3f4..9fa628c3c9f 100644 --- a/source/blender/python/api2_2x/NMesh.c +++ b/source/blender/python/api2_2x/NMesh.c @@ -65,6 +65,7 @@ #include "BKE_depsgraph.h" #include "BLI_arithb.h" +#include "BLI_blenlib.h" #include "blendef.h" #include "mydevice.h" diff --git a/source/blender/python/api2_2x/Object.c b/source/blender/python/api2_2x/Object.c index 89ad6f36576..29018f2692d 100644 --- a/source/blender/python/api2_2x/Object.c +++ b/source/blender/python/api2_2x/Object.c @@ -72,11 +72,14 @@ struct rctf; #include "BIF_drawscene.h" #include "BIF_meshtools.h" #include "BIF_editarmature.h" +#include "BIF_editaction.h" +#include "BIF_editnla.h" #include "BLI_arithb.h" #include "BLI_blenlib.h" #include "BDR_editobject.h" +#include "BDR_editcurve.h" #include "MEM_guardedalloc.h" diff --git a/source/blender/python/api2_2x/Pose.c b/source/blender/python/api2_2x/Pose.c index 577eb1029a3..b5a96de5dc6 100644 --- a/source/blender/python/api2_2x/Pose.c +++ b/source/blender/python/api2_2x/Pose.c @@ -57,11 +57,11 @@ extern void chan_calc_mat(bPoseChannel *chan); //------------------------ERROR CODES--------------------------------- //This is here just to make me happy and to have more consistant error strings :) static const char sPoseError[] = "Pose - Error: "; -static const char sPoseBadArgs[] = "Pose - Bad Arguments: "; +//static const char sPoseBadArgs[] = "Pose - Bad Arguments: "; static const char sPoseBoneError[] = "PoseBone - Error: "; -static const char sPoseBoneBadArgs[] = "PoseBone - Bad Arguments: "; +//static const char sPoseBoneBadArgs[] = "PoseBone - Bad Arguments: "; static const char sPoseBonesDictError[] = "PoseBone - Error: "; -static const char sPoseBonesDictBadArgs[] = "PoseBone - Bad Arguments: "; +//static const char sPoseBonesDictBadArgs[] = "PoseBone - Bad Arguments: "; //################## PoseBonesDict_Type (internal) ######################## /*This is an internal psuedo-dictionary type that allows for manipulation |