Kaydet (Commit) f5000d66 authored tarafından Tor Lillqvist's avatar Tor Lillqvist

Add missing break statements

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

Change-Id: I7c0e90e5435b028f0a4b4bded304338cb57271cc
üst 782adba4
...@@ -225,13 +225,16 @@ void log( ...@@ -225,13 +225,16 @@ void log(
switch (level) { switch (level) {
case SAL_DETAIL_LOG_LEVEL_INFO: case SAL_DETAIL_LOG_LEVEL_INFO:
prio = LOG_INFO; prio = LOG_INFO;
break;
default: default:
assert(false); // this cannot happen assert(false); // this cannot happen
// fall through // fall through
case SAL_DETAIL_LOG_LEVEL_WARN: case SAL_DETAIL_LOG_LEVEL_WARN:
prio = LOG_WARNING; prio = LOG_WARNING;
break;
case SAL_DETAIL_LOG_LEVEL_DEBUG: case SAL_DETAIL_LOG_LEVEL_DEBUG:
prio = LOG_DEBUG; prio = LOG_DEBUG;
break;
} }
syslog(prio, "%s", s.str().c_str()); syslog(prio, "%s", s.str().c_str());
#endif #endif
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment