[Bf-blender-cvs] [325eee2261b] master: Cleanup: cycles OSL compiler warnings

Brecht Van Lommel noreply at git.blender.org
Sat Sep 10 13:50:36 CEST 2022


Commit: 325eee2261b1c091ade52b08d7c8938168f80baf
Author: Brecht Van Lommel
Date:   Sat Sep 10 02:32:55 2022 +0200
Branches: master
https://developer.blender.org/rB325eee2261b1c091ade52b08d7c8938168f80baf

Cleanup: cycles OSL compiler warnings

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

M	intern/cycles/kernel/osl/services.cpp

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

diff --git a/intern/cycles/kernel/osl/services.cpp b/intern/cycles/kernel/osl/services.cpp
index 334f06861b2..cff3e24a739 100644
--- a/intern/cycles/kernel/osl/services.cpp
+++ b/intern/cycles/kernel/osl/services.cpp
@@ -450,6 +450,7 @@ static bool set_attribute_float2(float2 f[3], TypeDesc type, bool derivatives, v
   return false;
 }
 
+#if 0
 static bool set_attribute_float2(float2 f, TypeDesc type, bool derivatives, void *val)
 {
   float2 fv[3];
@@ -460,6 +461,7 @@ static bool set_attribute_float2(float2 f, TypeDesc type, bool derivatives, void
 
   return set_attribute_float2(fv, type, derivatives, val);
 }
+#endif
 
 static bool set_attribute_float3(float3 f[3], TypeDesc type, bool derivatives, void *val)
 {
@@ -588,6 +590,7 @@ static bool set_attribute_float4(float4 f[3], TypeDesc type, bool derivatives, v
   return false;
 }
 
+#if 0
 static bool set_attribute_float4(float4 f, TypeDesc type, bool derivatives, void *val)
 {
   float4 fv[3];
@@ -598,6 +601,7 @@ static bool set_attribute_float4(float4 f, TypeDesc type, bool derivatives, void
 
   return set_attribute_float4(fv, type, derivatives, val);
 }
+#endif
 
 static bool set_attribute_float(float f[3], TypeDesc type, bool derivatives, void *val)
 {



More information about the Bf-blender-cvs mailing list