diff options
author | Sergey Sharybin <sergey.vfx@gmail.com> | 2016-09-02 10:14:34 +0300 |
---|---|---|
committer | Sergey Sharybin <sergey.vfx@gmail.com> | 2016-09-02 10:14:34 +0300 |
commit | fce8f24628d283baf50addd9392f5ae3c4acfd5a (patch) | |
tree | 21b80db1dd4c0671e5a4cda378d55ff71376d940 /intern/cycles/kernel/osl/osl_shader.cpp | |
parent | 8b2a4505209343cebb7012af7dc29aa03da18536 (diff) |
Cycles: Silence strict compiler warning in release build
Diffstat (limited to 'intern/cycles/kernel/osl/osl_shader.cpp')
-rw-r--r-- | intern/cycles/kernel/osl/osl_shader.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/intern/cycles/kernel/osl/osl_shader.cpp b/intern/cycles/kernel/osl/osl_shader.cpp index 681ea3c1794..0d762bbdb38 100644 --- a/intern/cycles/kernel/osl/osl_shader.cpp +++ b/intern/cycles/kernel/osl/osl_shader.cpp @@ -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); |