[Bf-blender-cvs] [fb9315c] master: Cleanup: Silence some compiler warnings

Sergey Sharybin noreply at git.blender.org
Sun Mar 27 12:39:43 CEST 2016


Commit: fb9315ce2ad762c1bd09f38d2f62db2341469aa9
Author: Sergey Sharybin
Date:   Sun Mar 27 12:33:34 2016 +0200
Branches: master
https://developer.blender.org/rBfb9315ce2ad762c1bd09f38d2f62db2341469aa9

Cleanup: Silence some compiler warnings

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

M	source/blender/editors/animation/drivers.c
M	source/blender/editors/interface/interface_eyedropper.c
M	source/blender/gpu/intern/gpu_extensions.c

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

diff --git a/source/blender/editors/animation/drivers.c b/source/blender/editors/animation/drivers.c
index 66e3cce..f94caa4 100644
--- a/source/blender/editors/animation/drivers.c
+++ b/source/blender/editors/animation/drivers.c
@@ -175,10 +175,10 @@ EnumPropertyItem prop_driver_create_mapping_types[] = {
 
 /* Helper for ANIM_add_driver_with_target - Adds the actual driver */
 static int add_driver_with_target(
-        ReportList *reports,
+        ReportList *UNUSED(reports),
         ID *dst_id, const char dst_path[], int dst_index,
         ID *src_id, const char src_path[], int src_index,
-        PointerRNA *dst_ptr, PropertyRNA *dst_prop,
+        PointerRNA *UNUSED(dst_ptr), PropertyRNA *dst_prop,
         PointerRNA *src_ptr, PropertyRNA *src_prop,
         short flag, int driver_type)
 {
diff --git a/source/blender/editors/interface/interface_eyedropper.c b/source/blender/editors/interface/interface_eyedropper.c
index f924160..b17a6af 100644
--- a/source/blender/editors/interface/interface_eyedropper.c
+++ b/source/blender/editors/interface/interface_eyedropper.c
@@ -1160,8 +1160,6 @@ static void driverdropper_cancel(bContext *C, wmOperator *op)
 /* main modal status check */
 static int driverdropper_modal(bContext *C, wmOperator *op, const wmEvent *event)
 {
-	DriverDropper *ddr = (DriverDropper *)op->customdata;
-	
 	/* handle modal keymap */
 	if (event->type == EVT_MODAL_MAP) {
 		switch (event->val) {
diff --git a/source/blender/gpu/intern/gpu_extensions.c b/source/blender/gpu/intern/gpu_extensions.c
index fd660d2..7d433a7 100644
--- a/source/blender/gpu/intern/gpu_extensions.c
+++ b/source/blender/gpu/intern/gpu_extensions.c
@@ -258,7 +258,7 @@ bool GPU_legacy_support(void)
 			glGetIntegerv(GL_CONTEXT_PROFILE_MASK, &profile);
 
 			if (G.debug & G_DEBUG_GPU) {
-				printf("GL_CONTEXT_PROFILE_MASK = %#x (%s profile)\n", profile,
+				printf("GL_CONTEXT_PROFILE_MASK = %#x (%s profile)\n", (unsigned int)profile,
 				       profile & GL_CONTEXT_COMPATIBILITY_PROFILE_BIT ? "compatibility" :
 				       profile & GL_CONTEXT_CORE_PROFILE_BIT ? "core" : "unknown");
 			}




More information about the Bf-blender-cvs mailing list