Merge pull request #7389 from shawnl/warning

tree-wide: adjust fall through comments so that gcc is happy
This commit is contained in:
Zbigniew Jędrzejewski-Szmek
2017-11-22 07:38:51 +01:00
committed by GitHub
44 changed files with 106 additions and 71 deletions
+2 -4
View File
@@ -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;