summaryrefslogtreecommitdiff
path: root/sal/osl
diff options
context:
space:
mode:
authorTor Lillqvist <tml@iki.fi>2013-06-19 11:13:20 +0300
committerTor Lillqvist <tml@iki.fi>2013-06-19 15:56:08 +0300
commitf5000d66bac505572a91f2bc391ecc23bd1ee670 (patch)
treeec457023d114186881b61f9f9700df5a21a26100 /sal/osl
parent782adba4d436c65cdf85d48f28486321873b15ed (diff)
Add missing break statements
Found by Clang static analyzer: Value stored to 'prio' is never read. Change-Id: I7c0e90e5435b028f0a4b4bded304338cb57271cc
Diffstat (limited to 'sal/osl')
-rw-r--r--sal/osl/all/log.cxx3
1 files changed, 3 insertions, 0 deletions
diff --git a/sal/osl/all/log.cxx b/sal/osl/all/log.cxx
index db5dc7b557f0..3a496b8db75e 100644
--- a/sal/osl/all/log.cxx
+++ b/sal/osl/all/log.cxx
@@ -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