Module: check_mk
Branch: master
Commit: 987dce81e9aae59ea053b16109636496ff4336e7
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=987dce81e9aae5…
Author: Sven Panne <sp(a)mathias-kettner.de>
Date: Fri Dec 8 10:36:52 2017 +0100
Small IWYU tweaks.
Change-Id: I66d2513b9b35227d3cb007ed2a80c487b737ad39
---
livestatus/src/TableStateHistory.cc | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
diff --git a/livestatus/src/TableStateHistory.cc b/livestatus/src/TableStateHistory.cc
index d2a3ae7..b4a1621 100644
--- a/livestatus/src/TableStateHistory.cc
+++ b/livestatus/src/TableStateHistory.cc
@@ -54,8 +54,10 @@ class AndingFilter;
class OringFilter;
#ifdef CMC
-#include "Host.h"
-#include "Service.h"
+// This seems to be an IWYU bug: If we remove the includes as suggested, we
+// would do a member access on an incomplete type.
+#include "Host.h" // IWYU pragma: keep
+#include "Service.h" // IWYU pragma: keep
#include "Timeperiod.h"
#include "cmc.h"
#define STATE_OK 0