tesseract/opencl
James R. Barlow 8d5abff34a Fix various clang compilation errors
Also fixed a writable strings warning/error.
warning: ISO C++11 does not allow conversion from
      string literal to 'char *' [-Wwritable-strings]

Several were of this form and fixed as the compiler suggested:
openclwrapper.cpp:2411:33: error: non-constant-expression cannot be narrowed
      from type 'int' to 'size_t' (aka 'unsigned long') in initializer list
      [-Wc++11-narrowing]
    size_t local_work_size[] = {block_size};
                                ^~~~~~~~~~
openclwrapper.cpp:2411:33: note: insert an explicit cast to silence this issue
    size_t local_work_size[] = {block_size};
                                ^~~~~~~~~~
                                static_cast<size_t>( )

Should have low impact on other platforms/compilers. The change makes
the code more correct.
2016-02-05 10:47:04 +01:00
..
Makefile.am Fix missing "allheaders.h" when compiling with --enable-opencl on OS X 2016-02-05 10:46:56 +01:00
Makefile.in temporary add configure and Makefile.in for release 2015-07-11 09:42:43 +02:00
oclkernels.h Fixes for OpenCL issues reported on Apple Mac. Still get -54 on Apple Mac while running on OpenCL CPU, however it is ignored now. 2016-02-05 10:45:07 +01:00
opencl_device_selection.h Fixes for OpenCL issues reported on Apple Mac. Still get -54 on Apple Mac while running on OpenCL CPU, however it is ignored now. 2016-02-05 10:45:07 +01:00
openclwrapper.cpp Fix various clang compilation errors 2016-02-05 10:47:04 +01:00
openclwrapper.h Fixes for OpenCL issues reported on Apple Mac. Still get -54 on Apple Mac while running on OpenCL CPU, however it is ignored now. 2016-02-05 10:45:07 +01:00