On Wed, 03 Jul 2024 12:22:26 +0000 Matthias Klose <d...@debian.org> wrote: > The package fails to build in a test rebuild on at least amd64 with > gcc-14/g++-14, but succeeds to build with gcc-13/g++-13. The > severity of this report will be raised before the trixie release. > > [...] > > epub-document.c: In function ‘check_mime_type’: > epub-document.c:635:40: error: passing argument 1 of ‘g_strv_length’ from > incompatible pointer type [-Wincompatible-pointer-types] > 635 | for (i = 0; i < g_strv_length (mimetypes); i++) { > | ^~~~~~~~~ > | | > | const gchar ** {aka const char > **} > In file included from /usr/include/glib-2.0/glib/gstring.h:37, > from /usr/include/glib-2.0/glib/giochannel.h:36, > from /usr/include/glib-2.0/glib.h:56, > from /usr/include/glib-2.0/glib/gi18n-lib.h:23: > /usr/include/glib-2.0/glib/gstrfuncs.h:383:55: note: expected ‘gchar **’ {aka > ‘char **’} but argument is of type ‘const gchar **’ {aka ‘const char **’} > 383 | guint g_strv_length (gchar **str_array); > | ~~~~~~~~~~~~~~^~~~~~~~~ > epub-document.c:646:48: error: passing argument 1 of ‘g_strv_length’ from > incompatible pointer type [-Wincompatible-pointer-types] > 646 | for (i = 0; i < g_strv_length (mimetypes); i++) { > | ^~~~~~~~~ > | | > | const gchar ** {aka > const char **} > /usr/include/glib-2.0/glib/gstrfuncs.h:383:55: note: expected ‘gchar **’ {aka > ‘char **’} but argument is of type ‘const gchar **’ {aka ‘const char **’} > 383 | guint g_strv_length (gchar **str_array); > | ~~~~~~~~~~~~~~^~~~~~~~~
This is fixed upstream in version 1.27.1, first in a GitHub pull request [1] and later in a separate commit [2]. (The second instance of the error is fixed using a different approach although I'd argue it makes more sense to use the same approach as for the first errror.) Philip Chung [1] https://github.com/mate-desktop/atril/pull/604 [2] https://github.com/mate-desktop/atril/commit/6d37d813914c5a466b0859348cce4d64781b2a