Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 08 Dec 2022 20:56:06 +0000
From:      bugzilla-noreply@freebsd.org
To:        ports-bugs@FreeBSD.org
Subject:   [Bug 268256] japanese/canna-lib: fix build with clang 15
Message-ID:  <bug-268256-7788@https.bugs.freebsd.org/bugzilla/>

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

            Bug ID: 268256
           Summary: japanese/canna-lib: 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: hrs@FreeBSD.org
          Reporter: dim@FreeBSD.org
          Assignee: hrs@FreeBSD.org
             Flags: maintainer-feedback?(hrs@FreeBSD.org)

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

  crxgram.c:421:33: error: incompatible integer to pointer conversion passi=
ng
'int' to parameter of type 'char *' [-Wint-conversion]
                  alert("unknown operation %c", op);
                                                ^~
  rkc.c:2741:38: error: incompatible integer to pointer conversion passing
'int' to parameter of type 'unsigned char *' [-Wint-conversion]
    nkanji =3D _RkwGetSimpleKanji(cxnum, dicname, cbuf, len,
                                       ^~~~~~~

This is mostly expected as canna-lib is very old K&R code, and clang 15 has
-Wint-conversion as an error by default.

Pass -Wno-error=3Dint-conversion in CCOPTIONS to make the warning non-fatal=
. This
should work for both clang and gcc.

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