diff options
author | Cy Schubert <cy@FreeBSD.org> | 2023-06-26 00:50:15 +0000 |
---|---|---|
committer | Cy Schubert <cy@FreeBSD.org> | 2023-06-29 13:31:13 +0000 |
commit | a25643e42a7b0a9245619ad3fb7a853a2b25c32e (patch) | |
tree | 2e2f84f93e4affc341ee6841e9248526fa584848 | |
parent | 3eb0b5858bd0a358b39ab8fc4d96f68d395b512b (diff) | |
download | ports-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.c | 11 |
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]) |