ref: 1a1d26692103d476af41fd9f6bf69cda3d488271
parent: 9b151f1513f385c04b1eef13bc33ac6d9494d1aa
author: Tor Andersson <tor.andersson@artifex.com>
date: Mon Jan 5 09:03:44 EST 2015
Annotate fall through switch cases. Silence coverity warnings.
--- a/jsdtoa.c
+++ b/jsdtoa.c
@@ -453,6 +453,7 @@
flag |= Fsign;
else
flag |= Fesign;
+ /* fall through */
case '+':
if(state == S0)
state = S1;
@@ -495,6 +496,7 @@
*aas = s+3;
goto retnan;
}
+ /* fall through */
case S1:
if(xcmp(s, "infinity") == 0) {
if(aas != NULL)
@@ -506,6 +508,7 @@
*aas = s+3;
goto retinf;
}
+ /* fall through */
case S3:
if(aas != NULL)
*aas = (char*)as;
@@ -512,6 +515,7 @@
goto ret0; /* no digits found */
case S6:
s--; /* back over +- */
+ /* fall through */
case S5:
s--; /* back over e */
break;