Commit: 727d6644da08a66673dd4fb7665a1796d2fd1866
Author: Brecht Van Lommel
Date:   Tue Oct 23 12:50:31 2018 +0200
Branches: blender2.8
https://developer.blender.org/rB727d6644da08a66673dd4fb7665a1796d2fd1866

Cleanup: fix compiler warnings.

===================================================================

M       source/blender/blenkernel/intern/font.c
M       source/blender/editors/armature/pose_select.c

===================================================================

diff --git a/source/blender/blenkernel/intern/font.c 
b/source/blender/blenkernel/intern/font.c
index 51ab82fd593..053a9b964a1 100644
--- a/source/blender/blenkernel/intern/font.c
+++ b/source/blender/blenkernel/intern/font.c
@@ -1053,7 +1053,7 @@ makebreak:
                                textbox_scale(&tb_scale, &cu->tb[tb_index], 
1.0f / cu->fsize);
                                /* The initial Y origin of the textbox is 
hardcoded to 1.0f * text scale. */
                                const float textbox_y_origin = 1.0f;
-                               float yoff;
+                               float yoff = 0.0f;
 
                                switch (cu->align_y) {
                                        case CU_ALIGN_Y_TOP_BASELINE:
@@ -1084,7 +1084,7 @@ makebreak:
                }
                else {
                        /* Non text-box case handled separately. */
-                       float yoff;
+                       float yoff = 0.0f;
 
                        switch (cu->align_y) {
                                case CU_ALIGN_Y_TOP_BASELINE:
diff --git a/source/blender/editors/armature/pose_select.c 
b/source/blender/editors/armature/pose_select.c
index 08ac5d1ec51..0c7de754482 100644
--- a/source/blender/editors/armature/pose_select.c
+++ b/source/blender/editors/armature/pose_select.c
@@ -711,6 +711,7 @@ static bool pose_select_same_group(bContext *C, bool extend)
        groups_len++;
        group_flags_array = MEM_callocN(objects_len * groups_len * 
sizeof(bool), "pose_select_same_group");
 
+       group_flags = NULL;
        ob_index = -1;
        ob_prev = NULL;
        CTX_DATA_BEGIN_WITH_ID (C, bPoseChannel *, pchan, visible_pose_bones, 
Object, *ob)
@@ -736,6 +737,7 @@ static bool pose_select_same_group(bContext *C, bool extend)
 
        /* small optimization: only loop through bones a second time if there 
are any groups tagged */
        if (tagged) {
+               group_flags = NULL;
                ob_index = -1;
                ob_prev = NULL;
                /* only if group matches (and is not selected or current bone) 
*/
@@ -791,6 +793,7 @@ static bool pose_select_same_layer(bContext *C, bool extend)
        layers_array = MEM_callocN(objects_len * sizeof(*layers_array), 
"pose_select_same_layer");
 
        /* Figure out what bones are selected. */
+       layers = NULL;
        ob_prev = NULL;
        ob_index = -1;
        CTX_DATA_BEGIN_WITH_ID (C, bPoseChannel *, pchan, visible_pose_bones, 
Object *, ob)

_______________________________________________
Bf-blender-cvs mailing list
[email protected]
https://lists.blender.org/mailman/listinfo/bf-blender-cvs

Reply via email to