Silenced harmless compiler warning -Wimplicit-fallthrough

This commit is contained in:
Thomas Schmitt 2017-09-15 22:29:02 +02:00
parent ce831f111c
commit 34e35865fe
1 changed files with 5 additions and 1 deletions

View File

@ -1365,7 +1365,11 @@ int iso_dir_insert(IsoDir *dir, IsoNode *node, IsoNode **pos,
/* old file is newer */ /* old file is newer */
return ISO_NODE_NAME_NOT_UNIQUE; return ISO_NODE_NAME_NOT_UNIQUE;
} }
/* fall down */ if ((node->mode & S_IFMT) != ((*pos)->mode & S_IFMT)) {
/* different file types */
return ISO_NODE_NAME_NOT_UNIQUE;
}
break;
case ISO_REPLACE_IF_SAME_TYPE: case ISO_REPLACE_IF_SAME_TYPE:
if ((node->mode & S_IFMT) != ((*pos)->mode & S_IFMT)) { if ((node->mode & S_IFMT) != ((*pos)->mode & S_IFMT)) {
/* different file types */ /* different file types */