Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 07 Jan 2023 15:56:20 +0000
From:      bugzilla-noreply@freebsd.org
To:        ports-bugs@FreeBSD.org
Subject:   [Bug 268815] japanese/kakasi: fix build with clang 15
Message-ID:  <bug-268815-7788@https.bugs.freebsd.org/bugzilla/>

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

            Bug ID: 268815
           Summary: japanese/kakasi: fix build with clang 15
           Product: Ports & Packages
           Version: Latest
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Some People
          Priority: ---
         Component: Individual Port(s)
          Assignee: ports-bugs@FreeBSD.org
          Reporter: dim@FreeBSD.org
                CC: ota@j.email.ne.jp
                CC: ota@j.email.ne.jp
             Flags: maintainer-feedback?(ota@j.email.ne.jp)

During an exp-run for llvm 15 (see bug 265425), it turned out that
japanese/kakasi failed to build with clang 15:

  kanjiio.c:1083:11: error: incompatible integer to pointer conversion
assigning to 'iconv_t' (aka 'struct __tag_iconv_t *') from 'int'
[-Wint-conversion]
          fromutf8 =3D -1;
                   ^ ~~
  kanjiio.c:1087:9: error: incompatible integer to pointer conversion assig=
ning
to 'iconv_t' (aka 'struct __tag_iconv_t *') from 'int' [-Wint-conversion]
          toutf8 =3D -1;
                 ^ ~~

This is because 'fromutf8' and 'toutf8' are of pointer type, not int. Add a
cast to silence the warning.

--=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-268815-7788>