[Bf-blender-cvs] [a19da5c] master: Quiet gcc warning-as-error about non-const pointer passed to const parameter.

Bastien Montagne noreply at git.blender.org
Thu Jul 7 17:24:30 CEST 2016


Commit: a19da5c10d2edac01070760438ae9bb1d89f1439
Author: Bastien Montagne
Date:   Thu Jul 7 17:23:12 2016 +0200
Branches: master
https://developer.blender.org/rBa19da5c10d2edac01070760438ae9bb1d89f1439

Quiet gcc warning-as-error about non-const pointer passed to const parameter.

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

M	source/blender/windowmanager/intern/wm_keymap.c

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

diff --git a/source/blender/windowmanager/intern/wm_keymap.c b/source/blender/windowmanager/intern/wm_keymap.c
index 184ff09..a11733c 100644
--- a/source/blender/windowmanager/intern/wm_keymap.c
+++ b/source/blender/windowmanager/intern/wm_keymap.c
@@ -1791,7 +1791,7 @@ wmKeyMap *WM_keymap_guess_opname(const bContext *C, const char *opname)
 		 * Mesh keymap is probably not ideal, but best place I could find to put those. */
 		if (sl->spacetype == SPACE_VIEW3D) {
 			km = WM_keymap_find_all(C, "Mesh", 0, 0);
-			if (km && km->poll && !km->poll(C)) {
+			if (km && km->poll && !km->poll((bContext *)C)) {
 				km = NULL;
 			}
 		}




More information about the Bf-blender-cvs mailing list