Commit 95acc4be authored by Max Kellermann's avatar Max Kellermann

Main: add "noexcept"

parent 330a4cf5
...@@ -433,7 +433,8 @@ Instance::OnIdle(unsigned flags) ...@@ -433,7 +433,8 @@ Instance::OnIdle(unsigned flags)
#ifndef ANDROID #ifndef ANDROID
int main(int argc, char *argv[]) int
main(int argc, char *argv[]) noexcept
{ {
#ifdef _WIN32 #ifdef _WIN32
return win32_main(argc, argv); return win32_main(argc, argv);
...@@ -445,7 +446,8 @@ int main(int argc, char *argv[]) ...@@ -445,7 +446,8 @@ int main(int argc, char *argv[])
#endif #endif
static int static int
mpd_main_after_fork(const ConfigData &raw_config, const Config &config); mpd_main_after_fork(const ConfigData &raw_config,
const Config &config);
static inline int static inline int
MainOrThrow(int argc, char *argv[]) MainOrThrow(int argc, char *argv[])
...@@ -533,7 +535,7 @@ MainOrThrow(int argc, char *argv[]) ...@@ -533,7 +535,7 @@ MainOrThrow(int argc, char *argv[])
#ifdef ANDROID #ifdef ANDROID
static inline static inline
#endif #endif
int mpd_main(int argc, char *argv[]) int mpd_main(int argc, char *argv[]) noexcept
{ {
AtScopeExit() { log_deinit(); }; AtScopeExit() { log_deinit(); };
......
...@@ -38,7 +38,8 @@ extern Instance *instance; ...@@ -38,7 +38,8 @@ extern Instance *instance;
* On Windows platform this is called from win32_main() * On Windows platform this is called from win32_main()
* after doing some initialization. * after doing some initialization.
*/ */
int mpd_main(int argc, char *argv[]); int
mpd_main(int argc, char *argv[]) noexcept;
#endif #endif
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment