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

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

            Bug ID: 268816
           Summary: japanese/FreeWnn-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/FreeWnn-lib failed to build with clang 15:

  js.c:1029:28: error: incompatible pointer to integer conversion returning
'void *' from a function with result type 'int' [-Wint-conversion]
    handler_of_jserver_dead (NULL);
                             ^~~~
  /usr/include/sys/_null.h:34:14: note: expanded from macro 'NULL'
  #define NULL    ((void *)0)
                  ^~~~~~~~~~~
  js.c:150:24: note: expanded from macro 'handler_of_jserver_dead'
                  return err_val; \
                         ^~~~~~~

This is because the js_disconnect() function should return an integer, not a
pointer. Use the error value -1 instead.

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