Cycles: Silence strict compiler warning in release build
authorSergey Sharybin <sergey.vfx@gmail.com>
Fri, 2 Sep 2016 07:14:34 +0000 (09:14 +0200)
committerSergey Sharybin <sergey.vfx@gmail.com>
Fri, 2 Sep 2016 07:14:34 +0000 (09:14 +0200)
intern/cycles/kernel/osl/osl_shader.cpp

index 681ea3c1794656336488fce46d94af0760c23521..0d762bbdb38638086cbc7acabb929b3a687ef3f0 100644 (file)
@@ -196,6 +196,7 @@ void OSLShader::eval_surface(KernelGlobals *kg, ShaderData *sd, PathState *state
                        float data[9];
                        bool found = kg->osl->services->get_attribute(sd, true, OSLRenderServices::u_empty, TypeDesc::TypeVector,
                                                                      OSLRenderServices::u_geom_undisplaced, data);
+                       (void)found;
                        assert(found);
 
                        memcpy(&sd->P, data, sizeof(float)*3);