[Bf-blender-cvs] [d7373f6c495] blender2.8: Cleanup: warnings

Campbell Barton noreply at git.blender.org
Mon Jun 11 09:03:50 CEST 2018


Commit: d7373f6c4952c112d20108c21712e0f69f8afbb3
Author: Campbell Barton
Date:   Mon Jun 11 09:03:39 2018 +0200
Branches: blender2.8
https://developer.blender.org/rBd7373f6c4952c112d20108c21712e0f69f8afbb3

Cleanup: warnings

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

M	source/blender/editors/animation/drivers.c

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

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";



More information about the Bf-blender-cvs mailing list