Skip to content

Commit d306552

Browse files
committed
fix 2 clang warnings
1 parent cb04913 commit d306552

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

CMakeLists.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -71,10 +71,10 @@ endif()
7171
if (WIN32)
7272
if (MSVC)
7373
add_definitions(-D_CRT_SECURE_NO_WARNINGS)
74-
add_definitions(-DNOMINMAX)
7574
if (CLANG)
7675
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Xclang -fopenmp /utf-8")
7776
else()
77+
add_definitions(-DNOMINMAX)
7878
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} /MP /openmp /utf-8")
7979
endif()
8080
endif()

src/api/baseapi.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -1988,7 +1988,7 @@ bool TessBaseAPI::Threshold(Pix** pix) {
19881988
pixDestroy(pix);
19891989
// Zero resolution messes up the algorithms, so make sure it is credible.
19901990
int user_dpi = 0;
1991-
bool a = GetIntVariable("user_defined_dpi", &user_dpi);
1991+
GetIntVariable("user_defined_dpi", &user_dpi);
19921992
int y_res = thresholder_->GetScaledYResolution();
19931993
if (user_dpi && (user_dpi < kMinCredibleResolution ||
19941994
user_dpi > kMaxCredibleResolution)) {

0 commit comments

Comments
 (0)