diff options
author | Campbell Barton <ideasman42@gmail.com> | 2016-03-05 01:16:12 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2016-03-05 01:16:12 +0300 |
commit | 4e500101a7dd3ea578ca6d6f101c0d9ece7f5abc (patch) | |
tree | b84e5af642e8f702c2bc34a26155a49284fbda9b /source/blender/editors/mesh | |
parent | fea07c1a63fdfe3bf25d77d862e83bdf024347b8 (diff) |
Cleanup: quiet -Wcomma, cast to void where needed
Diffstat (limited to 'source/blender/editors/mesh')
-rw-r--r-- | source/blender/editors/mesh/editmesh_path.c | 6 | ||||
-rw-r--r-- | source/blender/editors/mesh/editmesh_tools.c | 6 |
2 files changed, 7 insertions, 5 deletions
diff --git a/source/blender/editors/mesh/editmesh_path.c b/source/blender/editors/mesh/editmesh_path.c index 53b7e9fb740..587636b5a97 100644 --- a/source/blender/editors/mesh/editmesh_path.c +++ b/source/blender/editors/mesh/editmesh_path.c @@ -161,7 +161,7 @@ static void mouse_mesh_shortest_path_vert( verttag_set_cb((BMVert *)node->link, !all_set, &user_data); v_dst_last = node->link; } - } while (depth++, (node = node->next)); + } while ((void)depth++, (node = node->next)); BLI_linklist_free(path, NULL); } @@ -336,7 +336,7 @@ static void mouse_mesh_shortest_path_edge( edgetag_set_cb((BMEdge *)node->link, !all_set, &user_data); e_dst_last = node->link; } - } while (depth++, (node = node->next)); + } while ((void)depth++, (node = node->next)); BLI_linklist_free(path, NULL); } @@ -466,7 +466,7 @@ static void mouse_mesh_shortest_path_face( facetag_set_cb((BMFace *)node->link, !all_set, &user_data); f_dst_last = node->link; } - } while (depth++, (node = node->next)); + } while ((void)depth++, (node = node->next)); BLI_linklist_free(path, NULL); } diff --git a/source/blender/editors/mesh/editmesh_tools.c b/source/blender/editors/mesh/editmesh_tools.c index 33dd3cd960a..28b187dc870 100644 --- a/source/blender/editors/mesh/editmesh_tools.c +++ b/source/blender/editors/mesh/editmesh_tools.c @@ -1065,7 +1065,8 @@ static bool bm_vert_connect_select_history(BMesh *bm) else { changed |= bm_vert_connect_pair(bm, (BMVert *)ese_last->ele, (BMVert *)ese->ele); } - } while ((ese_last = ese), + } while ((void) + (ese_last = ese), (ese = ese->next)); if (changed) { @@ -1105,7 +1106,8 @@ static bool bm_vert_connect_select_history(BMesh *bm) BM_edge_select_set(bm, e, true); changed = true; } - } while ((ese_prev = ese), + } while ((void) + (ese_prev = ese), (ese = ese->next)); if (changed == false) { |