[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [47583] trunk/blender/source/blender: Quite some warnings...

Bastien Montagne montagne29 at wanadoo.fr
Thu Jun 7 20:21:16 CEST 2012


Revision: 47583
          http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-blender&revision=47583
Author:   mont29
Date:     2012-06-07 18:21:07 +0000 (Thu, 07 Jun 2012)
Log Message:
-----------
Quite some warnings...

Modified Paths:
--------------
    trunk/blender/source/blender/blenkernel/BKE_mask.h
    trunk/blender/source/blender/blenkernel/intern/mask.c
    trunk/blender/source/blender/editors/mask/mask_add.c
    trunk/blender/source/blender/editors/mesh/editmesh_knife.c
    trunk/blender/source/blender/editors/sculpt_paint/paint_hide.c
    trunk/blender/source/blender/editors/sculpt_paint/sculpt.c

Modified: trunk/blender/source/blender/blenkernel/BKE_mask.h
===================================================================
--- trunk/blender/source/blender/blenkernel/BKE_mask.h	2012-06-07 18:10:25 UTC (rev 47582)
+++ trunk/blender/source/blender/blenkernel/BKE_mask.h	2012-06-07 18:21:07 UTC (rev 47583)
@@ -99,7 +99,7 @@
 void BKE_mask_point_normal(struct MaskSpline *spline, struct MaskSplinePoint *point,
                            float u, float n[2]);
 float BKE_mask_point_weight_scalar(struct MaskSpline *spline, struct MaskSplinePoint *point, const float u);
-float BKE_mask_point_weight(struct MaskSpline *spline, struct MaskSplinePoint *point, float u);
+float BKE_mask_point_weight(struct MaskSpline *spline, struct MaskSplinePoint *point, const float u);
 struct MaskSplinePointUW *BKE_mask_point_sort_uw(struct MaskSplinePoint *point, struct MaskSplinePointUW *uw);
 void BKE_mask_point_add_uw(struct MaskSplinePoint *point, float u, float w);
 

Modified: trunk/blender/source/blender/blenkernel/intern/mask.c
===================================================================
--- trunk/blender/source/blender/blenkernel/intern/mask.c	2012-06-07 18:10:25 UTC (rev 47582)
+++ trunk/blender/source/blender/blenkernel/intern/mask.c	2012-06-07 18:21:07 UTC (rev 47583)
@@ -816,7 +816,7 @@
 		return bezt_next->weight;
 	}
 	else {
-		float cur_u, cur_w, next_u, next_w, fac;
+		float cur_u = 0.0f, cur_w = 0.0f, next_u = 0.0f, next_w = 0.0f, fac; /* Quite warnings */
 		int i;
 
 		for (i = 0; i < point->tot_uw + 1; i++) {

Modified: trunk/blender/source/blender/editors/mask/mask_add.c
===================================================================
--- trunk/blender/source/blender/editors/mask/mask_add.c	2012-06-07 18:10:25 UTC (rev 47582)
+++ trunk/blender/source/blender/editors/mask/mask_add.c	2012-06-07 18:21:07 UTC (rev 47583)
@@ -411,7 +411,7 @@
 	float tangent_co[2];
 	int do_cyclic_correct = FALSE;
 	int do_recalc_src = FALSE;  /* when extruding from endpoints only */
-	int do_prev;                /* use prev point rather then next?? */
+	int do_prev = FALSE;        /* use prev point rather then next?? */
 
 	if (!masklay) {
 		return FALSE;

Modified: trunk/blender/source/blender/editors/mesh/editmesh_knife.c
===================================================================
--- trunk/blender/source/blender/editors/mesh/editmesh_knife.c	2012-06-07 18:10:25 UTC (rev 47582)
+++ trunk/blender/source/blender/editors/mesh/editmesh_knife.c	2012-06-07 18:21:07 UTC (rev 47583)
@@ -2247,7 +2247,7 @@
 	ListBase *chain;
 	BMVert *v;
 	BMIter iter;
-	int nh, nf, i, j, k, m, ax, ay, ok, sep, bestsep;
+	int nh, nf, i, j, k, m, ax, ay, ok, sep = 0 /* Quite warnings */, bestsep;
 	int besti[2], bestj[2];
 	float d, bestd;
 

Modified: trunk/blender/source/blender/editors/sculpt_paint/paint_hide.c
===================================================================
--- trunk/blender/source/blender/editors/sculpt_paint/paint_hide.c	2012-06-07 18:10:25 UTC (rev 47582)
+++ trunk/blender/source/blender/editors/sculpt_paint/paint_hide.c	2012-06-07 18:21:07 UTC (rev 47583)
@@ -265,7 +265,7 @@
                            float clip_planes[4][4],
                            PartialVisArea mode)
 {
-	BLI_pbvh_SearchCallback cb;
+	BLI_pbvh_SearchCallback cb = NULL;
 
 	/* select search callback */
 	switch (mode) {
@@ -277,7 +277,6 @@
 			break;
 		case PARTIALVIS_ALL:
 		case PARTIALVIS_MASKED:
-			cb = NULL;
 			break;
 	}
 	

Modified: trunk/blender/source/blender/editors/sculpt_paint/sculpt.c
===================================================================
--- trunk/blender/source/blender/editors/sculpt_paint/sculpt.c	2012-06-07 18:10:25 UTC (rev 47582)
+++ trunk/blender/source/blender/editors/sculpt_paint/sculpt.c	2012-06-07 18:21:07 UTC (rev 47583)
@@ -753,8 +753,8 @@
 	else if (ss->texcache) {
 		float rotation = -mtex->rot;
 		float symm_point[3], point_2d[2];
-		float x, y;
-		float radius;
+		float x = 0.0f, y = 0.0f; /* Quite warnings */
+		float radius = 1.0f; /* Quite warnings */
 
 		/* if the active area is being applied for symmetry, flip it
 		 * across the symmetry axis and rotate it back to the original




More information about the Bf-blender-cvs mailing list