Add missing break statements
Found by Clang static analyzer: Value stored to 'prio' is never read. Change-Id: I7c0e90e5435b028f0a4b4bded304338cb57271cc
This commit is contained in:
parent
782adba4d4
commit
f5000d66ba
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user