Merge pull request #7389 from shawnl/warning
tree-wide: adjust fall through comments so that gcc is happy
This commit is contained in:
@@ -523,8 +523,7 @@ int image_remove(Image *i) {
|
||||
if (path_startswith(i->path, "/dev"))
|
||||
break;
|
||||
|
||||
/* fallthrough */
|
||||
|
||||
_fallthrough_;
|
||||
case IMAGE_RAW:
|
||||
if (unlink(i->path) < 0)
|
||||
return -errno;
|
||||
@@ -609,8 +608,7 @@ int image_rename(Image *i, const char *new_name) {
|
||||
if (file_attr & FS_IMMUTABLE_FL)
|
||||
(void) chattr_path(i->path, 0, FS_IMMUTABLE_FL);
|
||||
|
||||
/* fall through */
|
||||
|
||||
_fallthrough_;
|
||||
case IMAGE_SUBVOLUME:
|
||||
new_path = file_in_same_dir(i->path, new_name);
|
||||
break;
|
||||
|
||||
Reference in New Issue
Block a user