-
Notifications
You must be signed in to change notification settings - Fork 32
Open
Description
Error from colleague compiling on Fedora 41
gcc -DUNDERSCORE -DLinux -I/home/gempak/GEMPAK7/gempak/include -I/home/gempak/GEMPAK7/os/linux64/include -I/usr/X11R6/include -DG_64BIT -g -O2 -fPIC -c cflscandir.c
cflscandir.c: In function ‘cfl_scandir’:
cflscandir.c:82:61: error: passing argument 4 of ‘scandir’ from incompatible pointer type [-Wincompatible-pointer-types]
82 | n_entries = scandir(_cflrdirPath, namelist, filter, compar);
| ^~~~~~
| |
| int (*)(const void *, const void *)
In file included from /home/gempak/GEMPAK7/gempak/include/geminc.h:24,
from cflscandir.c:1:
/usr/include/dirent.h:260:27: note: expected ‘int (*)(const struct dirent **, const struct dirent **)’ but argument is of type ‘int (*)(const void *, const void *)’
260 | int (*__cmp) (const struct dirent **,
| ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
261 | const struct dirent **))
| ~~~~~~~~~~~~~~~~~~~~~~~
make[4]: *** [Makefile:52: /home/gempak/GEMPAK7/os/linux64/lib/cgemlib.a(cflscandir.o)] Error 1
make[4]: Leaving directory '/home/gempak/GEMPAK7/gempak/source/gemlib/cfl'
Making all in /home/gempak/GEMPAK7/gempak/source/gemlib/ctb
make[4]: Entering directory '/home/gempak/GEMPAK7/gempak/source/gemlib/ctb'
Metadata
Metadata
Assignees
Labels
No labels