aboutsummaryrefslogtreecommitdiffstats
path: root/agent/gpg-agent.c
diff options
context:
space:
mode:
authorWerner Koch <[email protected]>2015-11-27 16:53:52 +0000
committerWerner Koch <[email protected]>2015-11-27 17:32:26 +0000
commit022342e2845834ec35269d23491e9fa573d5c028 (patch)
tree0331f4867ac25b55a1ba350adef194d84abd008c /agent/gpg-agent.c
parentAvoid incompatible pointer assignment warnings on Windows. (diff)
downloadgnupg-022342e2845834ec35269d23491e9fa573d5c028.tar.gz
gnupg-022342e2845834ec35269d23491e9fa573d5c028.zip
Silence unused variable or parameter warnings.
--
Diffstat (limited to '')
-rw-r--r--agent/gpg-agent.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/agent/gpg-agent.c b/agent/gpg-agent.c
index 3a5abbba4..04b03d390 100644
--- a/agent/gpg-agent.c
+++ b/agent/gpg-agent.c
@@ -1178,7 +1178,9 @@ main (int argc, char **argv )
gnupg_fd_t fd_extra = GNUPG_INVALID_FD;
gnupg_fd_t fd_browser = GNUPG_INVALID_FD;
gnupg_fd_t fd_ssh = GNUPG_INVALID_FD;
+#ifndef HAVE_W32_SYSTEM
pid_t pid;
+#endif
/* Remove the DISPLAY variable so that a pinentry does not
default to a specific display. There is still a default
@@ -1237,7 +1239,6 @@ main (int argc, char **argv )
#ifdef HAVE_W32_SYSTEM
(void)csh_style;
(void)nodetach;
- pid = getpid ();
#else /*!HAVE_W32_SYSTEM*/
pid = fork ();
if (pid == (pid_t)-1)