Cleanup: warning, style
authorCampbell Barton <ideasman42@gmail.com>
Mon, 3 Dec 2018 05:50:50 +0000 (16:50 +1100)
committerCampbell Barton <ideasman42@gmail.com>
Mon, 3 Dec 2018 05:50:50 +0000 (16:50 +1100)
source/blender/draw/intern/draw_manager.c
source/blender/editors/gpencil/gpencil_primitive.c
source/blender/editors/render/render_shading.c

index 5faf7cf8f596ed4747a2370588c4754a865fd53e..41acc9fe03c2761342ba39844d0b06d8b3916394 100644 (file)
@@ -192,7 +192,7 @@ bool DRW_object_is_flat_normal(const Object *ob)
 bool DRW_object_use_hide_faces(const struct Object *ob)
 {
        if (ob->type == OB_MESH) {
-               const Mesh *me = DEG_get_original_object((Object*)ob)->data;
+               const Mesh *me = DEG_get_original_object((Object *)ob)->data;
 
                switch (ob->mode) {
                        case OB_MODE_TEXTURE_PAINT:
index ebd1f36b511f39e9f2e5bf1db807a4b2cc10b3cc..336ed305a93398168a8942642fa95ec97387c1cd 100644 (file)
@@ -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)) {
index 8ef324d1526a1d3631d4c291d08718fe40ace20a..3cbbcdbf740f73e4aabd5afaa8e5e8bc4e07832f 100644 (file)
  * 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;