summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGabor Kelemen <kelemeng@ubuntu.com>2018-10-20 21:03:02 +0200
committerMiklos Vajna <vmiklos@collabora.co.uk>2018-10-24 13:29:40 +0200
commitdc35f2592654166ab293c1315f47cec9d2384ed5 (patch)
tree93d2d17354edf256b7a334e99e1bba869789bdd5
parentdb0051744330d82986e8f2629a027bc4a5dc1b4a (diff)
tdf#42949 Fix IWYU warnings in include/opencl/*
Found with bin/find-unneeded-includes Only removal proposals are dealt with here. Change-Id: I76f15a8e7724384e8ba773621bdcac1351b32a0a Reviewed-on: https://gerrit.libreoffice.org/62086 Tested-by: Jenkins Reviewed-by: Miklos Vajna <vmiklos@collabora.co.uk>
-rw-r--r--include/opencl/openclconfig.hxx4
-rw-r--r--include/opencl/openclwrapper.hxx8
-rw-r--r--opencl/source/openclwrapper.cxx1
3 files changed, 7 insertions, 6 deletions
diff --git a/include/opencl/openclconfig.hxx b/include/opencl/openclconfig.hxx
index e5fd6dd00305..c7a188a73203 100644
--- a/include/opencl/openclconfig.hxx
+++ b/include/opencl/openclconfig.hxx
@@ -14,9 +14,11 @@
#include <set>
#include <opencl/opencldllapi.h>
-#include <opencl/platforminfo.hxx>
#include <rtl/ustring.hxx>
+struct OpenCLDeviceInfo;
+struct OpenCLPlatformInfo;
+
struct OPENCL_DLLPUBLIC OpenCLConfig
{
struct ImplMatcher
diff --git a/include/opencl/openclwrapper.hxx b/include/opencl/openclwrapper.hxx
index 1b5ac674a01c..67dfc8798416 100644
--- a/include/opencl/openclwrapper.hxx
+++ b/include/opencl/openclwrapper.hxx
@@ -10,22 +10,20 @@
#ifndef INCLUDED_SC_SOURCE_CORE_OPENCL_OPENCLWRAPPER_HXX
#define INCLUDED_SC_SOURCE_CORE_OPENCL_OPENCLWRAPPER_HXX
-#include <cassert>
#include <vector>
#include <clew/clew.h>
-#include <sal/detail/log.h>
#include <opencl/opencldllapi.h>
-#include <opencl/platforminfo.hxx>
-#include <osl/file.hxx>
-#include <rtl/string.hxx>
+#include <rtl/ustring.hxx>
#define MAX_CLFILE_NUM 50
#define OPENCL_CMDQUEUE_SIZE 1 // number of command queues per OpenCL device.
#include <cstdio>
+struct OpenCLPlatformInfo;
+
namespace openclwrapper
{
diff --git a/opencl/source/openclwrapper.cxx b/opencl/source/openclwrapper.cxx
index bee764560e83..213351cc7450 100644
--- a/opencl/source/openclwrapper.cxx
+++ b/opencl/source/openclwrapper.cxx
@@ -13,6 +13,7 @@
#include <opencl/openclconfig.hxx>
#include <opencl/openclwrapper.hxx>
+#include <opencl/platforminfo.hxx>
#include <osl/file.hxx>
#include <rtl/bootstrap.hxx>
#include <rtl/digest.h>