From fe0f5eba353b268336ebc775decf36b37ef805aa Mon Sep 17 00:00:00 2001 From: Bent Bisballe Nyeng Date: Mon, 20 Jan 2025 17:38:50 +0100 Subject: Use trailing explicit return-type (instead of auto-deduction) for never-returning functions. --- src/configure.cc | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src/configure.cc') diff --git a/src/configure.cc b/src/configure.cc index 995e340..553e368 100644 --- a/src/configure.cc +++ b/src/configure.cc @@ -358,13 +358,12 @@ int regenerateCache(ctor::settings& settings, opt.add("help", no_argument, 'h', "Print this help text.", - [&]() { + [&]() -> int { std::cout << "Configure how to build with " << name << "\n"; std::cout << "Usage: " << name << " configure [options]\n\n"; std::cout << "Options:\n"; opt.help(); exit(0); - return 0; }); opt.process(static_cast(vargs.size()), vargs.data()); -- cgit v1.2.3