summaryrefslogtreecommitdiffstats
path: root/sm
diff options
context:
space:
mode:
authorWerner Koch <wk@gnupg.org>2014-03-07 09:46:44 +0100
committerWerner Koch <wk@gnupg.org>2014-03-07 16:11:15 +0100
commit094aa2589e3920d400be93ae2823a6c4b23db623 (patch)
tree9e00935c719c1625eeb10b2da6e03b24801d25d1 /sm
parentw32: Fix a potential problem in gpgconf's gettext. (diff)
downloadgnupg2-094aa2589e3920d400be93ae2823a6c4b23db623.tar.xz
gnupg2-094aa2589e3920d400be93ae2823a6c4b23db623.zip
w32: Silence warnings about unused vars.
* agent/gpg-agent.c (main) [W32]: Mark unused vars. * sm/gpgsm.c (run_protect_tool) [W32]: Ditto. * g10/trustdb.c (check_regexp) [DISABLE_REGEX]: Ditto. * scd/scdaemon.c (main) [W32]: Ditto. (handle_connections) [W32]: Ditto. (handle_signal) [W32]: Do not build the function at all. * scd/apdu.c (pcsc_send_apdu_direct): Ditto. (connect_pcsc_card): s/long/pcsc_dword_t/. (open_pcsc_reader_direct): Remove var listlen.
Diffstat (limited to 'sm')
-rw-r--r--sm/gpgsm.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/sm/gpgsm.c b/sm/gpgsm.c
index bf5b10243..9199a3f8d 100644
--- a/sm/gpgsm.c
+++ b/sm/gpgsm.c
@@ -2140,7 +2140,10 @@ open_es_fwrite (const char *filename)
static void
run_protect_tool (int argc, char **argv)
{
-#ifndef HAVE_W32_SYSTEM
+#ifdef HAVE_W32_SYSTEM
+ (void)argc;
+ (void)argv;
+#else
const char *pgm;
char **av;
int i;
@@ -2159,6 +2162,6 @@ run_protect_tool (int argc, char **argv)
av[i] = NULL;
execv (pgm, av);
log_error ("error executing '%s': %s\n", pgm, strerror (errno));
-#endif /*HAVE_W32_SYSTEM*/
+#endif /*!HAVE_W32_SYSTEM*/
gpgsm_exit (2);
}