From 8408e5f5e64e01630b64304db8971e074ab0b25a Mon Sep 17 00:00:00 2001 From: Sebastian Pipping Date: Mon, 20 Nov 2023 17:12:15 +0100 Subject: bindfs.c: Address warning -Wsign-compare Symptom with Apple GCC: > bindfs.c:1677:26: error: comparison of integers of different signs: 'size_t' (aka 'unsigned long') and 'ssize_t' (aka 'long') [-Werror,-Wsign-compare] > } while (len < res); > ~~~ ^ ~~~ --- src/bindfs.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/bindfs.c b/src/bindfs.c index 5f52395..033e3a4 100644 --- a/src/bindfs.c +++ b/src/bindfs.c @@ -1674,7 +1674,7 @@ static int bindfs_listxattr(const char *path, char* list, size_t size) } curr += thislen; len += thislen; - } while (len < res); + } while (len < (size_t)res); } else { // TODO: https://github.com/osxfuse/fuse/blob/master/example/fusexmp_fh.c // had this commented out bit here o_O -- cgit v1.2.3