[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [41075] branches/bmesh/blender/source/ blender: quiet some pedantic gcc warnigns

Campbell Barton ideasman42 at gmail.com
Mon Oct 17 05:06:24 CEST 2011


Revision: 41075
          http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-blender&revision=41075
Author:   campbellbarton
Date:     2011-10-17 03:06:20 +0000 (Mon, 17 Oct 2011)
Log Message:
-----------
quiet some pedantic gcc warnigns

Modified Paths:
--------------
    branches/bmesh/blender/source/blender/bmesh/intern/bmesh_newcore.c
    branches/bmesh/blender/source/blender/editors/mesh/editface.c

Modified: branches/bmesh/blender/source/blender/bmesh/intern/bmesh_newcore.c
===================================================================
--- branches/bmesh/blender/source/blender/bmesh/intern/bmesh_newcore.c	2011-10-17 02:20:53 UTC (rev 41074)
+++ branches/bmesh/blender/source/blender/bmesh/intern/bmesh_newcore.c	2011-10-17 03:06:20 UTC (rev 41075)
@@ -1560,7 +1560,7 @@
 		   1) have v as one of the vertices
 		   2) are connected to e through face loop cycles 
 		   assigning a unique index to that group of edges */
-		while (e = BLI_array_pop(stack)) {
+		while ((e = BLI_array_pop(stack))) {
 			BLI_ghash_insert(visithash, e, SET_INT_IN_POINTER(maxindex));
 			BM_SetIndex(e, maxindex);
 

Modified: branches/bmesh/blender/source/blender/editors/mesh/editface.c
===================================================================
--- branches/bmesh/blender/source/blender/editors/mesh/editface.c	2011-10-17 02:20:53 UTC (rev 41074)
+++ branches/bmesh/blender/source/blender/editors/mesh/editface.c	2011-10-17 03:06:20 UTC (rev 41075)
@@ -90,7 +90,7 @@
 	 *  - Mesh polys => Final derived mesh polys
 	 */
 
-	if (index_array = CustomData_get_layer(&me->fdata, CD_ORIGINDEX)) {
+	if ((index_array = CustomData_get_layer(&me->fdata, CD_ORIGINDEX))) {
 		faces = me->mface;
 		totface = me->totface;
 		
@@ -102,7 +102,7 @@
 		}
 	}
 
-	if (index_array = CustomData_get_layer(&dm->polyData, CD_ORIGINDEX)) {
+	if ((index_array = CustomData_get_layer(&dm->polyData, CD_ORIGINDEX))) {
 		polys = dm->getPolyArray(dm);
 		totpoly = dm->getNumFaces(dm);
 




More information about the Bf-blender-cvs mailing list