diff options
| author | Carl Hetherington <cth@carlh.net> | 2016-01-05 15:32:35 +0000 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2016-01-05 15:45:01 +0000 |
| commit | e3b5521ac40125c3dfd9f254856cf58ea1584f79 (patch) | |
| tree | f7d7abdfccdcb2e52a06be72da72b593881ae9c4 /asdcplib/src/KM_log.cpp | |
| parent | 3ec4338ce90ea0549409312f24f8b28c07a5d2da (diff) | |
My warning fixes and extensions to asdcplib.
Diffstat (limited to 'asdcplib/src/KM_log.cpp')
| -rwxr-xr-x | asdcplib/src/KM_log.cpp | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/asdcplib/src/KM_log.cpp b/asdcplib/src/KM_log.cpp index dc7bf3f2..89cf10ab 100755 --- a/asdcplib/src/KM_log.cpp +++ b/asdcplib/src/KM_log.cpp @@ -202,6 +202,9 @@ Kumu::SyslogLogSink::WriteEntry(const LogEntry& Entry) case Kumu::LOG_NOTICE: priority = SYSLOG_NOTICE; break; case Kumu::LOG_INFO: priority = SYSLOG_INFO; break; case Kumu::LOG_DEBUG: priority = SYSLOG_DEBUG; break; + default: + /* Keep GCC quiet */ + break; } AutoMutex L(m_lock); @@ -294,6 +297,10 @@ Kumu::LogEntry::TestFilter(i32_t filter) const return false; break; + default: + /* Keep GCC quiet */ + break; + } return true; @@ -325,7 +332,7 @@ Kumu::LogEntry::CreateStringWithOptions(std::string& out_buf, i32_t opt) const if ( (opt & LOG_OPTION_TYPE) != 0 ) { if ( ! out_buf.empty() ) out_buf += " "; - + switch ( Type ) { case LOG_CRIT: out_buf += "CRT"; break; |
