[MacPorts] #71931: geany build fails when building with gcc-14 on 10.6: portable-scandir.c: error: conflicting types for 'scandir'
MacPorts
noreply at macports.org
Mon Jan 27 02:13:54 UTC 2025
#71931: geany build fails when building with gcc-14 on 10.6: portable-scandir.c:
error: conflicting types for 'scandir'
---------------------------+----------------------------------
Reporter: barracuda156 | Owner: (none)
Type: defect | Status: new
Priority: Normal | Milestone:
Component: ports | Version: 2.10.5
Resolution: | Keywords: snowleopard, leopard
Port: geany |
---------------------------+----------------------------------
Comment (by barracuda156):
Here is the log from Intel buildbot for `universal-ctags` (which is where
this code comes from):
https://build.macports.org/builders/ports-10.7_x86_64-builder/builds/212887/steps
/install-port/logs/stdio
{{{
CC main/libctags_a-portable-scandir.o
main/portable-scandir.c:238:49: warning: incompatible pointer types
passing 'int (*)(const struct dirent *)' to parameter of type 'int
(*)(struct dirent *)' [-Wincompatible-pointer-types]
return scandir (directory_name, array_pointer, select_function,
compare_function);
^~~~~~~~~~~~~~~
/usr/include/dirent.h:129:11: note: passing argument to parameter here
int (*)(struct dirent *), int (*)(const void *, const void *))
__DARWIN_INODE64(scandir);
^
main/portable-scandir.c:238:66: warning: incompatible pointer types
passing 'int (*)(const struct dirent **, const struct dirent **)' to
parameter of type 'int (*)(const void *, const void *)' [-Wincompatible-
pointer-types]
return scandir (directory_name, array_pointer, select_function,
compare_function);
^~~~~~~~~~~~~~~~
/usr/include/dirent.h:129:37: note: passing argument to parameter here
int (*)(struct dirent *), int (*)(const void *, const void *))
__DARWIN_INODE64(scandir);
^
2 warnings generated.
}}}
--
Ticket URL: <https://trac.macports.org/ticket/71931#comment:7>
MacPorts <https://www.macports.org/>
Ports system for macOS
More information about the macports-tickets
mailing list