diff options
author | Campbell Barton <ideasman42@gmail.com> | 2018-12-03 08:50:50 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2018-12-03 08:50:50 +0300 |
commit | ffdc1f892445aa7949917523d0f0f30fa73815fe (patch) | |
tree | a2408ce46b574e2e219a57a4de2327a9d1ab047a /source/blender/editors | |
parent | 81c2fd25e5be3781285298e1ded16fb591da24e0 (diff) |
Cleanup: warning, style
Diffstat (limited to 'source/blender/editors')
-rw-r--r-- | source/blender/editors/gpencil/gpencil_primitive.c | 3 | ||||
-rw-r--r-- | source/blender/editors/render/render_shading.c | 2 |
2 files changed, 3 insertions, 2 deletions
diff --git a/source/blender/editors/gpencil/gpencil_primitive.c b/source/blender/editors/gpencil/gpencil_primitive.c index ebd1f36b511..336ed305a93 100644 --- a/source/blender/editors/gpencil/gpencil_primitive.c +++ b/source/blender/editors/gpencil/gpencil_primitive.c @@ -594,7 +594,8 @@ static void gpencil_primitive_interaction_end(bContext *C, wmOperator *op, wmWin } /* Helper to square a primitive */ -static void gpencil_primitive_to_square(tGPDprimitive *tgpi, const int x, const int y) { +static void gpencil_primitive_to_square(tGPDprimitive *tgpi, const int x, const int y) +{ int w = abs(x); int h = abs(y); if ((x > 0 && y > 0) || (x < 0 && y < 0)) { diff --git a/source/blender/editors/render/render_shading.c b/source/blender/editors/render/render_shading.c index 8ef324d1526..3cbbcdbf740 100644 --- a/source/blender/editors/render/render_shading.c +++ b/source/blender/editors/render/render_shading.c @@ -103,7 +103,7 @@ * Object list for material operations. * has exception for pinned object. */ -Object **object_array_for_shading(bContext *C, uint *r_objects_len) +static Object **object_array_for_shading(bContext *C, uint *r_objects_len) { ScrArea *sa = CTX_wm_area(C); SpaceButs *sbuts = NULL; |