Add missing break statements

Found by Clang static analyzer: Value stored to 'prio' is never read.

Change-Id: I7c0e90e5435b028f0a4b4bded304338cb57271cc
This commit is contained in:
Tor Lillqvist 2013-06-19 11:13:20 +03:00
parent 782adba4d4
commit f5000d66ba

View File

@ -225,13 +225,16 @@ void log(
switch (level) {
case SAL_DETAIL_LOG_LEVEL_INFO:
prio = LOG_INFO;
break;
default:
assert(false); // this cannot happen
// fall through
case SAL_DETAIL_LOG_LEVEL_WARN:
prio = LOG_WARNING;
break;
case SAL_DETAIL_LOG_LEVEL_DEBUG:
prio = LOG_DEBUG;
break;
}
syslog(prio, "%s", s.str().c_str());
#endif