From cd7671812098bc07ce19e7b1b2b014b44f4ca58f Mon Sep 17 00:00:00 2001 From: Kaz Kylheku Date: Fri, 5 Jan 2024 20:24:21 -0800 Subject: sysif: unused parameter warning on solaris. * sysif.c (link_wrap_common): Cast the follow_link argument to void in the #else case to suppress warning. --- sysif.c | 1 + 1 file changed, 1 insertion(+) diff --git a/sysif.c b/sysif.c index 163e6afb..158d4595 100644 --- a/sysif.c +++ b/sysif.c @@ -968,6 +968,7 @@ static val link_wrap_common(val target, val to, val follow_link, val self) if3(follow_link, AT_SYMLINK_FOLLOW, 0)); #else int err = link(u8target, u8to); + (void) follow_link; #endif free(u8target); free(u8to); -- cgit v1.2.3