diff options
author | Eric Sandeen <sandeen@redhat.com> | 2013-11-06 17:15:54 -0600 |
---|---|---|
committer | Chris Mason <chris.mason@fusionio.com> | 2013-11-07 16:10:41 -0500 |
commit | 7bee7b2f2a16b5af04bd4b3f967eefe81cedbac1 (patch) | |
tree | 8e939684297b484e403173f60df7f4c81ab017cd /utils.c | |
parent | b68477aee114470bde87d655ef647f8475b18003 (diff) |
btrfs-progs: annotate fallthroughs in parse_size
We intentionally fall through these case statements;
just annotate it to be clear.
Resolves-Coverity-CID: 1054887
Signed-off-by: Eric Sandeen <sandeen@redhat.com>
Signed-off-by: Chris Mason <chris.mason@fusionio.com>
Diffstat (limited to 'utils.c')
-rw-r--r-- | utils.c | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -1522,16 +1522,22 @@ u64 parse_size(char *s) switch (c) { case 'e': mult *= 1024; + /* fallthrough */ case 'p': mult *= 1024; + /* fallthrough */ case 't': mult *= 1024; + /* fallthrough */ case 'g': mult *= 1024; + /* fallthrough */ case 'm': mult *= 1024; + /* fallthrough */ case 'k': mult *= 1024; + /* fallthrough */ case 'b': break; default: |