aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCy Schubert <cy@FreeBSD.org>2023-06-26 00:50:15 +0000
committerCy Schubert <cy@FreeBSD.org>2023-06-29 13:31:13 +0000
commita25643e42a7b0a9245619ad3fb7a853a2b25c32e (patch)
tree2e2f84f93e4affc341ee6841e9248526fa584848
parent3eb0b5858bd0a358b39ab8fc4d96f68d395b512b (diff)
downloadports-a25643e42a7b0a9245619ad3fb7a853a2b25c32e.tar.gz
ports-a25643e42a7b0a9245619ad3fb7a853a2b25c32e.zip
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)
-rw-r--r--deskutils/plan/files/patch-main.c11
1 files changed, 11 insertions, 0 deletions
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])