diff options
author | Joshua Leung <aligorith@gmail.com> | 2007-10-23 10:24:29 +0400 |
---|---|---|
committer | Joshua Leung <aligorith@gmail.com> | 2007-10-23 10:24:29 +0400 |
commit | bf68055b93dea393cfd9a9db2f0ae945c574bbe0 (patch) | |
tree | 5f59e41293a1e31ba6ffbc7415acb114eec3af03 /source/blender/blenkernel/intern | |
parent | 00237a08e7c7356f0a8d8b740f27d4cca72f98bc (diff) |
Compiler warnings silencing - mostly uninitialised vars
Diffstat (limited to 'source/blender/blenkernel/intern')
-rw-r--r-- | source/blender/blenkernel/intern/armature.c | 2 | ||||
-rw-r--r-- | source/blender/blenkernel/intern/image.c | 5 |
2 files changed, 5 insertions, 2 deletions
diff --git a/source/blender/blenkernel/intern/armature.c b/source/blender/blenkernel/intern/armature.c index 2030859000f..09a7b2a8dcc 100644 --- a/source/blender/blenkernel/intern/armature.c +++ b/source/blender/blenkernel/intern/armature.c @@ -411,7 +411,7 @@ Mat4 *b_bone_spline_setup(bPoseChannel *pchan, int rest) Mat4 *result_array= (rest)? bbone_rest_array: bbone_array; bPoseChannel *next, *prev; Bone *bone= pchan->bone; - float h1[3], h2[3], length, hlength1, hlength2, roll1, roll2; + float h1[3], h2[3], length, hlength1, hlength2, roll1=0.0f, roll2; float mat3[3][3], imat[4][4]; float data[MAX_BBONE_SUBDIV+1][4], *fp; int a; diff --git a/source/blender/blenkernel/intern/image.c b/source/blender/blenkernel/intern/image.c index a40131b3d7b..278af464b82 100644 --- a/source/blender/blenkernel/intern/image.c +++ b/source/blender/blenkernel/intern/image.c @@ -780,7 +780,7 @@ void BKE_add_image_extension(char *string, int imtype) void BKE_stamp(struct ImBuf *ibuf) { char text[256], infotext[256]; - int x, y, h, m, s, f; + int x=0, y=0, h, m, s, f; int font_height; int text_width; int text_pad; @@ -813,6 +813,9 @@ void BKE_stamp(struct ImBuf *ibuf) case 4: /* huge */ font = BMF_GetFont(BMF_kHelveticaBold14); break; + default: + font = NULL; + break; } font_height = BMF_GetFontHeight(font); |