Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix some compiler warnings #4246

Merged
merged 2 commits into from
May 20, 2024
Merged

Fix some compiler warnings #4246

merged 2 commits into from
May 20, 2024

Conversation

stweil
Copy link
Contributor

@stweil stweil commented May 20, 2024

No description provided.

Signed-off-by: Stefan Weil <sw@weilnetz.de>
Signed-off-by: Stefan Weil <sw@weilnetz.de>
@stweil stweil merged commit 5d5a633 into tesseract-ocr:main May 20, 2024
7 checks passed
@stweil stweil deleted the warnings branch May 20, 2024 10:50
@@ -230,12 +230,20 @@ bool PangoFontInfo::CoversUTF8Text(const char *utf8_text, int byte_length) const
int len = it.get_utf8(tmp);
tmp[len] = '\0';
tlog(2, "'%s' (U+%x) not covered by font\n", tmp, *it);
#if PANGO_VERSION_CHECK(1, 52, 0)
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

https://github.com/GNOME/pango/blob/1.44/NEWS#L5

Overview of changes in .44.0

...

  • Make PangoCoverage a GObject

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for looking this up. So the check could be modified to check for 1.44.0. Since 1.52.0 pango_coverage_unref is marked as deprecated and causes a compiler warning.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants