aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorWerner Koch <[email protected]>2024-01-10 16:21:32 +0000
committerWerner Koch <[email protected]>2024-01-10 16:21:32 +0000
commit9938e8d3f4a30dea3611d2a87ab43bd3487892af (patch)
treed2b1c4127c4876288b86a64aadcb977eeb3e0db6
parentgpg: Allow to create revocations even with non-compliant algos. (diff)
downloadgnupg-9938e8d3f4a30dea3611d2a87ab43bd3487892af.tar.gz
gnupg-9938e8d3f4a30dea3611d2a87ab43bd3487892af.zip
common: Fix unused variable warning on Unix.
--
-rw-r--r--common/homedir.c5
1 files changed, 4 insertions, 1 deletions
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;