Module: check_mk
Branch: master
Commit: 5ba66dcc79ced352fd54ffaa95fa0cc995059aa3
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=5ba66dcc79ced3…
Author: Sven Panne <sp(a)mathias-kettner.de>
Date: Fri Aug 12 08:25:40 2016 +0200
Removed unnecessary cppcheck suppressions.
---
livestatus/src/Logfile.cc | 5 -----
livestatus/src/module.cc | 2 --
2 files changed, 7 deletions(-)
diff --git a/livestatus/src/Logfile.cc b/livestatus/src/Logfile.cc
index dd373bc..0765a63 100644
--- a/livestatus/src/Logfile.cc
+++ b/livestatus/src/Logfile.cc
@@ -44,11 +44,6 @@ using std::make_pair;
extern unsigned long g_max_lines_per_logfile;
-// TODO(sp): We need the suppression pragma below because _readpos and
-// _linebuffer is not initialized in the constructor. Just replace all this
-// manual fiddling with pointers, offsets, etc. with vector.
-
-// cppcheck-suppress uninitMemberVar
Logfile::Logfile(const CommandsHolder &commands_holder, const char *path,
bool watch)
: _commands_holder(commands_holder)
diff --git a/livestatus/src/module.cc b/livestatus/src/module.cc
index d25b232..bb126fd 100644
--- a/livestatus/src/module.cc
+++ b/livestatus/src/module.cc
@@ -882,7 +882,6 @@ void omd_advertize() {
}
/* this function gets called when the module is loaded by the event broker */
-/* cppcheck-suppress unusedFunction */
extern "C" int nebmodule_init(int flags __attribute__((__unused__)), char
*args,
void *handle) {
g_nagios_handle = handle;
@@ -931,7 +930,6 @@ extern "C" int nebmodule_init(int flags
__attribute__((__unused__)), char *args,
return 0;
}
-/* cppcheck-suppress unusedFunction */
extern "C" int nebmodule_deinit(int flags __attribute__((__unused__)),
int reason __attribute__((__unused__))) {
logger(LG_INFO, "deinitializing");