[Bf-blender-cvs] [f6371454500] blender2.8: Fix compilation on gcc
Antony Riakiotakis
noreply at git.blender.org
Mon May 22 02:39:53 CEST 2017
Commit: f637145450010d14660fcb029d41560a138eae14
Author: Antony Riakiotakis
Date: Mon May 22 03:33:31 2017 +0300
Branches: blender2.8
https://developer.blender.org/rBf637145450010d14660fcb029d41560a138eae14
Fix compilation on gcc
===================================================================
M intern/gawain/src/element.c
===================================================================
diff --git a/intern/gawain/src/element.c b/intern/gawain/src/element.c
index 1346be024e3..1875c0a3cc8 100644
--- a/intern/gawain/src/element.c
+++ b/intern/gawain/src/element.c
@@ -33,6 +33,12 @@ unsigned ElementList_size(const ElementList* elem)
case INDEX_U8: return elem->index_ct * sizeof(GLubyte);
case INDEX_U16: return elem->index_ct * sizeof(GLushort);
case INDEX_U32: return elem->index_ct * sizeof(GLuint);
+
+ default:
+#if TRUST_NO_ONE
+ assert(false);
+#endif
+ return 0;
}
#else
More information about the Bf-blender-cvs
mailing list