diff options
author | Max Kellermann <max@musicpd.org> | 2019-02-05 21:35:02 +0100 |
---|---|---|
committer | Max Kellermann <max@musicpd.org> | 2019-02-05 21:36:35 +0100 |
commit | 4b55ed17a9ef07f01be3dff662fe7796165ecc01 (patch) | |
tree | 899154040f610f759c1970619dc0a54b907bb5b3 | |
parent | 674c137e5fdb44f8a33b178bf6037180e0af0acd (diff) |
LogInit: add `noexcept`
-rw-r--r-- | src/LogInit.cxx | 9 | ||||
-rw-r--r-- | src/LogInit.hxx | 6 |
2 files changed, 8 insertions, 7 deletions
diff --git a/src/LogInit.cxx b/src/LogInit.cxx index 46d2ef62a..7154c40d6 100644 --- a/src/LogInit.cxx +++ b/src/LogInit.cxx @@ -109,7 +109,7 @@ parse_log_level(const char *value, int line) #endif void -log_early_init(bool verbose) +log_early_init(bool verbose) noexcept { #ifdef ANDROID (void)verbose; @@ -171,7 +171,7 @@ log_init(const ConfigData &config, bool verbose, bool use_stdout) #ifndef ANDROID static void -close_log_files(void) +close_log_files() noexcept { #ifdef HAVE_SYSLOG LogFinishSysLog(); @@ -181,7 +181,7 @@ close_log_files(void) #endif void -log_deinit(void) +log_deinit() noexcept { #ifndef ANDROID close_log_files(); @@ -213,7 +213,8 @@ void setup_log_output() #endif } -int cycle_log_files(void) +int +cycle_log_files() noexcept { #ifdef ANDROID return 0; diff --git a/src/LogInit.hxx b/src/LogInit.hxx index 357a65ac9..5079c6c6a 100644 --- a/src/LogInit.hxx +++ b/src/LogInit.hxx @@ -31,7 +31,7 @@ struct ConfigData; * @param verbose true when the program is started with --verbose */ void -log_early_init(bool verbose); +log_early_init(bool verbose) noexcept; /** * Throws #std::runtime_error on error. @@ -40,12 +40,12 @@ void log_init(const ConfigData &config, bool verbose, bool use_stdout); void -log_deinit(); +log_deinit() noexcept; void setup_log_output(); int -cycle_log_files(); +cycle_log_files() noexcept; #endif /* LOG_H */ |