From dc6ba6bd529fc12a28803f6e98db20236a86ca75 Mon Sep 17 00:00:00 2001 From: "alexey.lysiuk" Date: Fri, 23 Nov 2018 15:03:37 +0200 Subject: [PATCH] - fixed compilation of POSIX targets src/doomerrors.h:74:14: error: exception specification of overriding function is more lax than base version src/posix/sdl/i_main.cpp:272:28: error: 'class std::exception' has no member named 'GetMessage' --- src/doomerrors.h | 2 +- src/posix/sdl/i_main.cpp | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/doomerrors.h b/src/doomerrors.h index 831db4a91..52bc3c12b 100644 --- a/src/doomerrors.h +++ b/src/doomerrors.h @@ -71,7 +71,7 @@ public: else return NULL; } - char const *what() const override + char const *what() const noexcept override { return m_Message; } diff --git a/src/posix/sdl/i_main.cpp b/src/posix/sdl/i_main.cpp index 8e7230777..0c2389294 100644 --- a/src/posix/sdl/i_main.cpp +++ b/src/posix/sdl/i_main.cpp @@ -265,11 +265,11 @@ int main (int argc, char **argv) fprintf (stderr, "%s\n", error.what ()); #ifdef __APPLE__ - Mac_I_FatalError(error.GetMessage()); + Mac_I_FatalError(error.what()); #endif // __APPLE__ #ifdef __linux__ - Linux_I_FatalError(error.GetMessage()); + Linux_I_FatalError(error.what()); #endif // __linux__ exit (-1);