[Libreoffice-commits] core.git: Branch 'feature/calc-pluggable-opencl' - sc/source
Kohei Yoshida
kohei.yoshida at collabora.com
Tue Sep 17 12:16:18 PDT 2013
sc/source/core/opencl/openclwrapper.cxx | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
New commits:
commit 11c186dea7087f60d7ae74b25ad8531ba7ed801c
Author: Kohei Yoshida <kohei.yoshida at collabora.com>
Date: Tue Sep 17 15:18:01 2013 -0400
Compiler warning.
Change-Id: Ibf3d21d2666b5c2504804141200ea0fcf9897565
diff --git a/sc/source/core/opencl/openclwrapper.cxx b/sc/source/core/opencl/openclwrapper.cxx
index 7a8b205..2b2f8f7 100644
--- a/sc/source/core/opencl/openclwrapper.cxx
+++ b/sc/source/core/opencl/openclwrapper.cxx
@@ -56,11 +56,14 @@ namespace {
OString generateHashForSource()
{
- size_t nLength = strlen(kernel_src);
sal_uInt8 pBuffer[RTL_DIGEST_LENGTH_MD5];
+
+#ifndef NDEBUG
+ size_t nLength = strlen(kernel_src);
rtlDigestError aError = rtl_digest_MD5(kernel_src, nLength,
pBuffer, RTL_DIGEST_LENGTH_MD5);
assert(aError == rtl_Digest_E_None);
+#endif
OStringBuffer aBuffer;
const char* pString = "0123456789ABCDEF";
More information about the Libreoffice-commits
mailing list