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

Jason Ekstrand jason at jlekstrand.net
Sun Dec 14 13:36:51 PST 2014


That's better
On Dec 13, 2014 10:58 PM, "Vinson Lee" <vlee at freedesktop.org> wrote:

> 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
>
> _______________________________________________
> Piglit mailing list
> Piglit at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/piglit
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/piglit/attachments/20141214/6d44a041/attachment.html>


More information about the Piglit mailing list