diff options
author | Shin'ichiro Kawasaki <kawasaki@juno.dti.ne.jp> | 2019-08-14 10:59:17 +0900 |
---|---|---|
committer | Brian C. Lane <bcl@redhat.com> | 2020-11-05 16:32:07 -0800 |
commit | 5449d1b1ee763e8ae1057fb7d18f7fbccb7a6fe0 (patch) | |
tree | b4eb9644ac186d238d07a39bf7fb87d8cea596fc /libparted | |
parent | d51921b05c32287238b1b0447d7e952884f63eb5 (diff) | |
download | parted-5449d1b1ee763e8ae1057fb7d18f7fbccb7a6fe0.tar.gz |
libparted: Fix warnings from GCC's -Wimplicit-fallthrough
Two case statements have intentional fall-throughs but do not have
comments to note it. GCC detects and warns those case statements. To
avoid the warning, add fall-through comments.
Signed-off-by: Shin'ichiro Kawasaki <kawasaki@juno.dti.ne.jp>
Signed-off-by: Brian C. Lane <bcl@redhat.com>
Diffstat (limited to 'libparted')
-rw-r--r-- | libparted/fs/amiga/amiga.c | 1 | ||||
-rw-r--r-- | libparted/fs/r/hfs/reloc.c | 1 |
2 files changed, 2 insertions, 0 deletions
diff --git a/libparted/fs/amiga/amiga.c b/libparted/fs/amiga/amiga.c index be10dae..eb63f24 100644 --- a/libparted/fs/amiga/amiga.c +++ b/libparted/fs/amiga/amiga.c @@ -217,6 +217,7 @@ _amiga_read_block (PedDevice *dev, struct AmigaBlock *blk, PedSector block, stru return NULL; } } + /* FALLTHROUGH */ case PED_EXCEPTION_IGNORE : case PED_EXCEPTION_UNHANDLED : default : diff --git a/libparted/fs/r/hfs/reloc.c b/libparted/fs/r/hfs/reloc.c index 0b8ddc1..d0477ae 100644 --- a/libparted/fs/r/hfs/reloc.c +++ b/libparted/fs/r/hfs/reloc.c @@ -224,6 +224,7 @@ hfs_do_move (PedFileSystem* fs, unsigned int *ptr_src, priv_data->catalog_file ->cache[ref->ref_index].start_block = PED_CPU_TO_BE16(new_start); + /* FALLTHROUGH */ case CR_BTREE_EXT_0 : file = priv_data->extent_file; goto CR_BTREE; |