Skip to content

Commit

Permalink
fix 2 clang warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
zdenop committed Dec 30, 2018
1 parent cb04913 commit d306552
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down
2 changes: 1 addition & 1 deletion src/api/baseapi.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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)) {
Expand Down

0 comments on commit d306552

Please sign in to comment.