Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 29 Jun 2023 13:32:23 GMT
From:      Cy Schubert <cy@FreeBSD.org>
To:        ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-branches@FreeBSD.org
Subject:   git: a25643e42a7b - 2023Q2 - deskutils/plan: Fix LLVM16 build
Message-ID:  <202306291332.35TDWN6s003748@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch 2023Q2 has been updated by cy:

URL: https://cgit.FreeBSD.org/ports/commit/?id=a25643e42a7b0a9245619ad3fb7a853a2b25c32e

commit a25643e42a7b0a9245619ad3fb7a853a2b25c32e
Author:     Cy Schubert <cy@FreeBSD.org>
AuthorDate: 2023-06-26 00:50:15 +0000
Commit:     Cy Schubert <cy@FreeBSD.org>
CommitDate: 2023-06-29 13:31:13 +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
    (cherry picked from commit 2db8958749548677ec7b28cb449a44c6401548ec)
---
 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?202306291332.35TDWN6s003748>