diff options
author | Marcus Brinkmann <[email protected]> | 2010-04-20 01:11:35 +0000 |
---|---|---|
committer | Marcus Brinkmann <[email protected]> | 2010-04-20 01:11:35 +0000 |
commit | 0e960d940a3b52406bb72af2750b6b6d29e39067 (patch) | |
tree | f1836dba3a919ea6bd59a94fa6397f461ef222be /tools/gpgconf-comp.c | |
parent | Fixed dependencies and a syntax error (diff) | |
download | gnupg-0e960d940a3b52406bb72af2750b6b6d29e39067.tar.gz gnupg-0e960d940a3b52406bb72af2750b6b6d29e39067.zip |
common/
2010-04-20 Marcus Brinkmann <[email protected]>
* logging.c (do_log_ignore_arg): New helper function.
(log_string): Use it to remove ugly volatile hack that causes gcc
warning.
(log_flush): Likewise.
* sysutils.c (gnupg_unsetenv) [!HAVE_W32CE_SYSTEM]: Return something.
(gnupg_setenv) [!HAVE_W32CE_SYSTEM]: Likewise.
* pka.c (get_pka_info): Solve strict aliasing rule violation.
* t-exechelp.c (test_close_all_fds): Use dummy variables to
silence gcc warning.
kbx/
2010-04-20 Marcus Brinkmann <[email protected]>
* keybox-update.c [!HAVE_DOSISH_SYSTEM]: Include
../common/sysutils.h even then to silence gcc warning about
missing declaration of gnupg_remove.
tools/
2010-04-20 Marcus Brinkmann <[email protected]>
* gpgconf-comp.c (option_check_validity): Use dummy variables to
silence gcc warning.
Diffstat (limited to 'tools/gpgconf-comp.c')
-rw-r--r-- | tools/gpgconf-comp.c | 10 |
1 files changed, 8 insertions, 2 deletions
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", |