From 3b3f1dc76e6dc06f72361cc7f5a597bbfc8bdf7e Mon Sep 17 00:00:00 2001 From: Baptiste Daroussin Date: Sat, 7 Jan 2017 17:57:37 +0100 Subject: [PATCH] Fix gcc warnings --- libpkgconf/path.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libpkgconf/path.c b/libpkgconf/path.c index beaacbc..60950bd 100644 --- a/libpkgconf/path.c +++ b/libpkgconf/path.c @@ -35,7 +35,7 @@ path_list_contains_entry(const char *text, pkgconf_list_t *dirlist) pkgconf_path_t *pn = n->data; #ifdef PKGCONF_CACHE_INODES - if (((dev_t) pn->handle_device) == st->st_dev && ((ino_t) pn->handle_path) == st->st_ino) + if (pn->handle_device == (void *)(intptr_t)st->st_dev && pn->handle_path == (void *)(intptr_t)st->st_ino) return true; #endif