summaryrefslogtreecommitdiff
path: root/indra/llcommon/lleventdispatcher.h
diff options
context:
space:
mode:
Diffstat (limited to 'indra/llcommon/lleventdispatcher.h')
-rw-r--r--indra/llcommon/lleventdispatcher.h10
1 files changed, 3 insertions, 7 deletions
diff --git a/indra/llcommon/lleventdispatcher.h b/indra/llcommon/lleventdispatcher.h
index b4a610bf2d..a82bc7a69b 100644
--- a/indra/llcommon/lleventdispatcher.h
+++ b/indra/llcommon/lleventdispatcher.h
@@ -475,13 +475,9 @@ private:
virtual LLSD getMetadata() const = 0;
template <typename... ARGS>
- LLSD callFail(ARGS&&... args) const
+ [[noreturn]] void callFail(ARGS&&... args) const
{
mParent->callFail<LLEventDispatcher::DispatchError>(std::forward<ARGS>(args)...);
-#if _MSC_VER < 1930 // pre VS 2022
- // pacify the compiler
- return {};
-#endif // pre VS 2022
}
};
typedef std::map<std::string, std::unique_ptr<DispatchEntry> > DispatchMap;
@@ -584,9 +580,9 @@ private:
protected:
// raise specified EXCEPTION with specified stringize(ARGS)
template <typename EXCEPTION, typename... ARGS>
- void callFail(ARGS&&... args) const;
+ [[noreturn]] void callFail(ARGS&&... args) const;
template <typename EXCEPTION, typename... ARGS>
- static
+ [[noreturn]] static
void sCallFail(ARGS&&... args);
// Manage transient state, e.g. which registered callable we're attempting