From 095b361404c5f174fa1cf737753a450542d9f1c3 Mon Sep 17 00:00:00 2001 From: raveit65 Date: Wed, 31 Jan 2024 11:47:29 +0100 Subject: fix a incompatible pointer type warning for gcc14 * fix a incompatible pointer type warning for gcc14 Co-authored-by: Colomban Wendling --- backend/epub/epub-document.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/backend/epub/epub-document.c b/backend/epub/epub-document.c index d3fdf586..1a9cc669 100644 --- a/backend/epub/epub-document.c +++ b/backend/epub/epub-document.c @@ -632,7 +632,7 @@ check_mime_type(const gchar* uri,GError** error) const gchar* mimetypes[] = {"application/epub+zip", "application/x-booki+zip", NULL}; guint i; - for (i = 0; i < g_strv_length (mimetypes); i++) { + for (i = 0; mimetypes[i]; i++) { if (strcmp(mimeFromFile, mimetypes[i]) == 0) return TRUE; } @@ -643,7 +643,7 @@ check_mime_type(const gchar* uri,GError** error) mimeFromFile = ev_file_get_mime_type (uri, TRUE, &err); if (mimeFromFile) { - for (i = 0; i < g_strv_length (mimetypes); i++) { + for (i = 0; i < g_strv_length ((gchar**) mimetypes); i++) { if (g_strcmp0(mimeFromFile, mimetypes[i]) == 0) return TRUE; } -- cgit v1.2.1