From a69d904192bc0875b8f64ec63f53b1e64678b9e7 Mon Sep 17 00:00:00 2001 From: "alexey.lysiuk" Date: Sun, 30 Apr 2023 13:14:45 +0300 Subject: [PATCH] - fix GCC/Clang compilation error source/games/duke/src/types.h:178:14: error: exception specification of overriding function is more lax than base version --- source/games/duke/src/types.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/games/duke/src/types.h b/source/games/duke/src/types.h index f9da0fa6a..96b0ef561 100644 --- a/source/games/duke/src/types.h +++ b/source/games/duke/src/types.h @@ -175,7 +175,7 @@ public: CDukeKillEvent(int type): Type_(type) {} int Type() const { return Type_; } // to print a meaningful message if killit got called from the wrong place. - const char* what() const override { return "killit called from outside RunState!"; } + const char* what() const noexcept override { return "killit called from outside RunState!"; } }; struct animwalltype