mirror of
https://github.com/tesseract-ocr/tesseract.git
synced 2024-11-24 02:59:07 +08:00
fix 2 clang warnings
This commit is contained in:
parent
cb049133cd
commit
d3065520fa
@ -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()
|
||||
|
@ -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)) {
|
||||
|
Loading…
Reference in New Issue
Block a user