mirror of
https://github.com/tesseract-ocr/tesseract.git
synced 2025-01-19 15:03:45 +08:00
ignore #pragma optimize for clang-cl
This commit is contained in:
parent
3d5b1b626a
commit
51a8c08b3e
@ -750,7 +750,7 @@ void TextlineProjection::TransformToPixCoords(const DENORM* denorm,
|
||||
pt->y = ImageYToProjectionY(pt->y);
|
||||
}
|
||||
|
||||
#ifdef _MSC_VER
|
||||
#if defined(_MSC_VER) && !defined(__clang__)
|
||||
#pragma optimize("g", off)
|
||||
#endif // _MSC_VER
|
||||
// Helper truncates the TPOINT to be within the pix_.
|
||||
@ -758,7 +758,7 @@ void TextlineProjection::TruncateToImageBounds(TPOINT* pt) const {
|
||||
pt->x = ClipToRange<int>(pt->x, 0, pixGetWidth(pix_) - 1);
|
||||
pt->y = ClipToRange<int>(pt->y, 0, pixGetHeight(pix_) - 1);
|
||||
}
|
||||
#ifdef _MSC_VER
|
||||
#if defined(_MSC_VER) && !defined(__clang__)
|
||||
#pragma optimize("", on)
|
||||
#endif // _MSC_VER
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user