mirror of
https://git.code.sf.net/p/ntfs-3g/ntfs-3g.git
synced 2024-11-23 10:04:00 +08:00
Silenced warnings about fallthrough situations in switch cases of ntfsprogs
Insert comments to silence compiler about fallthrough situations when they are wanted.
This commit is contained in:
parent
b68c27ea74
commit
004709fcc1
@ -465,6 +465,7 @@ static void parse_options(int argc, char **argv)
|
||||
break;
|
||||
case 'O':
|
||||
opt.overwrite++;
|
||||
/* FALLTHRU */
|
||||
case 'o':
|
||||
if (opt.output)
|
||||
usage(1);
|
||||
|
@ -557,6 +557,7 @@ check_again:
|
||||
switch (err) {
|
||||
case GNUTLS_BAG_PKCS8_KEY:
|
||||
flags = GNUTLS_PKCS_PLAIN;
|
||||
/* FALLTHRU */
|
||||
case GNUTLS_BAG_PKCS8_ENCRYPTED_KEY:
|
||||
err = gnutls_pkcs12_bag_get_data(bag, 0, &dkey);
|
||||
if (err < 0) {
|
||||
@ -1481,12 +1482,15 @@ static int ntfs_feed_encrypt(ntfs_inode *inode, ntfs_fek *fek)
|
||||
default :
|
||||
*b++ = val;
|
||||
val >>= 8;
|
||||
/* FALLTHRU */
|
||||
case 3 :
|
||||
*b++ = val;
|
||||
val >>= 8;
|
||||
/* FALLTHRU */
|
||||
case 2 :
|
||||
*b++ = val;
|
||||
val >>= 8;
|
||||
/* FALLTHRU */
|
||||
case 1 :
|
||||
*b++ = val;
|
||||
val >>= 8;
|
||||
|
@ -214,10 +214,15 @@ static s64 option_value(const char *arg)
|
||||
count = 0;
|
||||
switch (*s++) {
|
||||
case 'E' : count++;
|
||||
/* FALLTHRU */
|
||||
case 'P' : count++;
|
||||
/* FALLTHRU */
|
||||
case 'T' : count++;
|
||||
/* FALLTHRU */
|
||||
case 'G' : count++;
|
||||
/* FALLTHRU */
|
||||
case 'M' : count++;
|
||||
/* FALLTHRU */
|
||||
case 'K' : count++;
|
||||
switch (*s++) {
|
||||
case 'i' :
|
||||
|
@ -453,8 +453,10 @@ static s64 get_new_volume_size(char *s)
|
||||
switch (*suffix) {
|
||||
case 'G':
|
||||
size *= prefix_kind;
|
||||
/* FALLTHRU */
|
||||
case 'M':
|
||||
size *= prefix_kind;
|
||||
/* FALLTHRU */
|
||||
case 'k':
|
||||
size *= prefix_kind;
|
||||
break;
|
||||
|
@ -567,10 +567,15 @@ static int parse_time(const char *value, time_t *since)
|
||||
|
||||
switch (suffix[0]) {
|
||||
case 'y': case 'Y': result *= 12;
|
||||
/* FALLTHRU */
|
||||
case 'm': case 'M': result *= 4;
|
||||
/* FALLTHRU */
|
||||
case 'w': case 'W': result *= 7;
|
||||
/* FALLTHRU */
|
||||
case 'd': case 'D': result *= 24;
|
||||
/* FALLTHRU */
|
||||
case 'h': case 'H': result *= 3600;
|
||||
/* FALLTHRU */
|
||||
case 0:
|
||||
break;
|
||||
|
||||
|
@ -314,6 +314,7 @@ static int parse_options(int argc, char *argv[])
|
||||
|
||||
case 'i':
|
||||
opts.info++; /* and fall through */
|
||||
/* FALLTHRU */
|
||||
case 'a':
|
||||
opts.directory++;
|
||||
opts.logfile++;
|
||||
|
@ -364,9 +364,13 @@ int utils_parse_size(const char *value, s64 *size, BOOL scale)
|
||||
if (scale) {
|
||||
switch (suffix[0]) {
|
||||
case 't': case 'T': result *= 1000;
|
||||
/* FALLTHRU */
|
||||
case 'g': case 'G': result *= 1000;
|
||||
/* FALLTHRU */
|
||||
case 'm': case 'M': result *= 1000;
|
||||
/* FALLTHRU */
|
||||
case 'k': case 'K': result *= 1000;
|
||||
/* FALLTHRU */
|
||||
case '-': case 0:
|
||||
break;
|
||||
default:
|
||||
|
Loading…
Reference in New Issue
Block a user