summaryrefslogtreecommitdiff
path: root/sc/source/core/opencl/opencl_device_selection.h
diff options
context:
space:
mode:
Diffstat (limited to 'sc/source/core/opencl/opencl_device_selection.h')
-rw-r--r--sc/source/core/opencl/opencl_device_selection.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/sc/source/core/opencl/opencl_device_selection.h b/sc/source/core/opencl/opencl_device_selection.h
index b4c60b9361e5..d6f775a49722 100644
--- a/sc/source/core/opencl/opencl_device_selection.h
+++ b/sc/source/core/opencl/opencl_device_selection.h
@@ -365,7 +365,8 @@ inline ds_status readProFile(const char* fileName, char** content, size_t* conte
{
return DS_FILE_ERROR;
}
- fread(binary, sizeof(char), size, input);
+ size_t bytesRead = fread(binary, sizeof(char), size, input);
+ (void) bytesRead; // avoid warning
fclose(input);
*contentSize = size;