[Libreoffice-commits] core.git: include/opencl opencl/source
Libreoffice Gerrit user
logerrit at kemper.freedesktop.org
Wed Oct 24 11:30:07 UTC 2018
include/opencl/openclconfig.hxx | 4 +++-
include/opencl/openclwrapper.hxx | 8 +++-----
opencl/source/openclwrapper.cxx | 1 +
3 files changed, 7 insertions(+), 6 deletions(-)
New commits:
commit dc35f2592654166ab293c1315f47cec9d2384ed5
Author: Gabor Kelemen <kelemeng at ubuntu.com>
AuthorDate: Sat Oct 20 21:03:02 2018 +0200
Commit: Miklos Vajna <vmiklos at collabora.co.uk>
CommitDate: Wed Oct 24 13:29:40 2018 +0200
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 at collabora.co.uk>
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>
More information about the Libreoffice-commits
mailing list