Module: check_mk
Branch: master
Commit: 1cd321af852a6c5417a778e2fc28d099f93d99ac
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=1cd321af852a6c…
Author: Sven Panne <sp(a)mathias-kettner.de>
Date: Wed Mar 1 16:53:09 2017 +0100
Make cppcheck and IWYU more happy.
Change-Id: I19316a30afa164174f71b73a3f3da5e71d83e818
---
livestatus/src/NagiosMockup.cc | 6 ++++--
livestatus/src/module.cc | 2 --
2 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/livestatus/src/NagiosMockup.cc b/livestatus/src/NagiosMockup.cc
index 945e541..df88cf0 100644
--- a/livestatus/src/NagiosMockup.cc
+++ b/livestatus/src/NagiosMockup.cc
@@ -1,9 +1,11 @@
-#include <sys/types.h>
+#include <time.h>
extern "C" {
// dummy types -----------------------------------------------------------------
-struct circular_buffer {};
+struct circular_buffer {
+ int dummy;
+};
struct command;
struct contactgroup;
struct contact;
diff --git a/livestatus/src/module.cc b/livestatus/src/module.cc
index d86be11..5ef59a1 100644
--- a/livestatus/src/module.cc
+++ b/livestatus/src/module.cc
@@ -990,7 +990,6 @@ void omd_advertize() {
}
// Called from Nagios after we have been loaded.
-// cppcheck-suppress unusedFunction
extern "C" int nebmodule_init(int flags __attribute__((__unused__)), char
*args,
void *handle) {
fl_logger_nagios = Logger::getLogger("nagios");
@@ -1039,7 +1038,6 @@ extern "C" int nebmodule_init(int flags
__attribute__((__unused__)), char *args,
}
// Called from Nagios after before we are unloaded.
-// cppcheck-suppress unusedFunction
extern "C" int nebmodule_deinit(int flags __attribute__((__unused__)),
int reason __attribute__((__unused__))) {
Notice(fl_logger_nagios) << "deinitializing";