summaryrefslogtreecommitdiff
path: root/src/KM_log.cpp
diff options
context:
space:
mode:
authorJohn Hurst <jhurst@cinecert.com>2021-05-11 14:14:01 -0700
committerGitHub <noreply@github.com>2021-05-11 14:14:01 -0700
commitb71135239b4710bcdccd88adde161acf954706cb (patch)
tree4cfa2c5123fac71f75178247c80911856e3087be /src/KM_log.cpp
parent8c51d30f81cc4a123ec75be93e67cedb48982e40 (diff)
parent794d14855362ca5e3d5a99ed9bf86bd506a172c1 (diff)
Merge pull request #32 from cth103/warning-fixes
Warning fixes
Diffstat (limited to 'src/KM_log.cpp')
-rwxr-xr-xsrc/KM_log.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/KM_log.cpp b/src/KM_log.cpp
index d820dba..9aff3a5 100755
--- a/src/KM_log.cpp
+++ b/src/KM_log.cpp
@@ -152,7 +152,7 @@ Kumu::StreamLogSink::WriteEntry(const LogEntry& Entry)
{
Entry.CreateStringWithOptions(buf, m_options);
ssize_t n = write(m_fd, buf.c_str(), buf.size());
- assert(n==buf.size());
+ assert(n==static_cast<ssize_t>(buf.size()));
}
}
@@ -203,6 +203,7 @@ 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;
+ case Kumu::LOG_MAX: break;
}
AutoMutex L(m_lock);
@@ -295,6 +296,8 @@ Kumu::LogEntry::TestFilter(i32_t filter) const
return false;
break;
+ case LOG_MAX:
+ break;
}
return true;