From 9938e8d3f4a30dea3611d2a87ab43bd3487892af Mon Sep 17 00:00:00 2001 From: Werner Koch Date: Wed, 10 Jan 2024 17:21:32 +0100 Subject: common: Fix unused variable warning on Unix. -- --- common/homedir.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/common/homedir.c b/common/homedir.c index fb2640d67..0a8e55fe1 100644 --- a/common/homedir.c +++ b/common/homedir.c @@ -176,8 +176,11 @@ static char * copy_dir_with_fixup (const char *newdir) { char *result = NULL; - char *p, *p0; + char *p; +#ifdef HAVE_W32_SYSTEM + char *p0; const char *s; +#endif if (!*newdir) return NULL; -- cgit v1.2.3