Date: Mon, 26 Jun 2023 00:51:11 GMT From: Cy Schubert <cy@FreeBSD.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org Subject: git: 2db895874954 - main - deskutils/plan: Fix LLVM16 build Message-ID: <202306260051.35Q0pBXX067317@gitrepo.freebsd.org>
next in thread | raw e-mail | index | archive | help
The branch main has been updated by cy: URL: https://cgit.FreeBSD.org/ports/commit/?id=2db8958749548677ec7b28cb449a44c6401548ec commit 2db8958749548677ec7b28cb449a44c6401548ec Author: Cy Schubert <cy@FreeBSD.org> AuthorDate: 2023-06-26 00:50:15 +0000 Commit: Cy Schubert <cy@FreeBSD.org> CommitDate: 2023-06-26 00:51:05 +0000 deskutils/plan: Fix LLVM16 build Fix the following LLVM16 error: main.c:126:9: error: incompatible function pointer types passing 'void (int)' to parameter of type 'void (* _Nonnull)(void)' [-Wincompatible-function-pointer-types] atexit(plan_exit); ^~~~~~~~~ /usr/include/stdlib.h:92:29: note: passing argument to parameter here int atexit(void (* _Nonnull)(void)); ^ MFH: 2023Q2 --- deskutils/plan/files/patch-main.c | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/deskutils/plan/files/patch-main.c b/deskutils/plan/files/patch-main.c new file mode 100644 index 000000000000..2a72efc4132d --- /dev/null +++ b/deskutils/plan/files/patch-main.c @@ -0,0 +1,11 @@ +--- main.c.orig 2017-10-17 00:54:07.000000000 -0700 ++++ main.c 2023-06-25 17:47:19.371176000 -0700 +@@ -123,7 +123,7 @@ + XGCValues gcval; + + #ifdef __FreeBSD__ +- atexit(plan_exit); ++ atexit((void *)plan_exit); + #endif + interactive = FALSE; + if ((progname = strrchr(argv[0], '/')) && progname[1])
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202306260051.35Q0pBXX067317>