- 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'
This commit is contained in:
alexey.lysiuk 2018-11-23 15:03:37 +02:00
parent ac62088690
commit dc6ba6bd52
2 changed files with 3 additions and 3 deletions

View file

@ -71,7 +71,7 @@ public:
else else
return NULL; return NULL;
} }
char const *what() const override char const *what() const noexcept override
{ {
return m_Message; return m_Message;
} }

View file

@ -265,11 +265,11 @@ int main (int argc, char **argv)
fprintf (stderr, "%s\n", error.what ()); fprintf (stderr, "%s\n", error.what ());
#ifdef __APPLE__ #ifdef __APPLE__
Mac_I_FatalError(error.GetMessage()); Mac_I_FatalError(error.what());
#endif // __APPLE__ #endif // __APPLE__
#ifdef __linux__ #ifdef __linux__
Linux_I_FatalError(error.GetMessage()); Linux_I_FatalError(error.what());
#endif // __linux__ #endif // __linux__
exit (-1); exit (-1);