Skip to content

Commit f67381a

Browse files
committed
opencl: Fix compiler warning [-Wwrite-strings]
gcc report: opencl/openclwrapper.cpp:3245:22: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings] Signed-off-by: Stefan Weil <[email protected]>
1 parent bccf1c1 commit f67381a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

opencl/openclwrapper.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -3243,7 +3243,7 @@ PERF_COUNT_START("getDeviceSelection")
32433243
status = initDSProfile( &profile, "v0.1" );
32443244
PERF_COUNT_SUB("initDSProfile")
32453245
// try reading scores from file
3246-
char *fileName = "tesseract_opencl_profile_devices.dat";
3246+
const char *fileName = "tesseract_opencl_profile_devices.dat";
32473247
status = readProfileFromFile( profile, deserializeScore, fileName);
32483248
if (status != DS_SUCCESS) {
32493249
// need to run evaluation

0 commit comments

Comments
 (0)