[Bf-blender-cvs] [a0c1876] master: Cycles: Quiet warning with WITH_OPENSUBDIV disabled

Julian Eisel noreply at git.blender.org
Sun Aug 7 23:22:57 CEST 2016


Commit: a0c187667ec6eaa67b450a7fc315f938f22e94cb
Author: Julian Eisel
Date:   Sun Aug 7 23:20:22 2016 +0200
Branches: master
https://developer.blender.org/rBa0c187667ec6eaa67b450a7fc315f938f22e94cb

Cycles: Quiet warning with WITH_OPENSUBDIV disabled

Checked with @maiself, for now going with this simple solution.

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

M	intern/cycles/subd/subd_patch_table.cpp

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

diff --git a/intern/cycles/subd/subd_patch_table.cpp b/intern/cycles/subd/subd_patch_table.cpp
index a32533b..68ec1b2 100644
--- a/intern/cycles/subd/subd_patch_table.cpp
+++ b/intern/cycles/subd/subd_patch_table.cpp
@@ -251,6 +251,9 @@ void PackedPatchTable::pack(Far::PatchTable* patch_table, int offset)
 	}
 
 	build_patch_map(*this, patch_table, offset);
+#else
+	(void)patch_table;
+	(void)offset;
 #endif
 }




More information about the Bf-blender-cvs mailing list