[Bf-blender-cvs] [6f9b84c5ce3] master: Cleanup: compiler warnings

Campbell Barton noreply at git.blender.org
Wed Sep 28 01:42:45 CEST 2022


Commit: 6f9b84c5ce34b7e0e40f8da1f35ef3dd2397e218
Author: Campbell Barton
Date:   Wed Sep 28 09:40:52 2022 +1000
Branches: master
https://developer.blender.org/rB6f9b84c5ce34b7e0e40f8da1f35ef3dd2397e218

Cleanup: compiler warnings

===================================================================

M	source/blender/gpencil_modifiers/intern/MOD_gpenciltime.c

===================================================================

diff --git a/source/blender/gpencil_modifiers/intern/MOD_gpenciltime.c b/source/blender/gpencil_modifiers/intern/MOD_gpenciltime.c
index e3d49ba37d5..5af8c0807b8 100644
--- a/source/blender/gpencil_modifiers/intern/MOD_gpenciltime.c
+++ b/source/blender/gpencil_modifiers/intern/MOD_gpenciltime.c
@@ -266,7 +266,7 @@ static int remapTime(struct GpencilModifierData *md,
 }
 
 static void segment_list_item(struct uiList *UNUSED(ui_list),
-                              struct bContext *UNUSED(C),
+                              const struct bContext *UNUSED(C),
                               struct uiLayout *layout,
                               struct PointerRNA *UNUSED(idataptr),
                               struct PointerRNA *itemptr,
@@ -313,7 +313,7 @@ static void panel_draw(const bContext *C, Panel *panel)
 
   if (mode == GP_TIME_MODE_CHAIN) {
 
-    uiLayout *row = uiLayoutRow(layout, false);
+    row = uiLayoutRow(layout, false);
     uiLayoutSetPropSep(row, false);
 
     uiTemplateList(row,
@@ -331,7 +331,7 @@ static void panel_draw(const bContext *C, Panel *panel)
                    1,
                    UI_TEMPLATE_LIST_FLAG_NONE);
 
-    uiLayout *col = uiLayoutColumn(row, false);
+    col = uiLayoutColumn(row, false);
     uiLayoutSetContextPointer(col, "modifier", ptr);
 
     uiLayout *sub = uiLayoutColumn(col, true);



More information about the Bf-blender-cvs mailing list