Cleanup: compiler warnings
authorCampbell Barton <ideasman42@gmail.com>
Mon, 14 Jan 2019 00:42:28 +0000 (11:42 +1100)
committerCampbell Barton <ideasman42@gmail.com>
Mon, 14 Jan 2019 00:42:28 +0000 (11:42 +1100)
source/blender/editors/gpencil/gpencil_edit.c
source/blender/editors/gpencil/gpencil_utils.c

index 45653ac..72f65ce 100644 (file)
@@ -3850,7 +3850,7 @@ static void gpencil_cutter_dissolve(bGPDlayer *hit_layer, bGPDstroke *hit_stroke
        }
 
        /* if all points selected delete or only 2 points and 1 selected */
-       if ((totselect == 1) && (hit_stroke->totpoints == 2) ||
+       if (((totselect == 1) && (hit_stroke->totpoints == 2)) ||
                (hit_stroke->totpoints == totselect))
        {
                BLI_remlink(&hit_layer->actframe->strokes, hit_stroke);
index 232f3b8..36ae1a2 100644 (file)
@@ -2052,7 +2052,7 @@ static bool gpencil_check_collision(
        return hit;
 }
 
-void static gp_copy_points(
+static void gp_copy_points(
        bGPDstroke *gps, bGPDspoint *pt, bGPDspoint *pt_final, int i, int i2)
 {
        copy_v3_v3(&pt_final->x, &pt->x);
@@ -2073,7 +2073,7 @@ void static gp_copy_points(
 
 }
 
-void static gp_insert_point(
+static void gp_insert_point(
        bGPDstroke *gps,
        bGPDspoint *a_pt, bGPDspoint *b_pt,
        float co_a[3], float co_b[3])
@@ -2182,7 +2182,6 @@ int ED_gpencil_select_stroke_segment(
        /* Save list of strokes to check */
        int totstrokes = 0;
        for (bGPDstroke *gps_iter = gpf->strokes.first; gps_iter; gps_iter = gps_iter->next) {
-               
                if (gps_iter->totpoints < 2) {
                        continue;
                }