diff options
author | Ton Roosendaal <ton@blender.org> | 2005-11-19 14:06:29 +0300 |
---|---|---|
committer | Ton Roosendaal <ton@blender.org> | 2005-11-19 14:06:29 +0300 |
commit | e9787819a69a18edd2de6b33423aa4f794d4657e (patch) | |
tree | d93e8ac016ef897a530c8c9d085024813ff3b2c9 /source | |
parent | ec2e8d53801fad23e30294e28f1b83681d4d0f1f (diff) |
Removal of warning messages, unused variables, and casting errors.
Diffstat (limited to 'source')
-rw-r--r-- | source/blender/include/BIF_editaction.h | 1 | ||||
-rw-r--r-- | source/blender/src/editfont.c | 1 | ||||
-rw-r--r-- | source/blender/src/editmesh_add.c | 3 | ||||
-rw-r--r-- | source/blender/src/resources.c | 28 |
4 files changed, 18 insertions, 15 deletions
diff --git a/source/blender/include/BIF_editaction.h b/source/blender/include/BIF_editaction.h index 9e2f9e63b73..74ffbca1b9b 100644 --- a/source/blender/include/BIF_editaction.h +++ b/source/blender/include/BIF_editaction.h @@ -86,6 +86,7 @@ void sethandles_actionchannel_keys(int code); /* Ipo type */ void set_ipotype_actionchannels(int ipotype); void set_exprap_action(int mode); +void set_extendtype_actionchannels(int extendtype); /* Select */ void borderselect_mesh(struct Key *key); diff --git a/source/blender/src/editfont.c b/source/blender/src/editfont.c index 3f034a33d6c..b161538423c 100644 --- a/source/blender/src/editfont.c +++ b/source/blender/src/editfont.c @@ -1260,7 +1260,6 @@ static void *editFont_to_undoFont(void) { Curve *cu= G.obedit->data; char *str; - short oldlen = 0; // The undo buffer includes [MAXTEXT+6]=actual string and [MAXTEXT+4]*sizeof(CharInfo)=charinfo str= MEM_callocN((MAXTEXT+6)*sizeof(wchar_t) + (MAXTEXT+4)*sizeof(CharInfo), "string undo"); diff --git a/source/blender/src/editmesh_add.c b/source/blender/src/editmesh_add.c index b2f2e154aaf..13860329cf7 100644 --- a/source/blender/src/editmesh_add.c +++ b/source/blender/src/editmesh_add.c @@ -471,7 +471,8 @@ static void fix_new_face(EditFace *eface) } coef = 0; - ev1 = ev2 = eed = NULL; + ev1 = ev2 = NULL; + eed = NULL; if(efa->v1==v1 || efa->v2==v1 || efa->v3==v1 || efa->v4==v1) { ev1 = v1; diff --git a/source/blender/src/resources.c b/source/blender/src/resources.c index 2fc269f3c99..6075b5e1d59 100644 --- a/source/blender/src/resources.c +++ b/source/blender/src/resources.c @@ -317,13 +317,13 @@ static void clear_transp_rect(unsigned char *transp, unsigned char *rect, int w, /* Utilities */ -static void viconutil_set_point(int pt[2], int x, int y) +static void viconutil_set_point(GLint pt[2], int x, int y) { pt[0] = x; pt[1] = y; } -static void viconutil_draw_tri(int (*pts)[2]) +static void viconutil_draw_tri(GLint (*pts)[2]) { glBegin(GL_TRIANGLES); glVertex2iv(pts[0]); @@ -332,7 +332,8 @@ static void viconutil_draw_tri(int (*pts)[2]) glEnd(); } -static void viconutil_draw_quad(int (*pts)[2]) +#if 0 +static void viconutil_draw_quad(GLint (*pts)[2]) { glBegin(GL_QUADS); glVertex2iv(pts[0]); @@ -341,8 +342,9 @@ static void viconutil_draw_quad(int (*pts)[2]) glVertex2iv(pts[3]); glEnd(); } +#endif -static void viconutil_draw_lineloop(int (*pts)[2], int numPoints) +static void viconutil_draw_lineloop(GLint (*pts)[2], int numPoints) { int i; @@ -353,14 +355,14 @@ static void viconutil_draw_lineloop(int (*pts)[2], int numPoints) glEnd(); } -static void viconutil_draw_lineloop_smooth(int (*pts)[2], int numPoints) +static void viconutil_draw_lineloop_smooth(GLint (*pts)[2], int numPoints) { glEnable(GL_LINE_SMOOTH); viconutil_draw_lineloop(pts, numPoints); glDisable(GL_LINE_SMOOTH); } -static void viconutil_draw_points(int (*pts)[2], int numPoints, int pointSize) +static void viconutil_draw_points(GLint (*pts)[2], int numPoints, int pointSize) { int i; @@ -432,7 +434,7 @@ static void vicon_view3d_draw(int x, int y, int w, int h, float alpha) static void vicon_edit_draw(int x, int y, int w, int h, float alpha) { - int pts[4][2]; + GLint pts[4][2]; viconutil_set_point(pts[0], x+3 , y+3 ); viconutil_set_point(pts[1], x+w-3, y+3 ); @@ -448,7 +450,7 @@ static void vicon_edit_draw(int x, int y, int w, int h, float alpha) static void vicon_editmode_hlt_draw(int x, int y, int w, int h, float alpha) { - int pts[3][2]; + GLint pts[3][2]; viconutil_set_point(pts[0], x+w/2, y+h-2); viconutil_set_point(pts[1], x+3, y+4); @@ -466,7 +468,7 @@ static void vicon_editmode_hlt_draw(int x, int y, int w, int h, float alpha) static void vicon_editmode_dehlt_draw(int x, int y, int w, int h, float alpha) { - int pts[3][2]; + GLint pts[3][2]; viconutil_set_point(pts[0], x+w/2, y+h-2); viconutil_set_point(pts[1], x+3, y+4); @@ -481,7 +483,7 @@ static void vicon_editmode_dehlt_draw(int x, int y, int w, int h, float alpha) static void vicon_disclosure_tri_right_draw(int x, int y, int w, int h, float alpha) { - int pts[3][2]; + GLint pts[3][2]; int cx = x+w/2; int cy = y+w/2; int d = w/3, d2 = w/5; @@ -506,7 +508,7 @@ static void vicon_disclosure_tri_right_draw(int x, int y, int w, int h, float al static void vicon_disclosure_tri_down_draw(int x, int y, int w, int h, float alpha) { - int pts[3][2]; + GLint pts[3][2]; int cx = x+w/2; int cy = y+w/2; int d = w/3, d2 = w/5; @@ -531,7 +533,7 @@ static void vicon_disclosure_tri_down_draw(int x, int y, int w, int h, float alp static void vicon_move_up_draw(int x, int y, int w, int h, float alpha) { - int d=-2, pad=3; + int d=-2; glEnable(GL_LINE_SMOOTH); glLineWidth(1); @@ -549,7 +551,7 @@ static void vicon_move_up_draw(int x, int y, int w, int h, float alpha) static void vicon_move_down_draw(int x, int y, int w, int h, float alpha) { - int d=2, pad=3; + int d=2; glEnable(GL_LINE_SMOOTH); glLineWidth(1); |