[Bug 268815] japanese/kakasi: fix build with clang 15

From: <bugzilla-noreply_at_freebsd.org>
Date: Sat, 07 Jan 2023 15:56:20 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=268815

            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 = -1;
                   ^ ~~
  kanjiio.c:1087:9: error: incompatible integer to pointer conversion assigning
to 'iconv_t' (aka 'struct __tag_iconv_t *') from 'int' [-Wint-conversion]
          toutf8 = -1;
                 ^ ~~

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

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