Mesa (master): gallivm: Add fallthrough comment at end of case statement.

Vinson Lee vlee at kemper.freedesktop.org
Fri Apr 2 08:17:35 UTC 2010


Module: Mesa
Branch: master
Commit: 82e289d355089952a217b14081bac8ffff04ab2e
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=82e289d355089952a217b14081bac8ffff04ab2e

Author: Vinson Lee <vlee at vmware.com>
Date:   Fri Apr  2 01:14:24 2010 -0700

gallivm: Add fallthrough comment at end of case statement.

The code is correct. Tell Coverity that the fallthrough case is
intentional.

---

 src/gallium/auxiliary/gallivm/lp_bld_printf.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/src/gallium/auxiliary/gallivm/lp_bld_printf.c b/src/gallium/auxiliary/gallivm/lp_bld_printf.c
index e4fa2c2..153ba5b 100644
--- a/src/gallium/auxiliary/gallivm/lp_bld_printf.c
+++ b/src/gallium/auxiliary/gallivm/lp_bld_printf.c
@@ -54,6 +54,7 @@ lp_get_printf_arg_count(const char *fmt)
 	       p += 3;
                continue;
 	    }
+	    /* fallthrough */
 	 default:
 	    count ++;
       }




More information about the mesa-commit mailing list