summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTor Lillqvist <tml@collabora.com>2014-11-27 15:32:45 +0200
committerTor Lillqvist <tml@collabora.com>2014-11-27 15:32:58 +0200
commitafcb67bd0645a0ddd2ae024d13becc118b8c40b0 (patch)
tree5c7189cd40c7dcfe586fbbd22690ac66e9ebff14
parentMove more Calc-independent OpenCL stuff from the sc to the opencl module (diff)
downloadcore-afcb67bd0645a0ddd2ae024d13becc118b8c40b0.tar.gz
core-afcb67bd0645a0ddd2ae024d13becc118b8c40b0.zip
WaE: variable 'bSetOpenCL' set but not used
Change-Id: I897accf5b4259a4a01198118421abaa55465207e
-rw-r--r--sc/source/core/tool/formulaopt.cxx4
1 files changed, 3 insertions, 1 deletions
diff --git a/sc/source/core/tool/formulaopt.cxx b/sc/source/core/tool/formulaopt.cxx
index 60378df03122..5da7b01e6cf9 100644
--- a/sc/source/core/tool/formulaopt.cxx
+++ b/sc/source/core/tool/formulaopt.cxx
@@ -649,7 +649,9 @@ void ScFormulaCfg::Commit()
break;
}
}
-#if HAVE_FEATURE_OPENCL
+#if !HAVE_FEATURE_OPENCL
+ (void) bSetOpenCL;
+#else
if(bSetOpenCL)
sc::FormulaGroupInterpreter::switchOpenCLDevice(
GetCalcConfig().maOpenCLDevice, GetCalcConfig().mbOpenCLAutoSelect);