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