diff options
Diffstat (limited to 'tools')
-rw-r--r-- | tools/ChangeLog | 5 | ||||
-rw-r--r-- | tools/gpgconf-comp.c | 10 |
2 files changed, 13 insertions, 2 deletions
diff --git a/tools/ChangeLog b/tools/ChangeLog index b3e846a53..76b42763a 100644 --- a/tools/ChangeLog +++ b/tools/ChangeLog @@ -1,3 +1,8 @@ +2010-04-20 Marcus Brinkmann <[email protected]> + + * gpgconf-comp.c (option_check_validity): Use dummy variables to + silence gcc warning. + 2010-04-14 Werner Koch <[email protected]> * Makefile.am (bin_PROGRAMS) [W32CE]: Exclude gpgkey2ssh. diff --git a/tools/gpgconf-comp.c b/tools/gpgconf-comp.c index 4fe84cf27..8f9278d28 100644 --- a/tools/gpgconf-comp.c +++ b/tools/gpgconf-comp.c @@ -2241,8 +2241,11 @@ option_check_validity (gc_option_t *option, unsigned long flags, } else if (gc_arg_type[option->arg_type].fallback == GC_ARG_TYPE_INT32) { + long res; + gpg_err_set_errno (0); - (void) strtol (arg, &arg, 0); + res = strtol (arg, &arg, 0); + (void) res; if (errno) gc_error (1, errno, "invalid argument for option %s", @@ -2254,8 +2257,11 @@ option_check_validity (gc_option_t *option, unsigned long flags, } else if (gc_arg_type[option->arg_type].fallback == GC_ARG_TYPE_INT32) { + unsigned long res; + gpg_err_set_errno (0); - (void) strtoul (arg, &arg, 0); + res = strtoul (arg, &arg, 0); + (void) res; if (errno) gc_error (1, errno, "invalid argument for option %s", |