[Bf-blender-cvs] [99ac2dea35c] master: Cleanup: fix compiler warnings.

Brecht Van Lommel noreply at git.blender.org
Thu Mar 7 19:43:01 CET 2019


Commit: 99ac2dea35c5895fb65fc121e3f71799b238cb57
Author: Brecht Van Lommel
Date:   Thu Mar 7 12:47:42 2019 +0100
Branches: master
https://developer.blender.org/rB99ac2dea35c5895fb65fc121e3f71799b238cb57

Cleanup: fix compiler warnings.

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

M	source/blender/editors/sculpt_paint/paint_image_proj.c
M	source/blender/editors/space_image/image_ops.c

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

diff --git a/source/blender/editors/sculpt_paint/paint_image_proj.c b/source/blender/editors/sculpt_paint/paint_image_proj.c
index e39abd591cf..7e767a6161f 100644
--- a/source/blender/editors/sculpt_paint/paint_image_proj.c
+++ b/source/blender/editors/sculpt_paint/paint_image_proj.c
@@ -1185,7 +1185,7 @@ static VertSeam *find_adjacent_seam(const ProjPaintState *ps, uint loop_index, u
 {
 	ListBase *vert_seams = &ps->vertSeams[vert_index];
 	VertSeam *seam = vert_seams->first;
-	VertSeam *adjacent;
+	VertSeam *adjacent = NULL;
 
 	while (seam->loop != loop_index) {
 		seam = seam->next;
diff --git a/source/blender/editors/space_image/image_ops.c b/source/blender/editors/space_image/image_ops.c
index 865f4be5d5b..93f3acdfa87 100644
--- a/source/blender/editors/space_image/image_ops.c
+++ b/source/blender/editors/space_image/image_ops.c
@@ -3011,7 +3011,7 @@ static void image_sample_rect_color_ubyte(
         const ImBuf *ibuf, const rcti *rect,
         uchar r_col[4], float r_col_linear[4])
 {
-	uint col_accum_ub[4];
+	uint col_accum_ub[4] = {0, 0, 0, 0};
 	zero_v4(r_col_linear);
 	int col_tot = 0;
 	int coord[2];



More information about the Bf-blender-cvs mailing list