From 606e22abcf8b9f3c3d63ccc8ccf8ae4020c6ffd3 Mon Sep 17 00:00:00 2001 From: "Matthias P. Braendli" Date: Thu, 23 Apr 2015 09:10:35 +0200 Subject: Enable and take care of some warnings --- src/Log.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/Log.h') diff --git a/src/Log.h b/src/Log.h index 85a2f75..7be6df8 100644 --- a/src/Log.h +++ b/src/Log.h @@ -73,10 +73,12 @@ class LogToSyslog : public LogBackend { int syslog_level = LOG_EMERG; switch (level) { case debug: syslog_level = LOG_DEBUG; break; - case alert: syslog_level = LOG_ALERT; break; case info: syslog_level = LOG_INFO; break; + /* we don't have the notice level */ case warn: syslog_level = LOG_WARNING; break; case error: syslog_level = LOG_ERR; break; + default: syslog_level = LOG_CRIT; break; + case alert: syslog_level = LOG_ALERT; break; case emerg: syslog_level = LOG_EMERG; break; } -- cgit v1.2.3