[Piglit] [PATCH] arb_copy_image-targets: Add comments to silence Coverity defects.

Vinson Lee vlee at freedesktop.org
Mon Dec 15 17:49:57 PST 2014


Silence Coverity "missing break in switch" defects.

Signed-off-by: Vinson Lee <vlee at freedesktop.org>
---
 tests/spec/arb_copy_image/targets.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/tests/spec/arb_copy_image/targets.c b/tests/spec/arb_copy_image/targets.c
index 86edeca..333631c 100644
--- a/tests/spec/arb_copy_image/targets.c
+++ b/tests/spec/arb_copy_image/targets.c
@@ -65,12 +65,14 @@ image_init(struct image *image, GLenum target, int width, int height, int depth)
 	switch (target) {
 	case GL_TEXTURE_CUBE_MAP:
 		assert(depth == 6);
+		/* Fall through. */
 	case GL_TEXTURE_CUBE_MAP_ARRAY_ARB:
 		assert(width == height);
 		assert(depth % 6 == 0);
 		break;
 	case GL_TEXTURE_1D:
 		assert(height == 1);
+		/* Fall through. */
 	case GL_TEXTURE_2D:
 	case GL_TEXTURE_RECTANGLE:
 		assert(depth == 1);
-- 
1.9.1



More information about the Piglit mailing list