[Bf-blender-cvs] [fd47fe4006a] master: Cleanup: fix compiler warning

Brecht Van Lommel noreply at git.blender.org
Fri Sep 2 18:33:36 CEST 2022


Commit: fd47fe4006a54559e0bc97b056a3503bd03e31b2
Author: Brecht Van Lommel
Date:   Fri Sep 2 18:23:03 2022 +0200
Branches: master
https://developer.blender.org/rBfd47fe4006a54559e0bc97b056a3503bd03e31b2

Cleanup: fix compiler warning

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

M	intern/cycles/kernel/sample/pattern.h

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

diff --git a/intern/cycles/kernel/sample/pattern.h b/intern/cycles/kernel/sample/pattern.h
index fa48cc216af..ebdecc1bff9 100644
--- a/intern/cycles/kernel/sample/pattern.h
+++ b/intern/cycles/kernel/sample/pattern.h
@@ -106,6 +106,8 @@ ccl_device_inline bool sample_is_class_A(int pattern, int sample)
      */
     return hash_hp_seeded_uint(sample, 0xa771f873) & 1;
   }
+#else
+  (void)pattern;
 #endif
 
   /* This follows the approach from section 10.2.1 of "Progressive



More information about the Bf-blender-cvs mailing list