Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2019-01-14 03:42:28 +0300
committerCampbell Barton <ideasman42@gmail.com>2019-01-14 03:42:28 +0300
commit9390b2e645a69ce0b4d50177d4fa8775b770afe4 (patch)
treec36132962942b16a17c074da6b283883a977dc93 /source/blender/editors/gpencil
parent2826c2be545ee0382ef37da0b0b919757b75f10a (diff)
Cleanup: compiler warnings
Diffstat (limited to 'source/blender/editors/gpencil')
-rw-r--r--source/blender/editors/gpencil/gpencil_edit.c2
-rw-r--r--source/blender/editors/gpencil/gpencil_utils.c5
2 files changed, 3 insertions, 4 deletions
diff --git a/source/blender/editors/gpencil/gpencil_edit.c b/source/blender/editors/gpencil/gpencil_edit.c
index 45653ac69df..72f65ce8a37 100644
--- a/source/blender/editors/gpencil/gpencil_edit.c
+++ b/source/blender/editors/gpencil/gpencil_edit.c
@@ -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);
diff --git a/source/blender/editors/gpencil/gpencil_utils.c b/source/blender/editors/gpencil/gpencil_utils.c
index 232f3b8f606..36ae1a211d3 100644
--- a/source/blender/editors/gpencil/gpencil_utils.c
+++ b/source/blender/editors/gpencil/gpencil_utils.c
@@ -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;
}