Skip to content

Commit

Permalink
opencl: Fix compiler warning [-Wwrite-strings]
Browse files Browse the repository at this point in the history
gcc report:

opencl/openclwrapper.cpp:3245:22: warning:
 deprecated conversion from string constant to 'char*' [-Wwrite-strings]

Signed-off-by: Stefan Weil <sw@weilnetz.de>
  • Loading branch information
stweil committed Oct 28, 2016
1 parent bccf1c1 commit f67381a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion opencl/openclwrapper.cpp
Expand Up @@ -3243,7 +3243,7 @@ PERF_COUNT_START("getDeviceSelection")
status = initDSProfile( &profile, "v0.1" );
PERF_COUNT_SUB("initDSProfile")
// try reading scores from file
char *fileName = "tesseract_opencl_profile_devices.dat";
const char *fileName = "tesseract_opencl_profile_devices.dat";
status = readProfileFromFile( profile, deserializeScore, fileName);
if (status != DS_SUCCESS) {
// need to run evaluation
Expand Down

0 comments on commit f67381a

Please sign in to comment.