-
Notifications
You must be signed in to change notification settings - Fork 27
Open
Description
GCC-14, by default, drops support for features of C that were invalidated in C99 and C89. See Gentoo article on changes
gftp currently fails to compile with error equivalent to default GCC-14 enabled:
clang -DHAVE_CONFIG_H -I. -I.. -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -DSHARE_DIR=\"/usr/share/gftp\" -DLOCALE_DIR=\"/usr/share/locale\" -O2 -pipe -Werror=implicit-function-declaration -Werror=implicit-int -Werror=int-conversion -Werror=incompatible-pointer-types -Wno-incompatible-pointer-types-discards-qualifiers -c -o socket-connect.o socket-connect.c
socket-connect.c:399:31: error: incompatible pointer types passing 'size_t *' (aka 'unsigned long *') to parameter of type 'socklen_t *' (aka 'unsigned int *')
[-Werror,-Wincompatible-pointer-types]
399 | newfd = accept (*fd, saddr, &request->remote_addr_len);
| ^~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/sys/socket.h:388:68: note: passing argument to parameter here
388 | int accept (int, struct sockaddr *__restrict, socklen_t *__restrict);
| ^
Metadata
Metadata
Assignees
Labels
No labels