diff options
author | haochen <haochen@multicorewareinc.com> | 2014-05-19 14:57:15 +0800 |
---|---|---|
committer | Markus Mohrhard <markus.mohrhard@googlemail.com> | 2014-05-19 09:13:24 +0200 |
commit | 86cac77fc143b85452c22b2ca06810696a0d15ed (patch) | |
tree | e46e642d8a3a39ada4f273a788ae4596633bf4eb /sc | |
parent | 2b0a05c7b0eeec7fc75fa80e57c51d5142446e67 (diff) |
GPU Calc:Fixed compiling warning in opbase.cxx&op_math.cxx
Change-Id: I885bf77a85f7f479a8a9632e64af306be243cdd0
Diffstat (limited to 'sc')
-rw-r--r-- | sc/source/core/opencl/op_math.cxx | 2 | ||||
-rw-r--r-- | sc/source/core/opencl/opbase.cxx | 2 |
2 files changed, 1 insertions, 3 deletions
diff --git a/sc/source/core/opencl/op_math.cxx b/sc/source/core/opencl/op_math.cxx index 2be314629267..c2a20ebe71d0 100644 --- a/sc/source/core/opencl/op_math.cxx +++ b/sc/source/core/opencl/op_math.cxx @@ -990,8 +990,6 @@ void OpSinh::GenSlidingWindowFunction(std::stringstream &ss, const std::string &sSymName, SubArguments &vSubArguments) { FormulaToken *tmpCur = vSubArguments[0]->GetFormulaToken(); - static_cast<const - formula::SingleVectorRefToken *>(tmpCur); ss << "\ndouble " << sSymName; ss << "_"<< BinFuncName() <<"("; for (unsigned i = 0; i < vSubArguments.size(); i++) diff --git a/sc/source/core/opencl/opbase.cxx b/sc/source/core/opencl/opbase.cxx index 6bc5214f809a..dfda1608a968 100644 --- a/sc/source/core/opencl/opbase.cxx +++ b/sc/source/core/opencl/opbase.cxx @@ -42,7 +42,7 @@ VectorRef::VectorRef(const std::string &s, FormulaTreeNodeRef ft, int idx): VectorRef::~VectorRef() { if (mpClmem) { - cl_int ret = clReleaseMemObject(mpClmem); + clReleaseMemObject(mpClmem); } } |