Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 29 May 2023 16:45:42 +0000
From:      bugzilla-noreply@freebsd.org
To:        ports-bugs@FreeBSD.org
Subject:   [Bug 271709] x11-toolkits/pangox-compat: fix build with clang 16
Message-ID:  <bug-271709-7788@https.bugs.freebsd.org/bugzilla/>

next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D271709

            Bug ID: 271709
           Summary: x11-toolkits/pangox-compat: fix build with clang 16
           Product: Ports & Packages
           Version: Latest
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Some People
          Priority: ---
         Component: Individual Port(s)
          Assignee: gnome@FreeBSD.org
          Reporter: dim@FreeBSD.org
             Flags: maintainer-feedback?(gnome@FreeBSD.org)
          Assignee: gnome@FreeBSD.org

Clang 16 has a new error about incompatible function types, which shows
up when building x11-toolkits/pangox-compat:

basic-x.c:687:23: error: incompatible function pointer types assigning to '=
void
(*)(PangoEngineShape *, PangoFont *, const char *, unsigned int, const
PangoAnalysis *, PangoGlyphString *, const char *, unsigned int)' (aka 'void
(*)(struct _PangoEngineShape *, struct _PangoFont *, const char *, unsigned
int, const struct _PangoAnalysis *, struct _PangoGlyphString *, const char =
*,
unsigned int)') from 'void (PangoEngineShape *, PangoFont *, const char *,
gint, const PangoAnalysis *, PangoGlyphString *)' (aka 'void (struct
_PangoEngineShape *, struct _PangoFont *, const char *, int, const struct
_PangoAnalysis *, struct _PangoGlyphString *)')
[-Wincompatible-function-pointer-types]
  class->script_shape =3D basic_engine_shape;
                      ^ ~~~~~~~~~~~~~~~~~~

This is because the 'script_shape' callback function in pango 1.50 has
the 'length' argument as 'unsigned int', and also two additional
parameters 'paragraph_text' and 'paragraph_length'. Even though it looks
like this callback function is never used, correct the arguments to fix
the error.

--=20
You are receiving this mail because:
You are the assignee for the bug.=



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-271709-7788>