From 7d2de8d403d11ce9502d4dd3dbe49d63489e3271 Mon Sep 17 00:00:00 2001 From: David Cantrell Date: Thu, 9 Jun 2022 19:13:01 +0100 Subject: [PATCH] change the default comparison method on Mac OS to suppress a warning that's going to fall back to memcmp --- misc-utils/hardlink.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/misc-utils/hardlink.c b/misc-utils/hardlink.c index 5c3cfd64d8..b1eefb9e48 100644 --- a/misc-utils/hardlink.c +++ b/misc-utils/hardlink.c @@ -186,7 +186,11 @@ static struct options { size_t cache_size; } opts = { /* default setting */ +#ifdef __APPLE__ + .method = "memcmp", +#else .method = "sha256", +#endif .respect_mode = TRUE, .respect_owner = TRUE, .respect_time = TRUE, -- 2.47.2