Cleanup: Warning in release builds
authorSergey Sharybin <sergey.vfx@gmail.com>
Mon, 10 Sep 2018 07:50:50 +0000 (09:50 +0200)
committerSergey Sharybin <sergey.vfx@gmail.com>
Mon, 10 Sep 2018 07:50:50 +0000 (09:50 +0200)
source/blender/editors/mesh/editmesh_tools.c

index ae5c4389ee35e0378afd5e180649ff8e94770a87..6784d5f7c9a0396b4fa1d485c3dc2ab5969aaebe 100644 (file)
@@ -7654,6 +7654,7 @@ static void normals_split(BMesh *bm)
                                }
                                else {
                                        BMVert *v_pivot = l_curr->v;
+                                       UNUSED_VARS_NDEBUG(v_pivot);
                                        BMEdge *e_next;
                                        const BMEdge *e_org = l_curr->e;
                                        BMLoop *lfan_pivot, *lfan_pivot_next;
@@ -7838,6 +7839,7 @@ static int edbm_average_normals_exec(bContext *C, wmOperator *op)
                                }
                                else {
                                        BMVert *v_pivot = l_curr->v;
+                                       UNUSED_VARS_NDEBUG(v_pivot);
                                        BMEdge *e_next;
                                        const BMEdge *e_org = l_curr->e;
                                        BMLoop *lfan_pivot, *lfan_pivot_next;