quiet some pedantic gcc warnigns

This commit is contained in:
Campbell Barton
2011-10-17 03:06:20 +00:00
parent 2cecc590d7
commit 19b3f13a84
2 changed files with 3 additions and 3 deletions

View File

@@ -1560,7 +1560,7 @@ static int bmesh_cutvert(BMesh *bm, BMVert *v, BMVert ***vout, int *len)
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);

View File

@@ -90,7 +90,7 @@ void paintface_flush_flags(Object *ob)
* - 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 @@ void paintface_flush_flags(Object *ob)
}
}
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);