[Bug 268816] japanese/FreeWnn-lib: fix build with clang 15
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Sat, 07 Jan 2023 16:08:03 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=268816 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. -- You are receiving this mail because: You are the assignee for the bug.