Opened 8 weeks ago

#74203 new defect

notmuch @0.38.3: error: incompatible function pointer types passing 'int (*)(const struct dirent **, const struct dirent **)' to parameter of type 'int (*)(const void *, const void *)' [-Wincompatible-function-pointer-types]

Reported by: ryandesign (Ryan Carsten Schmidt) Owned by:
Priority: Normal Milestone:
Component: ports Version: 2.12.5
Keywords: leopard snowleopard lion Cc:
Port: notmuch

Description

The build fails on Lion and earlier:

https://build.macports.org/builders/ports-10.7_x86_64-builder/builds/258714/steps/install-port/logs/stdio

notmuch-new.c:559:10: error: incompatible function pointer types passing 'int (*)(const struct dirent **, const struct dirent **)' to parameter of type 'int (*)(const void *, const void *)' [-Wincompatible-function-pointer-types]
                              directory ?
                              ^~~~~~~~~~~
/usr/include/dirent.h:129:37: note: passing argument to parameter here
    int (*)(struct dirent *), int (*)(const void *, const void *)) __DARWIN_INODE64(scandir);
                                    ^
notmuch-new.c:858:57: error: incompatible function pointer types passing 'int (const struct dirent **, const struct dirent **)' to parameter of type 'int (*)(const void *, const void *)' [-Wincompatible-function-pointer-types]
    int num_fs_entries = scandir (path, &fs_entries, 0, dirent_sort_inode);
                                                        ^~~~~~~~~~~~~~~~~
/usr/include/dirent.h:129:37: note: passing argument to parameter here
    int (*)(struct dirent *), int (*)(const void *, const void *)) __DARWIN_INODE64(scandir);
                                    ^
2 errors generated.
make: *** [notmuch-new.o] Error 1
make: *** Waiting for unfinished jobs....

Change History (0)

Note: See TracTickets for help on using tickets.