mirror of
https://github.com/tesseract-ocr/tesseract.git
synced 2024-11-28 05:39:35 +08:00
Merge pull request #2039 from chrismamo1/chore/cleanup-compiler-warnings
fix a couple minor compiler warnings
This commit is contained in:
commit
f4a34e6ddf
@ -410,7 +410,6 @@ void DENORM::DenormTransform(const DENORM* last_denorm, const FCOORD& pt,
|
||||
// Normalize a blob using blob transformations. Less accurate, but
|
||||
// more accurately copies the old way.
|
||||
void DENORM::LocalNormBlob(TBLOB* blob) const {
|
||||
TBOX blob_box = blob->bounding_box();
|
||||
ICOORD translation(-IntCastRounded(x_origin_), -IntCastRounded(y_origin_));
|
||||
blob->Move(translation);
|
||||
if (y_scale_ != 1.0f)
|
||||
|
@ -983,7 +983,7 @@ template <typename T>
|
||||
bool GenericVector<T>::SkipDeSerialize(tesseract::TFile* fp) {
|
||||
uint32_t reserved;
|
||||
if (fp->FReadEndian(&reserved, sizeof(reserved), 1) != 1) return false;
|
||||
return fp->FRead(nullptr, sizeof(T), reserved) == reserved;
|
||||
return (uint32_t)fp->FRead(nullptr, sizeof(T), reserved) == reserved;
|
||||
}
|
||||
|
||||
// Writes a vector of classes to the given file. Assumes the existence of
|
||||
|
@ -1153,7 +1153,6 @@ bool ColPartition::MarkAsLeaderIfMonospaced() {
|
||||
bool modified_blob_list = false;
|
||||
for (it.mark_cycle_pt(); !it.cycled_list(); it.forward()) {
|
||||
BLOBNBOX* blob = it.data();
|
||||
TBOX box = blob->bounding_box();
|
||||
// If the first or last blob is spaced too much, don't mark it.
|
||||
if (it.at_first()) {
|
||||
int gap = it.data_relative(1)->bounding_box().left() -
|
||||
|
Loading…
Reference in New Issue
Block a user