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 | |
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')
-rw-r--r-- | source/blender/blenkernel/intern/CCGSubSurf.c | 3 | ||||
-rw-r--r-- | source/blender/blenkernel/intern/object.c | 2 | ||||
-rw-r--r-- | source/blender/include/BIF_editaction.h | 2 | ||||
-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 | ||||
-rw-r--r-- | source/blender/src/booleanops.c | 2 | ||||
-rw-r--r-- | source/blender/src/drawobject.c | 2 | ||||
-rw-r--r-- | source/blender/src/header_info.c | 4 | ||||
-rw-r--r-- | source/blender/src/interface_icons.c | 4 | ||||
-rw-r--r-- | source/blender/src/parametrizer.c | 4 | ||||
-rw-r--r-- | source/blender/src/renderwin.c | 4 |
14 files changed, 26 insertions, 19 deletions
diff --git a/source/blender/blenkernel/intern/CCGSubSurf.c b/source/blender/blenkernel/intern/CCGSubSurf.c index 5bbd397e9c4..bd585d36a68 100644 --- a/source/blender/blenkernel/intern/CCGSubSurf.c +++ b/source/blender/blenkernel/intern/CCGSubSurf.c @@ -456,11 +456,12 @@ static void *_edge_getCo(CCGEdge *e, int lvl, int x, int dataSize) { int levelBase = lvl + (1<<lvl) - 1; return &EDGE_getLevelData(e)[dataSize*(levelBase + x)]; } +#if 0 static float *_edge_getNo(CCGEdge *e, int lvl, int x, int dataSize, int normalDataOffset) { int levelBase = lvl + (1<<lvl) - 1; return (float*) &EDGE_getLevelData(e)[dataSize*(levelBase + x) + normalDataOffset]; } - +#endif static void *_edge_getCoVert(CCGEdge *e, CCGVert *v, int lvl, int x, int dataSize) { int levelBase = lvl + (1<<lvl) - 1; if (v==e->v0) { diff --git a/source/blender/blenkernel/intern/object.c b/source/blender/blenkernel/intern/object.c index 0b52c92f50e..073cea53d32 100644 --- a/source/blender/blenkernel/intern/object.c +++ b/source/blender/blenkernel/intern/object.c @@ -106,6 +106,8 @@ #include "BKE_screen.h" #include "BKE_softbody.h" +#include "LBM_fluidsim.h" + #include "BPY_extern.h" /* Local function protos */ diff --git a/source/blender/include/BIF_editaction.h b/source/blender/include/BIF_editaction.h index 7471e80baa9..2644ad01092 100644 --- a/source/blender/include/BIF_editaction.h +++ b/source/blender/include/BIF_editaction.h @@ -113,6 +113,8 @@ struct bAction *ob_get_action(struct Object *ob); void remake_action_ipos(struct bAction *act); +/* this needs review badly! (ton) */ +void world2bonespace(float boneSpaceMat[][4], float worldSpace[][4], float restPos[][4], float armPos[][4]); #endif 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 diff --git a/source/blender/src/booleanops.c b/source/blender/src/booleanops.c index 17850d08aaa..b38600d182b 100644 --- a/source/blender/src/booleanops.c +++ b/source/blender/src/booleanops.c @@ -55,6 +55,8 @@ #include "BKE_object.h" #include "BKE_utildefines.h" +#include "BIF_toolbox.h" + #include <math.h> // TODO check to see how many of these includes are necessary diff --git a/source/blender/src/drawobject.c b/source/blender/src/drawobject.c index 8c150afac1e..6b471693eed 100644 --- a/source/blender/src/drawobject.c +++ b/source/blender/src/drawobject.c @@ -241,9 +241,7 @@ static float cube[8][3] = { /* flag is same as for draw_object */ void drawaxes(float size, int flag, char drawtype) { - View3D *v3d= G.vd; int axis; - float vec[3]= {0.0, 0.0, 0.0}; switch(drawtype) { diff --git a/source/blender/src/header_info.c b/source/blender/src/header_info.c index ce8d21612bd..dfc04c6fe14 100644 --- a/source/blender/src/header_info.c +++ b/source/blender/src/header_info.c @@ -1202,12 +1202,10 @@ static void do_info_add_groupmenu(void *arg, int event) static uiBlock *info_add_groupmenu(void *arg_unused) { + Group *group; uiBlock *block; short yco= 0; - - Group *group; int a; - int tot= BLI_countlist(&G.main->group); block= uiNewBlock(&curarea->uiblocks, "add_groupmenu", UI_EMBOSSP, UI_HELV, G.curscreen->mainwin); uiBlockSetButmFunc(block, do_info_add_groupmenu, NULL); diff --git a/source/blender/src/interface_icons.c b/source/blender/src/interface_icons.c index 35889e3c220..614ebcefbb8 100644 --- a/source/blender/src/interface_icons.c +++ b/source/blender/src/interface_icons.c @@ -419,7 +419,7 @@ static void vicon_move_down_draw(int x, int y, int w, int h, float alpha) /* this only works for the hardcoded buttons image, turning the grey AA pixels to alpha, and slight off-grey to half alpha */ - +#if 0 static void clear_transp_rect_soft(unsigned char *transp, unsigned char *rect, int w, int h, int rowstride) { int x, y, val; @@ -453,6 +453,7 @@ static void clear_transp_rect_soft(unsigned char *transp, unsigned char *rect, i } } } +#endif static void clear_transp_rect(unsigned char *transp, unsigned char *rect, int w, int h, int rowstride) { @@ -470,7 +471,6 @@ static void clear_transp_rect(unsigned char *transp, unsigned char *rect, int w, static void prepare_internal_icons(ImBuf* bbuf) { - int x, y; int rowstride= bbuf->x*4; char *back= (char *)bbuf->rect; unsigned char transp[4]; diff --git a/source/blender/src/parametrizer.c b/source/blender/src/parametrizer.c index 6d8ede47a0f..e007e0b4639 100644 --- a/source/blender/src/parametrizer.c +++ b/source/blender/src/parametrizer.c @@ -1127,7 +1127,7 @@ static void p_chart_fill_boundary(PChart *chart, PEdge *be, int nedges) pheap_delete(heap); } - +#if 0 static void p_chart_fill_boundaries(PChart *chart, PEdge *outer) { PEdge *e, *enext, *be; @@ -1151,7 +1151,7 @@ static void p_chart_fill_boundaries(PChart *chart, PEdge *outer) p_chart_fill_boundary(chart, e, nedges); } } - +#endif static void p_flush_uvs(PChart *chart) { PEdge *e; diff --git a/source/blender/src/renderwin.c b/source/blender/src/renderwin.c index 921048ff3b0..579dc8b892a 100644 --- a/source/blender/src/renderwin.c +++ b/source/blender/src/renderwin.c @@ -958,7 +958,7 @@ static void do_render(int anim) waitcursor(0); // waitcursor checks rendering R.flag... } - +#if 0 /* used for swapping with spare buffer, when images are different size */ static void scalefastrect(unsigned int *recto, unsigned int *rectn, int oldx, int oldy, int newx, int newy) { @@ -982,7 +982,7 @@ static void scalefastrect(unsigned int *recto, unsigned int *rectn, int oldx, in } } } - +#endif /* -------------- API: externally called --------------- */ /* not used anywhere ??? */ |