diff options
author | Sergey Sharybin <sergey.vfx@gmail.com> | 2016-03-27 13:33:34 +0300 |
---|---|---|
committer | Sergey Sharybin <sergey.vfx@gmail.com> | 2016-03-27 13:36:49 +0300 |
commit | fb9315ce2ad762c1bd09f38d2f62db2341469aa9 (patch) | |
tree | 497239a9f9439099c987fdcede540ede9eb3ab5a /source/blender | |
parent | e12650bdd1f7d68f4325e879fe6551163f709f2f (diff) |
Cleanup: Silence some compiler warnings
Diffstat (limited to 'source/blender')
-rw-r--r-- | source/blender/editors/animation/drivers.c | 4 | ||||
-rw-r--r-- | source/blender/editors/interface/interface_eyedropper.c | 2 | ||||
-rw-r--r-- | source/blender/gpu/intern/gpu_extensions.c | 2 |
3 files changed, 3 insertions, 5 deletions
diff --git a/source/blender/editors/animation/drivers.c b/source/blender/editors/animation/drivers.c index 66e3cceba49..f94caa4fdd1 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 f924160bdc8..b17a6af7d35 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 fd660d2e97c..7d433a78411 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"); } |