summaryrefslogtreecommitdiff
path: root/mail/panda-cclient/Makefile
diff options
context:
space:
mode:
authorDimitry Andric <dim@FreeBSD.org>2023-05-20 21:25:40 +0200
committerDimitry Andric <dim@FreeBSD.org>2023-05-21 16:47:58 +0200
commit7c711691b378bee218c41da6b803b655f2039d2d (patch)
treecbf6dfc37c139eb7d89fd49378d6d2850dbc9831 /mail/panda-cclient/Makefile
parentaudio/shairport-sync: Update to 4.2 (diff)
mail/panda-cclient: fix build with clang 16
Clang 16 has a new error about incompatible function types, which shows up when building mail/panda-cclient: news.c:370:36: error: incompatible function pointer types passing 'int (struct dirent *)' to parameter of type 'int (*)(const struct dirent *)' [-Wincompatible-function-pointer-types] if ((nmsgs = scandir (tmp,&names,news_select,news_numsort)) >= 0) { ^~~~~~~~~~~ /usr/include/dirent.h:127:12: note: passing argument to parameter here int (*)(const struct dirent *), int (*)(const struct dirent **, ^ news.c:370:48: error: incompatible function pointer types passing 'int (const void *, const void *)' to parameter of type 'int (*)(const struct dirent **, const struct dirent **)' [-Wincompatible-function-pointer-types] if ((nmsgs = scandir (tmp,&names,news_select,news_numsort)) >= 0) { ^~~~~~~~~~~~ /usr/include/dirent.h:127:44: note: passing argument to parameter here int (*)(const struct dirent *), int (*)(const struct dirent **, ^ This is because the prototypes for the scandir(3) 'select' and 'compar' callback function parameters do not match the declarations in <dirent.h>. The same occurs in a few other files under src/osdep/unix. Fix these by using the correct parameter types for the callback functions. PR: 271539 Approved by: thierry (maintainer) MFH: 2023Q2
Diffstat (limited to 'mail/panda-cclient/Makefile')
-rw-r--r--mail/panda-cclient/Makefile2
1 files changed, 1 insertions, 1 deletions
diff --git a/mail/panda-cclient/Makefile b/mail/panda-cclient/Makefile
index 87d9d5022b98..c81ce8b1ea75 100644
--- a/mail/panda-cclient/Makefile
+++ b/mail/panda-cclient/Makefile
@@ -1,6 +1,6 @@
PORTNAME= cclient
PORTVERSION= 20130621
-PORTREVISION= 2
+PORTREVISION= 3
CATEGORIES= mail devel
PKGNAMEPREFIX= panda-