[notmuch] [PATCH] notmuch-new: Eliminate gcc warning caused by ino_cmp.

Carl Worth cworth at cworth.org
Sun Nov 22 18:38:25 PST 2009

On Sun, 22 Nov 2009 13:32:36 +0100, Jan Janak <jan at ryngle.com> wrote:
> The function passed to scandir in the fourth argument takes two
> const void* arguments. To eliminate the gcc warning about incompatible
> types, we change ino_cmp to match this and then re-type the parameters
> in the body of ino_cmp.

Actually, on my system at least, (Linux with glibc 2.10.1), our current
function matches the prototype. So applying your patch actually
*introduces* a warning where there was no warning before.

What a nuisance...

Any ideas for a good fix, anyone?


More information about the notmuch mailing list