Fix switch fallthrough warnings/errors
This commit is contained in:
@@ -62,6 +62,7 @@ copy_type (const char *from, const char *to, const Type *t, int preserve)
|
||||
copy_primitive ("heim_integer", from, to);
|
||||
break;
|
||||
}
|
||||
/* FALLTHROUGH */
|
||||
case TBoolean:
|
||||
case TEnumerated :
|
||||
fprintf(codefile, "*(%s) = *(%s);\n", to, from);
|
||||
|
@@ -2378,9 +2378,10 @@ hx509_verify_path(hx509_context context,
|
||||
* EE checking below.
|
||||
*/
|
||||
type = EE_CERT;
|
||||
/* FALLTHOUGH */
|
||||
/* FALLTHROUGH */
|
||||
}
|
||||
}
|
||||
/* FALLTHROUGH */
|
||||
case EE_CERT:
|
||||
/*
|
||||
* If there where any proxy certificates in the chain
|
||||
|
@@ -230,7 +230,7 @@ hx509_pem_read(hx509_context context,
|
||||
where = INDATA;
|
||||
goto indata;
|
||||
}
|
||||
/* FALLTHOUGH */
|
||||
/* FALLTHROUGH */
|
||||
case INHEADER:
|
||||
if (buf[0] == '\0') {
|
||||
where = INDATA;
|
||||
|
@@ -205,14 +205,18 @@ wind_ucs4utf8(const uint32_t *in, size_t in_len, char *out, size_t *out_len)
|
||||
case 4:
|
||||
out[3] = (ch | 0x80) & 0xbf;
|
||||
ch = ch >> 6;
|
||||
/* FALLTHROUGH */
|
||||
case 3:
|
||||
out[2] = (ch | 0x80) & 0xbf;
|
||||
ch = ch >> 6;
|
||||
/* FALLTHROUGH */
|
||||
case 2:
|
||||
out[1] = (ch | 0x80) & 0xbf;
|
||||
ch = ch >> 6;
|
||||
/* FALLTHROUGH */
|
||||
case 1:
|
||||
out[0] = ch | first_char[len - 1];
|
||||
/* FALLTHROUGH */
|
||||
}
|
||||
}
|
||||
out += len;
|
||||
@@ -480,11 +484,14 @@ wind_ucs2utf8(const uint16_t *in, size_t in_len, char *out, size_t *out_len)
|
||||
case 3:
|
||||
out[2] = (ch | 0x80) & 0xbf;
|
||||
ch = ch >> 6;
|
||||
/* FALLTHROUGH */
|
||||
case 2:
|
||||
out[1] = (ch | 0x80) & 0xbf;
|
||||
ch = ch >> 6;
|
||||
/* FALLTHROUGH */
|
||||
case 1:
|
||||
out[0] = ch | first_char[len - 1];
|
||||
/* FALLTHROUGH */
|
||||
}
|
||||
out += len;
|
||||
}
|
||||
|
Reference in New Issue
Block a user