[Libreoffice-commits] core.git: sc/source

Stephan Bergmann sbergman at redhat.com
Wed Oct 30 10:28:57 CET 2013


 sc/source/core/opencl/formulagroupcl.cxx |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

New commits:
commit c51a6ffd3ca90ec5fcad55826fdbc1b2f7ad6109
Author: Stephan Bergmann <sbergman at redhat.com>
Date:   Wed Oct 30 10:26:24 2013 +0100

    error: unused variable 'kSrc' [loplugin]
    
    Change-Id: Ic0b2fd6d16cabdbf732ecbe038f1cee8da05639a

diff --git a/sc/source/core/opencl/formulagroupcl.cxx b/sc/source/core/opencl/formulagroupcl.cxx
index 68d3b5c..c2802e8 100644
--- a/sc/source/core/opencl/formulagroupcl.cxx
+++ b/sc/source/core/opencl/formulagroupcl.cxx
@@ -1147,7 +1147,7 @@ public:
     DynamicKernel(boost::shared_ptr<FormulaTreeNode> r):mpRoot(r),
         mpProgram(NULL), mpKernel(NULL), mpResClmem(NULL) {}
     /// Code generation in OpenCL
-    std::string CodeGen() {
+    void CodeGen() {
         // Travese the tree of expression and declare symbols used
         const DynamicKernelArgument *DK= mSyms.DeclRefArg<
             DynamicKernelSoPArguments<OpNop> >(mpRoot);
@@ -1172,7 +1172,6 @@ public:
 #if 1
         std::cerr<< "Program to be compiled = \n" << mFullProgramSrc << "\n";
 #endif
-        return decl.str();
     }
     /// Produce kernel hash
     std::string GetMD5(void)
@@ -1393,6 +1392,7 @@ bool FormulaGroupInterpreterOpenCL::interpret( ScDocument& rDoc,
     mpKernel = new DynamicKernel(Root);
 
     try {
+        mpKernel->CodeGen();
         // Obtain cl context
         KernelEnv kEnv;
         OclCalc::setKernelEnv(&kEnv);


More information about the Libreoffice-commits mailing list