Module: check_mk
Branch: master
Commit: 3167a96c88f9efdbb5fe2ad3139dbfdda4c870e4
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=3167a96c88f9ef…
Author: Sven Panne <sp(a)mathias-kettner.de>
Date: Fri Aug 5 08:03:44 2016 +0200
Fetched Livestatus from upstream.
---
livestatus/src/StringUtils.cc | 3 ++-
livestatus/src/StringUtils.h | 2 ++
2 files changed, 4 insertions(+), 1 deletion(-)
diff --git a/livestatus/src/StringUtils.cc b/livestatus/src/StringUtils.cc
index d5f34bf..86a6472 100644
--- a/livestatus/src/StringUtils.cc
+++ b/livestatus/src/StringUtils.cc
@@ -37,12 +37,13 @@ string unsafe_tolower(const string &str) {
return result;
}
-// cppcheck-suppress unusedFunction
+#ifdef CMC
string unsafe_toupper(const string &str) {
string result = str;
std::transform(str.begin(), str.end(), result.begin(), ::toupper);
return result;
}
+#endif
bool starts_with(const std::string &input, const std::string &test) {
return input.size() >= test.size() &&
diff --git a/livestatus/src/StringUtils.h b/livestatus/src/StringUtils.h
index 8d8e8bb..25696c7 100644
--- a/livestatus/src/StringUtils.h
+++ b/livestatus/src/StringUtils.h
@@ -33,7 +33,9 @@
namespace mk {
std::string unsafe_tolower(const std::string &str);
+#ifdef CMC
std::string unsafe_toupper(const std::string &str);
+#endif
bool starts_with(const std::string &input, const std::string &test);