From 4b55ed17a9ef07f01be3dff662fe7796165ecc01 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Tue, 5 Feb 2019 21:35:02 +0100 Subject: [PATCH] LogInit: add `noexcept` --- src/LogInit.cxx | 9 +++++---- 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 */