[Piglit] [PATCH v2] teximage-color: Add comment to silence Coverity defect.

Vinson Lee vlee at freedesktop.org
Sat Dec 13 22:58:46 PST 2014


Silences Coverity report about missing break in switch.

Signed-off-by: Vinson Lee <vlee at freedesktop.org>
---
 tests/texturing/teximage-colors.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/tests/texturing/teximage-colors.c b/tests/texturing/teximage-colors.c
index 001626d..8bbe15e 100644
--- a/tests/texturing/teximage-colors.c
+++ b/tests/texturing/teximage-colors.c
@@ -525,6 +525,7 @@ piglit_init(int argc, char **argv)
 	case GL_UNSIGNED_SHORT_5_5_5_1:
 	case GL_UNSIGNED_SHORT_1_5_5_5_REV:
 		tolerance[3] = 0.6;
+		/* Fall through. */
 	case GL_UNSIGNED_SHORT_5_6_5:
 	case GL_UNSIGNED_SHORT_5_6_5_REV:
 		tolerance[0] = 0.05;
-- 
1.9.2



More information about the Piglit mailing list