Skip to content

Commit

Permalink
[src] Fix w/ ifdef Visual Studio error from alternate syntactic form …
Browse files Browse the repository at this point in the history
…noreturn (#3020)
  • Loading branch information
daanzu authored and danpovey committed Feb 3, 2019
1 parent 9e35898 commit a51bd96
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions src/base/kaldi-error.cc
Original file line number Diff line number Diff line change
Expand Up @@ -220,8 +220,12 @@ FatalMessageLogger::FatalMessageLogger(LogMessageEnvelope::Severity severity,
"severities kAssertFailed and kError");
}
}

FatalMessageLogger::~FatalMessageLogger [[ noreturn ]] () noexcept(false) {
#if defined(_MSC_VER)
FatalMessageLogger::~FatalMessageLogger [[ noreturn ]] () noexcept(false)
#else
[[ noreturn ]] FatalMessageLogger::~FatalMessageLogger() noexcept(false)
#endif
{
std::string str = GetMessage();

// print the mesage (or send to logging handler),
Expand Down

0 comments on commit a51bd96

Please sign in to comment.