Skip to content

Commit

Permalink
add fallthrough for SLE12SP5
Browse files Browse the repository at this point in the history
  • Loading branch information
pstorz authored and arogge committed Nov 2, 2022
1 parent e75b755 commit 2cb2e4c
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 7 deletions.
6 changes: 3 additions & 3 deletions core/src/filed/fd_plugins.cc
Expand Up @@ -1262,11 +1262,11 @@ int PluginCreateFile(JobControlRecord* jcr,
Qmsg1(jcr, M_ERROR, 0,
_("Plugin createFile call failed. Returned CF_ERROR file=%s\n"),
attr->ofname);
// FALLTHROUGH
[[fallthrough]];
case CF_SKIP:
// FALLTHROUGH
[[fallthrough]];
case CF_CORE:
// FALLTHROUGH
[[fallthrough]];
case CF_CREATED:
return rp.create_status;
}
Expand Down
2 changes: 1 addition & 1 deletion core/src/filed/restore.cc
Expand Up @@ -594,7 +594,7 @@ void DoRestore(JobControlRecord* jcr)
case CF_EXTRACT:
// File created and we expect file data
rctx.extract = true;
// FALLTHROUGH
[[fallthrough]];
case CF_CREATED:
// File created, but there is no content
rctx.fileAddr = 0;
Expand Down
2 changes: 1 addition & 1 deletion core/src/findlib/find_one.cc
Expand Up @@ -955,7 +955,7 @@ int FindOneFile(JobControlRecord* jcr,
Dmsg1(100, "'%s' ignored (Size doesn't match\n", ff_pkt->fname);
return 1;
}
// Fall Through
[[fallthrough]];
default:
/*
* If this is an Incremental backup, see if file was modified
Expand Down
2 changes: 1 addition & 1 deletion core/src/lib/fnmatch.cc
Expand Up @@ -175,7 +175,7 @@ static int r_fnmatch(const char* pattern,
--pattern;
}
}
/* FALLTHROUGH */
[[fallthrough]];
default:
normal:
if (FOLD(c) != FOLD(*string)) { return (FNM_NOMATCH); }
Expand Down
2 changes: 1 addition & 1 deletion core/src/stored/acquire.cc
Expand Up @@ -331,7 +331,7 @@ bool AcquireDeviceForRead(DeviceControlRecord* dcr)
FreeVolume(dev);
}
dev->SetLoad();
/* Fall through */
[[fallthrough]];
default:
Jmsg1(jcr, M_WARNING, 0, "Read acquire: %s", jcr->errmsg);
default_path:
Expand Down

0 comments on commit 2cb2e4c

Please sign in to comment.