diff --git a/CMakeLists.txt b/CMakeLists.txt index 442ad9ef..65aefdfc 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -71,10 +71,10 @@ endif() if (WIN32) if (MSVC) add_definitions(-D_CRT_SECURE_NO_WARNINGS) - add_definitions(-DNOMINMAX) if (CLANG) set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Xclang -fopenmp /utf-8") else() + add_definitions(-DNOMINMAX) set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} /MP /openmp /utf-8") endif() endif() diff --git a/src/api/baseapi.cpp b/src/api/baseapi.cpp index 99f3ac07..c8e83fd0 100644 --- a/src/api/baseapi.cpp +++ b/src/api/baseapi.cpp @@ -1988,7 +1988,7 @@ bool TessBaseAPI::Threshold(Pix** pix) { pixDestroy(pix); // Zero resolution messes up the algorithms, so make sure it is credible. int user_dpi = 0; - bool a = GetIntVariable("user_defined_dpi", &user_dpi); + GetIntVariable("user_defined_dpi", &user_dpi); int y_res = thresholder_->GetScaledYResolution(); if (user_dpi && (user_dpi < kMinCredibleResolution || user_dpi > kMaxCredibleResolution)) {