mirror of
git://git.gnupg.org/gnupg.git
synced 2025-07-02 22:46:30 +02:00
common/
2010-04-20 Marcus Brinkmann <marcus@g10code.de> * 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 <marcus@g10code.de> * 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 <marcus@g10code.de> * gpgconf-comp.c (option_check_validity): Use dummy variables to silence gcc warning.
This commit is contained in:
parent
6616ba9a1e
commit
0e960d940a
10 changed files with 77 additions and 35 deletions
|
@ -1,3 +1,8 @@
|
|||
2010-04-20 Marcus Brinkmann <marcus@g10code.de>
|
||||
|
||||
* gpgconf-comp.c (option_check_validity): Use dummy variables to
|
||||
silence gcc warning.
|
||||
|
||||
2010-04-14 Werner Koch <wk@g10code.com>
|
||||
|
||||
* Makefile.am (bin_PROGRAMS) [W32CE]: Exclude gpgkey2ssh.
|
||||
|
|
|
@ -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",
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue