summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKaz Kylheku <kaz@kylheku.com>2024-01-05 20:24:21 -0800
committerKaz Kylheku <kaz@kylheku.com>2024-01-05 20:24:21 -0800
commitcd7671812098bc07ce19e7b1b2b014b44f4ca58f (patch)
treeb41f82e673ed4c0f5be4d1335294f64ead3644ff
parent21cbb5fc5ac9015018134d3800dc093bb9bce004 (diff)
downloadtxr-cd7671812098bc07ce19e7b1b2b014b44f4ca58f.tar.gz
txr-cd7671812098bc07ce19e7b1b2b014b44f4ca58f.tar.bz2
txr-cd7671812098bc07ce19e7b1b2b014b44f4ca58f.zip
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.
-rw-r--r--sysif.c1
1 files changed, 1 insertions, 0 deletions
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);