From a19da5c10d2edac01070760438ae9bb1d89f1439 Mon Sep 17 00:00:00 2001 From: Bastien Montagne Date: Thu, 7 Jul 2016 17:23:12 +0200 Subject: Quiet gcc warning-as-error about non-const pointer passed to const parameter. --- source/blender/windowmanager/intern/wm_keymap.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'source') diff --git a/source/blender/windowmanager/intern/wm_keymap.c b/source/blender/windowmanager/intern/wm_keymap.c index 184ff09a76e..a11733c060b 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; } } -- cgit v1.2.3