Commit: dd608ba20e04990a398f2ed9bcafa5158dc33a2b
Author: Dalai Felinto
Date:   Fri Jun 23 16:45:14 2017 +0200
Branches: blender2.8
https://developer.blender.org/rBdd608ba20e04990a398f2ed9bcafa5158dc33a2b

Silence warnings (tsc, tsc)

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

M       source/blender/editors/render/render_update.c

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

diff --git a/source/blender/editors/render/render_update.c 
b/source/blender/editors/render/render_update.c
index fd8b3375c19..b8f64c1db58 100644
--- a/source/blender/editors/render/render_update.c
+++ b/source/blender/editors/render/render_update.c
@@ -514,8 +514,6 @@ static void image_changed(Main *bmain, Image *ima)
 static void scene_changed(Main *bmain, Scene *scene)
 {
        Object *ob;
-       Material *ma;
-       World *wo;
 
        /* glsl */
        for (ob = bmain->object.first; ob; ob = ob->id.next) {
@@ -532,11 +530,11 @@ static void scene_changed(Main *bmain, Scene *scene)
        }
 
 #if 0 /* This was needed by old glsl where all lighting was statically linked 
into the shader. */
-       for (ma = bmain->mat.first; ma; ma = ma->id.next)
+       for (Material *ma = bmain->mat.first; ma; ma = ma->id.next)
                if (ma->gpumaterial.first)
                        GPU_material_free(&ma->gpumaterial);
 
-       for (wo = bmain->world.first; wo; wo = wo->id.next)
+       for (World *wo = bmain->world.first; wo; wo = wo->id.next)
                if (wo->gpumaterial.first)
                        GPU_material_free(&wo->gpumaterial);

_______________________________________________
Bf-blender-cvs mailing list
[email protected]
https://lists.blender.org/mailman/listinfo/bf-blender-cvs

Reply via email to