diff options
author | Campbell Barton <ideasman42@gmail.com> | 2018-06-11 10:03:39 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2018-06-11 10:03:39 +0300 |
commit | d7373f6c4952c112d20108c21712e0f69f8afbb3 (patch) | |
tree | a1234cedb73e4f14b69305b31516876258e2c8f3 /source/blender/editors/animation/drivers.c | |
parent | 1ff28c2650a9145f0e71b85012e500703669871f (diff) |
Cleanup: warnings
Diffstat (limited to 'source/blender/editors/animation/drivers.c')
-rw-r--r-- | source/blender/editors/animation/drivers.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source/blender/editors/animation/drivers.c b/source/blender/editors/animation/drivers.c index 4c0e4207987..6b5306dc0c7 100644 --- a/source/blender/editors/animation/drivers.c +++ b/source/blender/editors/animation/drivers.c @@ -427,7 +427,7 @@ int ANIM_add_driver(ReportList *reports, ID *id, const char rna_path[], int arra if (type == DRIVER_TYPE_PYTHON) { PropertyType proptype = RNA_property_type(prop); int array = RNA_property_array_length(&ptr, prop); - char *dvar_prefix = (flag & CREATEDRIVER_WITH_DEFAULT_DVAR) ? "var + " : ""; + const char *dvar_prefix = (flag & CREATEDRIVER_WITH_DEFAULT_DVAR) ? "var + " : ""; char *expression = driver->expression; int val, maxlen = sizeof(driver->expression); float fval; @@ -900,7 +900,7 @@ static int add_driver_button_menu_invoke(bContext *C, wmOperator *op, const wmEv } } -void ANIM_OT_driver_button_add_menu(wmOperatorType *ot) +static void UNUSED_FUNCTION(ANIM_OT_driver_button_add_menu)(wmOperatorType *ot) { /* identifiers */ ot->name = "Add Driver Menu"; |