LogInit: add `noexcept`
This commit is contained in:
parent
674c137e5f
commit
4b55ed17a9
|
@ -109,7 +109,7 @@ parse_log_level(const char *value, int line)
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
void
|
void
|
||||||
log_early_init(bool verbose)
|
log_early_init(bool verbose) noexcept
|
||||||
{
|
{
|
||||||
#ifdef ANDROID
|
#ifdef ANDROID
|
||||||
(void)verbose;
|
(void)verbose;
|
||||||
|
@ -171,7 +171,7 @@ log_init(const ConfigData &config, bool verbose, bool use_stdout)
|
||||||
#ifndef ANDROID
|
#ifndef ANDROID
|
||||||
|
|
||||||
static void
|
static void
|
||||||
close_log_files(void)
|
close_log_files() noexcept
|
||||||
{
|
{
|
||||||
#ifdef HAVE_SYSLOG
|
#ifdef HAVE_SYSLOG
|
||||||
LogFinishSysLog();
|
LogFinishSysLog();
|
||||||
|
@ -181,7 +181,7 @@ close_log_files(void)
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
void
|
void
|
||||||
log_deinit(void)
|
log_deinit() noexcept
|
||||||
{
|
{
|
||||||
#ifndef ANDROID
|
#ifndef ANDROID
|
||||||
close_log_files();
|
close_log_files();
|
||||||
|
@ -213,7 +213,8 @@ void setup_log_output()
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
int cycle_log_files(void)
|
int
|
||||||
|
cycle_log_files() noexcept
|
||||||
{
|
{
|
||||||
#ifdef ANDROID
|
#ifdef ANDROID
|
||||||
return 0;
|
return 0;
|
||||||
|
|
|
@ -31,7 +31,7 @@ struct ConfigData;
|
||||||
* @param verbose true when the program is started with --verbose
|
* @param verbose true when the program is started with --verbose
|
||||||
*/
|
*/
|
||||||
void
|
void
|
||||||
log_early_init(bool verbose);
|
log_early_init(bool verbose) noexcept;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Throws #std::runtime_error on error.
|
* Throws #std::runtime_error on error.
|
||||||
|
@ -40,12 +40,12 @@ void
|
||||||
log_init(const ConfigData &config, bool verbose, bool use_stdout);
|
log_init(const ConfigData &config, bool verbose, bool use_stdout);
|
||||||
|
|
||||||
void
|
void
|
||||||
log_deinit();
|
log_deinit() noexcept;
|
||||||
|
|
||||||
void
|
void
|
||||||
setup_log_output();
|
setup_log_output();
|
||||||
|
|
||||||
int
|
int
|
||||||
cycle_log_files();
|
cycle_log_files() noexcept;
|
||||||
|
|
||||||
#endif /* LOG_H */
|
#endif /* LOG_H */
|
||||||
|
|
Loading…
Reference in New Issue