[Bf-blender-cvs] [aaa35d10924] master: Silence warning from recent GPU simplify commit

Dalai Felinto noreply at git.blender.org
Fri Mar 15 22:16:12 CET 2019


Commit: aaa35d10924c9a6258ecb916f8b7c819041a8085
Author: Dalai Felinto
Date:   Fri Mar 15 18:14:24 2019 -0300
Branches: master
https://developer.blender.org/rBaaa35d10924c9a6258ecb916f8b7c819041a8085

Silence warning from recent GPU simplify commit

Said commit introduced warnings and build problens. Let's be more
careful in the future. Warnings are not to be treated lightly either.

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

M	source/blender/editors/space_view3d/view3d_draw_legacy.c

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

diff --git a/source/blender/editors/space_view3d/view3d_draw_legacy.c b/source/blender/editors/space_view3d/view3d_draw_legacy.c
index 1f13f308005..4660220fe27 100644
--- a/source/blender/editors/space_view3d/view3d_draw_legacy.c
+++ b/source/blender/editors/space_view3d/view3d_draw_legacy.c
@@ -346,7 +346,7 @@ uint *ED_view3d_select_id_read(
 
 /* smart function to sample a rect spiralling outside, nice for backbuf selection */
 uint ED_view3d_select_id_read_nearest(
-        struct ViewContext *vc, const int mval[2],
+        struct ViewContext *UNUSED(vc), const int mval[2],
         const uint min, const uint max, uint *r_dist)
 {
 	uint index = 0;



More information about the Bf-blender-cvs mailing list