summaryrefslogtreecommitdiffstats
path: root/src/rgw/rgw_admin.cc
diff options
context:
space:
mode:
authorYuval Lifshitz <ylifshit@redhat.com>2023-12-17 17:27:27 +0100
committerGitHub <noreply@github.com>2023-12-17 17:27:27 +0100
commitf74e11dc8ee7bd13e2f8858ae66dc119b18fdce6 (patch)
treef2651c104d9dcd3a1737524b8f70fee37beacba6 /src/rgw/rgw_admin.cc
parentMerge pull request #54547 from idryomov/wip-53897 (diff)
parentrgw: Add coverity annotations for uncaught exceptions in standalone binaries (diff)
downloadceph-f74e11dc8ee7bd13e2f8858ae66dc119b18fdce6.tar.xz
ceph-f74e11dc8ee7bd13e2f8858ae66dc119b18fdce6.zip
Merge pull request #53902 from vedanshbhartia/coverity_except_main
rgw: Add coverity annotations for uncaught exceptions in standalone binaries reviewed-by: yuvalif
Diffstat (limited to 'src/rgw/rgw_admin.cc')
-rw-r--r--src/rgw/rgw_admin.cc3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/rgw/rgw_admin.cc b/src/rgw/rgw_admin.cc
index 2288399d4d8..3d817c6039b 100644
--- a/src/rgw/rgw_admin.cc
+++ b/src/rgw/rgw_admin.cc
@@ -3292,6 +3292,9 @@ void init_realm_param(CephContext *cct, string& var, std::optional<string>& opt_
}
}
+// This has an uncaught exception. Even if the exception is caught, the program
+// would need to be terminated, so the warning is simply suppressed.
+// coverity[root_function:SUPPRESS]
int main(int argc, const char **argv)
{
auto args = argv_to_vec(argc, argv);