diff options
author | Kohei Yoshida <kohei.yoshida@collabora.com> | 2013-09-17 15:18:01 -0400 |
---|---|---|
committer | Markus Mohrhard <markus.mohrhard@googlemail.com> | 2013-09-19 17:03:24 +0200 |
commit | 8f56dc0bf547c20404f98493e49dc88bf454a604 (patch) | |
tree | 182cdbbc94775138273f38846d43fa75d80fab6f | |
parent | 59d6f566be3229ff083a6157f575749ce2485bac (diff) |
Compiler warning.
Change-Id: Ibf3d21d2666b5c2504804141200ea0fcf9897565
-rw-r--r-- | sc/source/core/opencl/openclwrapper.cxx | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/sc/source/core/opencl/openclwrapper.cxx b/sc/source/core/opencl/openclwrapper.cxx index 7a8b2052f08d..2b2f8f75a672 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"; |